Class ibm.atp.daemon.Daemon
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class ibm.atp.daemon.Daemon

java.lang.Object
   |
   +----java.lang.Thread
           |
           +----ibm.atp.daemon.Daemon

public final class Daemon
extends Thread
Daemon is a listener of incoming ATP request.

Constructor Index

 o Daemon()
Constructs a daemon
 o Daemon(int)
Constructs a daemon with the specified port number

Method Index

 o access(InetAddress, long, String, int, String)
Write a access log
 o error(InetAddress, long, String, String)
Write a error message into a log file
 o getRequestHandler(String)
Gets the AgentRequestHandler specified named agentSystem.
 o message(long, String)
Write a message into a log file
 o registerAgentRequestHandler(String, AgentRequestHandler)
Register a AgentRequestHandler as given name.
 o run()
Listens to a given port and responds to incoming requests.
 o setAccessLogFile(String)
 o setAccessLogStream(OutputStream)
 o setErrorLogFile(String)
 o setErrorLogStream(OutputStream)
 o setMessageLogFile(String)
 o setMessageLogStream(OutputStream)
 o start(String)
 o update()
updating resource.

Constructors

 o Daemon
  public Daemon()
Constructs a daemon
 o Daemon
  public Daemon(int p)
Constructs a daemon with the specified port number

Methods

 o update
  public static void update()
updating resource.
 o setAccessLogStream
  public void setAccessLogStream(OutputStream out)
 o setAccessLogFile
  public void setAccessLogFile(String filename) throws IOException
 o setErrorLogStream
  public void setErrorLogStream(OutputStream out)
 o setErrorLogFile
  public void setErrorLogFile(String filename) throws IOException
 o setMessageLogStream
  public void setMessageLogStream(OutputStream out)
 o setMessageLogFile
  public void setMessageLogFile(String filename) throws IOException
 o message
  public void message(long time,
                      String msg)
Write a message into a log file
 o error
  public void error(InetAddress host,
                    long time,
                    String err,
                    String reason)
Write a error message into a log file
 o access
  public void access(InetAddress host,
                     long time,
                     String requestLine,
                     int statusCode,
                     String misc)
Write a access log
 o getRequestHandler
  public synchronized AgentRequestHandler getRequestHandler(String agentSystem)
Gets the AgentRequestHandler specified named agentSystem. This automatically registers the handler.
 o registerAgentRequestHandler
  public synchronized void registerAgentRequestHandler(String agentSystem,
                                                       AgentRequestHandler handler)
Register a AgentRequestHandler as given name.
 o start
  public void start(String agentSystem)
 o run
  public void run()
Listens to a given port and responds to incoming requests.
Overrides:
run in class Thread

All Packages  Class Hierarchy  This Package  Previous  Next  Index