Bees v0.5.0 API

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

Fields inherited from class apps.health.HealthParameters
algorithm, flowTimeout, healthRetention, ignoredFeatures, pollFrequency, reportFreshness
 
Fields inherited from class bees.core.ProtocolParameters
properties
 
Constructor Summary
HealthExtraParameters(ProtocolSession ps)
          Construct a HealthExtraParameters object for the given ProtocolSession.
 
Method Summary
 Clock getClock()
           
 ObjectMap getNodeKeys()
           
 PrivateKey getNodePrivateKey()
           
 PublicKey getNodePublicKey(java.lang.String name)
          Get the public key for a given node.
 java.util.Hashtable getSensors()
           
 PrivateKey getServerPrivateKey()
           
 PublicKeySpec getServerPublicKey()
           
 void initialize(Node node, ProtocolSession ps)
          Initialize the parameters.
 java.lang.String toString()
           
 
Methods inherited from class apps.health.HealthParameters
getAlgorithm, getFlowTimeout, getHealthRetention, getIgnoredFeatures, getPollFrequency, getReportFreshness
 
Methods inherited from class bees.core.ProtocolParameters
getInteger, getLong, getMillisecondValue, getString, loadProperties, loadProperties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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.
Method Detail

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()

Bees v0.5.0 API

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/