Save This Page
Home » openjdk-7 » net.hivecell » hive » agent » service » [javadoc | source]
net.hivecell.hive.agent.service
public class: AutoMonitoringAgentImpl [javadoc | source]
java.lang.Object
   java.rmi.server.RemoteObject
      java.rmi.server.RemoteServer
         java.rmi.server.UnicastRemoteObject
            net.hivecell.hive.agent.AgentImpl
               net.hivecell.hive.agent.EventReceivingAgentImpl
                  net.hivecell.hive.agent.service.AutoMonitoringAgentImpl

All Implemented Interfaces:
    CellAgent, EventReceivingAgent, Agent, Serializable, Describable, Remote

this agent's sole purpose is to ask the agent monitoring agent to monitor any servers which have appeared on the scene (as according to the server list agent). this works by having this agent subscribe to the local server list agent and whenever it gets a message that a server goes up, it will ask the agent monitoring agent to monitor it. if a cell goes down or withdraws, then it will ask the agent monitoring agent to stop monitoring it
Field Summary
protected  AgentMonitoringAgent ama    our hook to our local agent monitoring agent to send our commands to 
protected  CellListAgent sla    the server list agent we need to subscribe to to get our server events 
Fields inherited from net.hivecell.hive.agent.EventReceivingAgentImpl:
agentSubscriptions
Fields inherited from net.hivecell.hive.agent.AgentImpl:
myCell,  myAddress,  agentThreadGroup,  description,  readyFlag,  timeToStop,  stopCode,  AGENTKILLED,  AGENTMOVED,  icon,  iconName,  commands,  commandList
Fields inherited from java.rmi.server.RemoteObject:
ref
Constructor:
 public AutoMonitoringAgentImpl() throws RemoteException 
Method from net.hivecell.hive.agent.service.AutoMonitoringAgentImpl Summary:
doBehavior,   doLocalCleanup,   doLocalSetup,   notify
Methods from net.hivecell.hive.agent.EventReceivingAgentImpl:
connectTo,   diePlease,   disconnectFrom,   disconnectFromAll,   doLocalSetup,   listAllIncomingConnections,   notify,   notify,   subscribeTo
Methods from net.hivecell.hive.agent.AgentImpl:
addActionCommand,   blockUntilReady,   configure,   connectTo,   diePlease,   disconnectFrom,   disconnectFromAll,   doBehavior,   doLocalCleanup,   doLocalSetup,   getActionCommands,   getAddress,   getCell,   getComponentManagerShadow,   getDescription,   getIcon,   getIconName,   getName,   getThreadGroup,   invokeActionCommand,   isReady,   isTimeToStop,   listAllIncomingConnections,   listAllOutgoingConnections,   loadIcon,   moveTo,   onDying,   onMoving,   setCell,   setDescription,   setIconName,   setIsReady,   setThreadGroup,   setTimeToStop,   waitUntilDeath
Methods from java.rmi.server.UnicastRemoteObject:
clone,   exportObject,   exportObject,   exportObject,   unexportObject
Methods from java.rmi.server.RemoteServer:
getClientHost,   getLog,   setLog
Methods from java.rmi.server.RemoteObject:
equals,   getRef,   hashCode,   toString,   toStub
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from net.hivecell.hive.agent.service.AutoMonitoringAgentImpl Detail:
 public  void doBehavior() 
 public  void doLocalCleanup() 
 public  void doLocalSetup() throws AgentInitializationException 
 public  void notify(HiveEvent event)