Bees v0.5.0 API

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.
 
Fields inherited from class bees.core.ExtendedProtocolSession
METHOD_ADD_NEIGHBOR, METHOD_ERROR, METHOD_NONE, METHOD_REGISTER, METHOD_REM_NEIGHBOR, METHOD_REPLY, METHOD_UNREGISTER, METHOD_USER, REGISTER_TIMEOUT
 
Fields inherited from class bees.core.ProtocolSession
neighbors
 
Constructor Summary
HealthSession()
          Construct an empty HealthSession object.
 
Method Summary
 void addNeighbor(Node node, ExternalCapsule ec, NeighborImpl ni)
          Handle a neighbor addition.
 void getSuites(edu.utah.janosvm.kit.comm.jsi.JSIMessage jm)
           
 void handleMessage(edu.utah.janosvm.kit.comm.jsi.JSIHandlerContext jhc, edu.utah.janosvm.kit.comm.jsi.JSIMessage jm)
           
 void removeNeighbor(Node node, ExternalCapsule ec, NeighborImpl ni)
          Handle a neighbor removal.
 edu.utah.janosvm.kit.comm.jsi.JSIHandler resolveSpecifier(edu.utah.janosvm.kit.comm.jsi.JSIMessage jm, edu.utah.janosvm.kit.comm.jsi.JSIPair jp)
           
 java.lang.String toString()
           
 
Methods inherited from class bees.core.ExtendedProtocolSession
getInterests, getNeighbors, notifyInterests, receive, register, reply, reply, unregister, userReceive
 
Methods inherited from class bees.core.ProtocolSession
addNeighbor, attachNeighbor, detachNeighbor, getByteArray, getCache, removeNeighbor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CLIENT_PREFIX

public static final java.lang.String CLIENT_PREFIX
Name prefix for NodeHealth objects added to the NodeCache.
Constructor Detail

HealthSession

public HealthSession()
Construct an empty HealthSession object.
Method Detail

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

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/