org.boris.winrun4j
Interface Service
- All Known Implementing Classes:
- AbstractService
- public interface Service
A windows service.
Method Summary |
int |
serviceMain(java.lang.String[] args)
Run the service. |
int |
serviceRequest(int control)
Perform a service request. |
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
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.