Bees v0.5.0 API

apps.health
Class HealthParameters

java.lang.Object
  |
  +--bees.core.ProtocolParameters
        |
        +--apps.health.HealthParameters
Direct Known Subclasses:
HealthExtraParameters

public class HealthParameters
extends ProtocolParameters

HealthParameters holds the unprivileged parameters for a health flow.


Field Summary
protected  java.lang.String algorithm
          Crypto algorithm to use for signing/verifying.
protected  IntegerPermission flowTimeout
          User specified flow timeout.
protected  IntegerPermission healthRetention
          User specified health retention time or the default.
protected  java.util.Hashtable ignoredFeatures
          The names of sensor features which should be ignored because they would cause false alarms.
protected  IntegerPermission pollFrequency
          User specified polling frequency or the default.
protected  long reportFreshness
          The number of milliseconds within which we're willing to accept a NodeHealth report.
 
Fields inherited from class bees.core.ProtocolParameters
properties
 
Constructor Summary
HealthParameters(ProtocolSession ps)
          Construct a HealthParameters object for the given ProtocolSession.
 
Method Summary
 java.lang.String getAlgorithm()
           
 IntegerPermission getFlowTimeout()
           
 IntegerPermission getHealthRetention()
           
 java.util.Hashtable getIgnoredFeatures()
           
 IntegerPermission getPollFrequency()
           
 long getReportFreshness()
           
 void initialize(Node node, ProtocolSession ps)
          Initialize the parameters.
 java.lang.String toString()
           
 
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
 

Field Detail

pollFrequency

protected IntegerPermission pollFrequency
User specified polling frequency or the default.

healthRetention

protected IntegerPermission healthRetention
User specified health retention time or the default.

reportFreshness

protected long reportFreshness
The number of milliseconds within which we're willing to accept a NodeHealth report.

flowTimeout

protected IntegerPermission flowTimeout
User specified flow timeout.

algorithm

protected java.lang.String algorithm
Crypto algorithm to use for signing/verifying.

ignoredFeatures

protected final java.util.Hashtable ignoredFeatures
The names of sensor features which should be ignored because they would cause false alarms.
Constructor Detail

HealthParameters

public HealthParameters(ProtocolSession ps)
Construct a HealthParameters 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.
Parameters:
node - The current Node object.
ps - The HealthSession object that this parameters object should be bound to.

getPollFrequency

public IntegerPermission getPollFrequency()
Returns:
User specified polling frequency or the default.

getHealthRetention

public IntegerPermission getHealthRetention()
Returns:
User specified health retention time or the default.

getFlowTimeout

public IntegerPermission getFlowTimeout()
Returns:
User specified health retention time or the default.

getReportFreshness

public long getReportFreshness()
Returns:
The number of milliseconds within which we're willing to accept a NodeHealth report.

getAlgorithm

public java.lang.String getAlgorithm()
Returns:
Crypto algorithm to use for signing/verifying.

getIgnoredFeatures

public java.util.Hashtable getIgnoredFeatures()
Returns:
The names of sensor features which should be ignored because they would cause false alarms.

toString

public java.lang.String toString()
Overrides:
toString in class ProtocolParameters
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/