mam.internetworking
Class FacilityServiceManager

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--mam.internetworking.FacilityServiceManager

class FacilityServiceManager
extends Thread
implements MessageReceiver


Field Summary
 protected MessageQueuem_incomingMessageQueue
           
 protected MamIdm_mamId
           
 protected Facilitym_parentFacility
           
 protected booleanm_shutdown
           

Fields inherited from class java.lang.Thread
MIN_PRIORITY, NORM_PRIORITY, MAX_PRIORITY

Constructor Summary
 (package private) FacilityServiceManager(Facility parentFacility)
           

Method Summary
 voidenqueueMessage(AgentMessage newMessage)
           
 MamIdgetMamId()
           
 protected FacilitygetParentFacility()
           
 RoutingTaggetRoutingTagToSelf()
           
 voidhandleDoCreateAgentMessage(AgentMessage m)
          doCreateAgent Message Message parameters: Required: RoleName: -- full package name of the agent Responds with either Message: eventAgentCreationSuccessful Parameters: RoleName: MamId: or Message: eventAgentCreationFailed Parameters: RoleName:
 protected voidinvokeMessageHandler(AgentMessage message)
          doEmigrateAgent Message Message parameters: Required: AgentState: AgentRole: AgentId:
 booleanrequiresPersistence()
           
 voidrun()
           
 protected voidsetParentFacility(Facility parentFacility)
           

Methods inherited from class java.lang.Thread
currentThread, yield, sleep, sleep, start, stop, stop, interrupt, interrupted, isInterrupted, destroy, isAlive, suspend, resume, setPriority, getPriority, setName, getName, getThreadGroup, activeCount, enumerate, countStackFrames, join, join, join, dumpStack, setDaemon, isDaemon, checkAccess, toString, getContextClassLoader, setContextClassLoader

Methods inherited from class java.lang.Object
getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize

Field Detail

m_incomingMessageQueue

protected MessageQueue m_incomingMessageQueue

m_mamId

protected MamId m_mamId

m_parentFacility

protected Facility m_parentFacility

m_shutdown

protected boolean m_shutdown
Constructor Detail

FacilityServiceManager

FacilityServiceManager(Facility parentFacility)
Method Detail

enqueueMessage

public void enqueueMessage(AgentMessage newMessage)

getMamId

public MamId getMamId()

getParentFacility

protected Facility getParentFacility()

getRoutingTagToSelf

public RoutingTag getRoutingTagToSelf()

handleDoCreateAgentMessage

public void handleDoCreateAgentMessage(AgentMessage m)
doCreateAgent Message Message parameters: Required: RoleName: -- full package name of the agent Responds with either Message: eventAgentCreationSuccessful Parameters: RoleName: MamId: or Message: eventAgentCreationFailed Parameters: RoleName:

invokeMessageHandler

protected void invokeMessageHandler(AgentMessage message)
throws java.lang.Exception
doEmigrateAgent Message Message parameters: Required: AgentState: AgentRole: AgentId:

requiresPersistence

public boolean requiresPersistence()

run

public void run()

setParentFacility

protected void setParentFacility(Facility parentFacility)