apps.health
Class HealthExtraParameters
java.lang.Object
|
+--bees.core.ProtocolParameters
|
+--apps.health.HealthParameters
|
+--apps.health.HealthExtraParameters
- public class HealthExtraParameters
- extends HealthParameters
HealthExtraParameters holds the privileged parameters for a health flow.
It is not required for the flow to run, it can still forward and perform
unprivileged operations, however, any crypto/sensors stuff will not work.
- See Also:
Signature
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
HealthExtraParameters
public HealthExtraParameters(ProtocolSession ps)
- Construct a HealthExtraParameters object for the given ProtocolSession.
- Parameters:
ps
- The HealthSession object that this parameters object should
be bound to.
initialize
public void initialize(Node node,
ProtocolSession ps)
- Initialize the parameters.
- Overrides:
initialize
in class HealthParameters
- Parameters:
node
- The current Node object.ps
- The HealthSession object that this parameters object should
be bound to.
getServerPublicKey
public PublicKeySpec getServerPublicKey()
- Returns:
- The server's public key, used to verify server poll requests.
getServerPrivateKey
public PrivateKey getServerPrivateKey()
- Returns:
- The server's private key, should only be given to the server.
Used to sign poll requests.
getNodePrivateKey
public PrivateKey getNodePrivateKey()
- Returns:
- The local node's key, used to sign health reports.
getNodeKeys
public ObjectMap getNodeKeys()
- Returns:
- Map of node keys, used to sign/verify health data.
getNodePublicKey
public PublicKey getNodePublicKey(java.lang.String name)
- Get the public key for a given node.
- Parameters:
name
- The name of the node.- Returns:
- The PublicKey for the given node and configured algorithm.
getClock
public Clock getClock()
- Returns:
- A clock for adding time stamps to node health reports.
getSensors
public java.util.Hashtable getSensors()
- Returns:
- The table of sensors available on this node.
toString
public java.lang.String toString()
- Overrides:
toString
in class HealthParameters
- See Also:
Object.toString()
This documentation is Copyright (C) 2002 The University of Utah. All Rights Reserved. See the individual source files for distribution terms.
Documentation, software, and mailing lists for Bees v0.5.0 can be found at the Janos Project: http://www.cs.utah.edu/flux/janos/