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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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.
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.
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()
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/