org.boris.winrun4j
Interface Service

All Known Implementing Classes:
AbstractService

public interface Service

A windows service.


Field Summary
static int SERVICE_CONTROL_CONTINUE
           
static int SERVICE_CONTROL_DEVICEEVENT
           
static int SERVICE_CONTROL_HARDWAREPROFILECHANGE
           
static int SERVICE_CONTROL_INTERROGATE
           
static int SERVICE_CONTROL_NETBINDADD
           
static int SERVICE_CONTROL_NETBINDDISABLE
           
static int SERVICE_CONTROL_NETBINDENABLE
           
static int SERVICE_CONTROL_NETBINDREMOVE
           
static int SERVICE_CONTROL_PARAMCHANGE
           
static int SERVICE_CONTROL_PAUSE
           
static int SERVICE_CONTROL_POWEREVENT
           
static int SERVICE_CONTROL_SESSIONCHANGE
           
static int SERVICE_CONTROL_SHUTDOWN
           
static int SERVICE_CONTROL_STOP
           
 
Method Summary
 int serviceMain(java.lang.String[] args)
          Run the service.
 int serviceRequest(int control)
          Perform a service request.
 

Field Detail

SERVICE_CONTROL_STOP

public static final int SERVICE_CONTROL_STOP
See Also:
Constant Field Values

SERVICE_CONTROL_PAUSE

public static final int SERVICE_CONTROL_PAUSE
See Also:
Constant Field Values

SERVICE_CONTROL_CONTINUE

public static final int SERVICE_CONTROL_CONTINUE
See Also:
Constant Field Values

SERVICE_CONTROL_INTERROGATE

public static final int SERVICE_CONTROL_INTERROGATE
See Also:
Constant Field Values

SERVICE_CONTROL_SHUTDOWN

public static final int SERVICE_CONTROL_SHUTDOWN
See Also:
Constant Field Values

SERVICE_CONTROL_PARAMCHANGE

public static final int SERVICE_CONTROL_PARAMCHANGE
See Also:
Constant Field Values

SERVICE_CONTROL_NETBINDADD

public static final int SERVICE_CONTROL_NETBINDADD
See Also:
Constant Field Values

SERVICE_CONTROL_NETBINDREMOVE

public static final int SERVICE_CONTROL_NETBINDREMOVE
See Also:
Constant Field Values

SERVICE_CONTROL_NETBINDENABLE

public static final int SERVICE_CONTROL_NETBINDENABLE
See Also:
Constant Field Values

SERVICE_CONTROL_NETBINDDISABLE

public static final int SERVICE_CONTROL_NETBINDDISABLE
See Also:
Constant Field Values

SERVICE_CONTROL_DEVICEEVENT

public static final int SERVICE_CONTROL_DEVICEEVENT
See Also:
Constant Field Values

SERVICE_CONTROL_HARDWAREPROFILECHANGE

public static final int SERVICE_CONTROL_HARDWAREPROFILECHANGE
See Also:
Constant Field Values

SERVICE_CONTROL_POWEREVENT

public static final int SERVICE_CONTROL_POWEREVENT
See Also:
Constant Field Values

SERVICE_CONTROL_SESSIONCHANGE

public static final int SERVICE_CONTROL_SESSIONCHANGE
See Also:
Constant Field Values
Method Detail

serviceRequest

public int serviceRequest(int control)
                   throws ServiceException
Perform a service request.

Returns:
int.
Throws:
ServiceException - If an error occurs.

serviceMain

public int serviceMain(java.lang.String[] args)
                throws ServiceException
Run the service.

Returns:
int.
Throws:
ServiceException - If an error occurs.