agentland.util
Class LogMonitorAgent

java.lang.Object
  |
  +--java.rmi.server.RemoteObject
        |
        +--java.rmi.server.RemoteServer
              |
              +--java.rmi.server.UnicastRemoteObject
                    |
                    +--metaglue.AgentAgent
                          |
                          +--agentland.util.LogMonitorAgent

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

Inner classes inherited from class metaglue.AgentAgent
AgentAgent.Attribute
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Fields inherited from interface metaglue.Agent
ALIVE, DIED, NO_METAGLUE, NOT_RUNNING, STARTING
 
Constructor Summary
LogMonitorAgent()
           
 
Method Summary
 int getStatus(AgentID agt)
           
 void recieveMessage(AgentID cid, int lvl, String msg)
           
 void startup()
           
 void tell(Secret sekrit)
          This is called if the Agent is to recieve a particular secret.
 void watchAgent(AgentID agt, AgentMonitor mrt)
           
 
Methods inherited from class metaglue.AgentAgent
addMonitor, alive, defrost, defrostAll, defrostBoolean, defrostInt, defrostString, fixAttribute, fixAttribute, freeze, freeze, freeze, freezeAll, freezeVar, getAgentID, getAttribute, getCatalog, getCatalogID, getDesignation, getFrozenVariables, getLogLevel, getMetaglueAgent, getMetaglueAgentID, getOccupation, getProperties, getSociety, log, log, log, obtainMetaglueAgent, obtainMetaglueAgent, obtainMetaglueAgentByName, reliesOn, reliesOn, reliesOn, reliesOnSynch, removeFrozen, replaceExceptionHandler, setFreezeName, setLogLevel, setLogName, shutdown, startAgent, startAgentOn, startAgentOn, status, tiedTo, tiedTo, tiedTo, tiedTo, tieToDesignation, whereAreYou
 
Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, unexportObject
 
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
 
Methods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toString, toStub
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LogMonitorAgent

public LogMonitorAgent()
                throws RemoteException
Method Detail

startup

public void startup()
             throws RemoteException
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 recieve a particular secret.

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