net.sourceforge.jsrvany
Class SimpleListener

java.lang.Object
  |
  +--net.sourceforge.jsrvany.SimpleListener

public class SimpleListener
extends java.lang.Object
implements ServiceControlListener

This implements ServiceControlListener with empty handleServiceControlEvent methods. This class is provided as a convenience for those who want to extend it and overide only the handleServiceControlEvent methods for the events that they need.

Copyright (c) 2000 Damian Fauth

 


Constructor Summary
SimpleListener()
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleListener

public SimpleListener()
Method Detail

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