net.sourceforge.jsrvany
Interface ServiceControlListener

All Known Implementing Classes:
SimpleListener, SimpleServerImplementation, ChatServer, Debugger

public interface ServiceControlListener

This interface holds the methods any class acting as a ServiceControlListener must implement

Copyright (c) 2000 Damian Fauth

 


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
 

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
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
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
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
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
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
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