apps.health
Class HealthSession
java.lang.Object
|
+--bees.core.ProtocolSession
|
+--bees.core.ExtendedProtocolSession
|
+--apps.health.HealthSession
- All Implemented Interfaces:
- ExternalCapsuleReceiver, edu.utah.janosvm.kit.comm.jsi.JSIHandler
- public final class HealthSession
- extends ExtendedProtocolSession
- implements edu.utah.janosvm.kit.comm.jsi.JSIHandler
A HealthSession manages the HealthProtocol specific properties in a flow.
Field Summary |
static java.lang.String |
CLIENT_PREFIX
Name prefix for NodeHealth objects added to the NodeCache. |
Constructor Summary |
HealthSession()
Construct an empty HealthSession object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
CLIENT_PREFIX
public static final java.lang.String CLIENT_PREFIX
- Name prefix for NodeHealth objects added to the NodeCache.
HealthSession
public HealthSession()
- Construct an empty HealthSession object.
addNeighbor
public void addNeighbor(Node node,
ExternalCapsule ec,
NeighborImpl ni)
- Description copied from class:
ExtendedProtocolSession
- Handle a neighbor addition.
- Overrides:
addNeighbor
in class ExtendedProtocolSession
- Parameters:
node
- The current Node object.ec
- The ExternalCapsule that requested the addition of the
neighbor, can be null.ni
- The new NeighborImpl capability.
removeNeighbor
public void removeNeighbor(Node node,
ExternalCapsule ec,
NeighborImpl ni)
- Description copied from class:
ExtendedProtocolSession
- Handle a neighbor removal.
- Overrides:
removeNeighbor
in class ExtendedProtocolSession
- Parameters:
node
- The current Node object.ec
- The ExternalCapsule that requested the removal of the
neighbor, can be null.ni
- The old NeighborImpl capability.
resolveSpecifier
public edu.utah.janosvm.kit.comm.jsi.JSIHandler resolveSpecifier(edu.utah.janosvm.kit.comm.jsi.JSIMessage jm,
edu.utah.janosvm.kit.comm.jsi.JSIPair jp)
throws java.lang.Throwable
- Specified by:
resolveSpecifier
in interface edu.utah.janosvm.kit.comm.jsi.JSIHandler
- See Also:
JSIHandler.resolveSpecifier(JSIMessage, JSIPair)
handleMessage
public void handleMessage(edu.utah.janosvm.kit.comm.jsi.JSIHandlerContext jhc,
edu.utah.janosvm.kit.comm.jsi.JSIMessage jm)
- Specified by:
handleMessage
in interface edu.utah.janosvm.kit.comm.jsi.JSIHandler
- See Also:
JSIHandler.handleMessage(JSIHandlerContext, JSIMessage)
getSuites
public void getSuites(edu.utah.janosvm.kit.comm.jsi.JSIMessage jm)
- Specified by:
getSuites
in interface edu.utah.janosvm.kit.comm.jsi.JSIHandler
- See Also:
JSIHandler.getSuites(JSIMessage)
toString
public java.lang.String toString()
- Overrides:
toString
in class ExtendedProtocolSession
- 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/