net.sourceforge.jsrvany.debug
Class Debugger

java.lang.Object
  |
  +--net.sourceforge.jsrvany.debug.Debugger

public class Debugger
extends java.lang.Object
implements SimpleServer, ServiceControlListener

This class implements an SimpleServer

Copyright (c) 1999 Damian Fauth

 


Field Summary
protected static java.lang.String[] args
           
 
Constructor Summary
Debugger()
          default constructor
 
Method Summary
 void handleServiceControlEvent(ContinueServiceControlEvent e)
          handle a ContinueServiceControlEvent This method is called by the ServiceControlManager when the appropriate event occurs
 void handleServiceControlEvent(InterrogateServiceControlEvent e)
          handle a InterrogateServiceControlEvent This method is called by the ServiceControlManager when the appropriate event occurs
 void handleServiceControlEvent(PauseServiceControlEvent e)
          handle a PauseServiceControlEvent This method is called by the ServiceControlManager when the appropriate event occurs
 void handleServiceControlEvent(StartServiceControlEvent e)
          handle a StartServiceControlEvent This method is called by the ServiceControlManager when the appropriate event occurs
 void handleServiceControlEvent(StopServiceControlEvent e)
          handle a StopServiceControlEvent This method is called by the ServiceControlManager when the appropriate event occurs
 void handleServiceControlEvent(TerminateServiceControlEvent e)
          handle a TerminateServiceControlEvent This method is called by the ServiceControlManager when the appropriate event occurs
 void listen(int port)
          listen on a port
static void main(java.lang.String[] a)
          main entry point
 void setSoTimeout(int msecs)
          set the readtimeout on the socket
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

args

protected static java.lang.String[] args
Constructor Detail

Debugger

public Debugger()
default constructor
Method Detail

main

public static void main(java.lang.String[] a)
main entry point

listen

public void listen(int port)
            throws java.io.IOException
listen on a port
Specified by:
listen in interface SimpleServer
Parameters:
port - is the number of the port to listen on as an int
Throws:
java.io.IOException - may be thrown if there is connectivity problems

setSoTimeout

public void setSoTimeout(int msecs)
set the readtimeout on the socket
Specified by:
setSoTimeout in interface SimpleServer
Parameters:
msecs - is the timeout value in milliseconds as an int

handleServiceControlEvent

public void handleServiceControlEvent(StartServiceControlEvent e)
                               throws ServiceControlException
handle a StartServiceControlEvent This method is called by the ServiceControlManager when the appropriate event occurs
Specified by:
handleServiceControlEvent in interface ServiceControlListener
Parameters:
e - is the event as an instance of StartServiceControlEvent
Returns:
void
Throws:
ServiceControlException - may be thrown if the service cannot respond correctly to the event

handleServiceControlEvent

public void handleServiceControlEvent(StopServiceControlEvent e)
                               throws ServiceControlException
handle a StopServiceControlEvent This method is called by the ServiceControlManager when the appropriate event occurs
Specified by:
handleServiceControlEvent in interface ServiceControlListener
Parameters:
e - is the event as an instance of StopServiceControlEvent
Returns:
void
Throws:
ServiceControlException - may be thrown if the service cannot respond correctly to the event

handleServiceControlEvent

public void handleServiceControlEvent(PauseServiceControlEvent e)
                               throws ServiceControlException
handle a PauseServiceControlEvent This method is called by the ServiceControlManager when the appropriate event occurs
Specified by:
handleServiceControlEvent in interface ServiceControlListener
Parameters:
e - is the event as an instance of PauseServiceControlEvent
Returns:
void
Throws:
ServiceControlException - may be thrown if the service cannot respond correctly to the event

handleServiceControlEvent

public void handleServiceControlEvent(ContinueServiceControlEvent e)
                               throws ServiceControlException
handle a ContinueServiceControlEvent This method is called by the ServiceControlManager when the appropriate event occurs
Specified by:
handleServiceControlEvent in interface ServiceControlListener
Parameters:
e - is the event as an instance of ContinueServiceControlEvent
Returns:
void
Throws:
ServiceControlException - may be thrown if the service cannot respond correctly to the event

handleServiceControlEvent

public void handleServiceControlEvent(TerminateServiceControlEvent e)
                               throws ServiceControlException
handle a TerminateServiceControlEvent This method is called by the ServiceControlManager when the appropriate event occurs
Specified by:
handleServiceControlEvent in interface ServiceControlListener
Parameters:
e - is the event as an instance of TerminateServiceControlEvent
Returns:
void
Throws:
ServiceControlException - may be thrown if the service cannot respond correctly to the event

handleServiceControlEvent

public void handleServiceControlEvent(InterrogateServiceControlEvent e)
                               throws ServiceControlException
handle a InterrogateServiceControlEvent This method is called by the ServiceControlManager when the appropriate event occurs
Specified by:
handleServiceControlEvent in interface ServiceControlListener
Parameters:
e - is the event as an instance of InterrogateServiceControlEvent
Returns:
void
Throws:
ServiceControlException - may be thrown if the service cannot respond correctly to the event