agentland.util
Class AgentMonitor
java.lang.Object
|
+--java.lang.Thread
|
+--agentland.util.AgentMonitor
- public class AgentMonitor
- extends Thread
This class is a window which monitors an individual agent's
log messages. By design, this is pretty tightly integrated
with the LogMonitorAgent and can probably not be used independantly
without heavy hacking. The only real way to do this would be to make
this an Agent, which increases overhead costs quite a bit - so I'm
introducing an intermediate method distribution layer between the
LogMonitor and the Agent Monitor
Methods inherited from class java.lang.Thread |
activeCount,
checkAccess,
countStackFrames,
currentThread,
destroy,
dumpStack,
enumerate,
getContextClassLoader,
getName,
getPriority,
getThreadGroup,
interrupt,
interrupted,
isAlive,
isDaemon,
isInterrupted,
join,
join,
join,
resume,
setContextClassLoader,
setDaemon,
setName,
setPriority,
sleep,
sleep,
start,
stop,
stop,
suspend,
toString,
yield |
AgentMonitor
public AgentMonitor(LogMonitor PARENT,
AgentID SUBJECT)
throws RemoteException
- Makes this to be a new window which monitors the log
data sent by SUBJECT
main
public static void main(String[] argv)
run
public void run()
- Overrides:
- run in class Thread
tell
public void tell(Secret sekrit)
- This logs an individual message to the screen
tell
public void tell(int lvl,
String msg)
setupFrame
public void setupFrame()
setForeward
public void setForeward(boolean val)
searchFor
public void searchFor(String msg)