Package fr.dyade.aaa.agent
Class AdminProxy.AdminMonitor
- java.lang.Object
-
- fr.dyade.aaa.common.Daemon
-
- fr.dyade.aaa.agent.AdminProxy.AdminMonitor
-
- All Implemented Interfaces:
Runnable
- Enclosing class:
- AdminProxy
class AdminProxy.AdminMonitor extends Daemon
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAdminMonitor(String name, Logger logger)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidclose()Releases any resources attached to this daemon.voiddoRequest(String request)voidrun()protected voidshutdown()Interrupts a thread that waits for long periods.StringtoString()Provides a string image for this object.-
Methods inherited from class fr.dyade.aaa.common.Daemon
finish, getName, interrupt, isCurrentThread, isRunning, setDaemon, setName, setPriority, setThreadGroup, start, stop
-
-
-
-
Field Detail
-
socket
Socket socket
-
reader
BufferedReader reader
-
writer
PrintWriter writer
-
-
Method Detail
-
toString
public String toString()
Provides a string image for this object.
-
run
public void run()
-
close
protected void close()
Description copied from class:DaemonReleases any resources attached to this daemon. Be careful, its method should be called more than one time.
-
shutdown
protected void shutdown()
Description copied from class:DaemonInterrupts a thread that waits for long periods. In some cases, we must use application specific tricks. For example, if a thread is waiting on a known socket, we have to close the socket to cause the thread to return immediately. Unfortunately, there really isn't any technique that works in general.
-
doRequest
public void doRequest(String request)
-
-