agentland.util
Class LogMonitorAgent
java.lang.Object
|
+--java.rmi.server.RemoteObject
|
+--java.rmi.server.RemoteServer
|
+--java.rmi.server.UnicastRemoteObject
|
+--metaglue.AgentAgent
|
+--agentland.util.LogMonitorAgent
- All Implemented Interfaces:
- Agent, CatalogMessageListener, LogMonitor, MetagluePrimitives, Remote, Serializable, Spy
- public class LogMonitorAgent
- extends AgentAgent
- implements LogMonitor
This is the LogMonitoring agent. It doesn't really need any
external methods as, well, it doesn't do much of anything re:
the outside world.
This currently has the important note that it only watches
agents that are added after this starts, as I can't figure out
how to make the catalog let give me a list of all the agents
already alive
- See Also:
- Serialized Form
Methods inherited from class metaglue.AgentAgent |
addMonitor, alive, buildEHAFor, defrost, defrostAll, defrostBoolean, defrostInt, defrostString, fixAttribute, fixAttribute, freeze, freeze, freeze, freezeAll, freezeVar, getAgentID, getAttribute, getCatalog, getCatalogID, getDesignation, getFrozenVariables, getLogLevel, getMetaglueAgent, getMetaglueAgentID, getOccupation, getOldLogs, getProperties, getProxyHandlerClass, getSociety, installAPH, log, log, log, lookupClass, reliesOn, reliesOn, reliesOn, reliesOnSynch, removeAPHFromCatalog, removeFrozen, setFreezeName, setLogLevel, setLogName, shutdown, startAgent, startAgentOn, startAgentOn, status, tiedTo, tiedTo, tiedTo, tiedTo, tieToDesignation, toString, whereAreYou |
LogMonitorAgent
public LogMonitorAgent()
throws RemoteException
startup
public void startup()
throws RemoteException
- Specified by:
startup
in interface Agent
- Overrides:
startup
in class AgentAgent
watchAgent
public void watchAgent(AgentID agt,
AgentMonitor mrt)
throws RemoteException
- Specified by:
watchAgent
in interface LogMonitor
tell
public void tell(Secret sekrit)
throws RemoteException
- Description copied from interface:
Spy
- This is called if the Agent is to receive a particular
secret.
- Specified by:
tell
in interface Spy
- Following copied from interface:
agentland.util.Spy
- Parameters:
secret
- a Secret
value- Throws:
RemoteException
- if an error occurs
getStatus
public int getStatus(AgentID agt)
throws RemoteException
- Specified by:
getStatus
in interface LogMonitor
recieveMessage
public void recieveMessage(AgentID cid,
int lvl,
String msg)
throws RemoteException
receiveMessage
public void receiveMessage(AgentID cid,
int lvl,
String msg)
throws RemoteException
- Specified by:
receiveMessage
in interface CatalogMessageListener