agentland.util
Class LoggerAgent

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

public class LoggerAgent
extends GoodAgent
implements Logger

See Also:
Serialized Form

Inner classes inherited from class metaglue.AgentAgent
AgentAgent.Attribute
 
Fields inherited from class agentland.util.GoodAgent
alert, notifier
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Fields inherited from interface metaglue.Agent
ALIVE, DIED, NO_METAGLUE, NOT_RUNNING, STARTING
 
Constructor Summary
LoggerAgent()
           
 
Method Summary
protected  String getFilePrefix()
           
 Vector grabLog()
          not get, but grab since getLog is a java.rmi.server.RemoteServer method.
protected  String makeFileName(String fn)
          Unless absolute path, add the portablefilesystem beginning path to the name.
 void printLog()
           
 void stash(Object str)
          log passed object _by calling the toString() method_
 void stash(String str)
           
 
Methods inherited from class agentland.util.GoodAgent
addSpy, addSpy, alert, alertString, beep, error, getAlert, getHistory, getHistoryElement, getPersistentMap, log, notify, removeSpy, removeSpy, resetHistory, safeRely, safeRely, safeRely, setNiceLogName, tell
 
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, obtainMetaglueAgent, obtainMetaglueAgent, obtainMetaglueAgentByName, reliesOn, reliesOn, reliesOn, reliesOnSynch, removeFrozen, replaceExceptionHandler, setFreezeName, setLogLevel, setLogName, shutdown, startAgent, startAgentOn, startAgentOn, startup, 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

LoggerAgent

public LoggerAgent()
            throws RemoteException
Method Detail

makeFileName

protected String makeFileName(String fn)
Unless absolute path, add the portablefilesystem beginning path to the name.

getFilePrefix

protected String getFilePrefix()

printLog

public void printLog()
              throws RemoteException
Specified by:
printLog in interface Logger

grabLog

public Vector grabLog()
               throws RemoteException
not get, but grab since getLog is a java.rmi.server.RemoteServer method.
Specified by:
grabLog in interface Logger

stash

public void stash(Object str)
log passed object _by calling the toString() method_
Specified by:
stash in interface Logger

stash

public void stash(String str)
Specified by:
stash in interface Logger