org.boris.winrun4j
Class AbstractService

java.lang.Object
  extended byorg.boris.winrun4j.AbstractService
All Implemented Interfaces:
Service

public abstract class AbstractService
extends java.lang.Object
implements Service


Field Summary
protected  boolean shutdown
           
 
Fields inherited from interface org.boris.winrun4j.Service
SERVICE_CONTROL_CONTINUE, SERVICE_CONTROL_DEVICEEVENT, SERVICE_CONTROL_HARDWAREPROFILECHANGE, SERVICE_CONTROL_INTERROGATE, SERVICE_CONTROL_NETBINDADD, SERVICE_CONTROL_NETBINDDISABLE, SERVICE_CONTROL_NETBINDENABLE, SERVICE_CONTROL_NETBINDREMOVE, SERVICE_CONTROL_PARAMCHANGE, SERVICE_CONTROL_PAUSE, SERVICE_CONTROL_POWEREVENT, SERVICE_CONTROL_SESSIONCHANGE, SERVICE_CONTROL_SHUTDOWN, SERVICE_CONTROL_STOP
 
Constructor Summary
AbstractService()
           
 
Method Summary
 boolean isShutdown()
           
 int serviceRequest(int control)
          Perform a service request.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.boris.winrun4j.Service
serviceMain
 

Field Detail

shutdown

protected volatile boolean shutdown
Constructor Detail

AbstractService

public AbstractService()
Method Detail

serviceRequest

public int serviceRequest(int control)
                   throws ServiceException
Description copied from interface: Service
Perform a service request.

Specified by:
serviceRequest in interface Service
Returns:
int.
Throws:
ServiceException - If an error occurs.

isShutdown

public boolean isShutdown()