public interface Service
| Modifier and Type | Field and Description |
|---|---|
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 |
| Modifier and Type | Method and Description |
|---|---|
int |
serviceMain(String[] args)
Run the service.
|
int |
serviceRequest(int control)
Perform a service request.
|
static final int SERVICE_CONTROL_STOP
static final int SERVICE_CONTROL_PAUSE
static final int SERVICE_CONTROL_CONTINUE
static final int SERVICE_CONTROL_INTERROGATE
static final int SERVICE_CONTROL_SHUTDOWN
static final int SERVICE_CONTROL_PARAMCHANGE
static final int SERVICE_CONTROL_NETBINDADD
static final int SERVICE_CONTROL_NETBINDREMOVE
static final int SERVICE_CONTROL_NETBINDENABLE
static final int SERVICE_CONTROL_NETBINDDISABLE
static final int SERVICE_CONTROL_DEVICEEVENT
static final int SERVICE_CONTROL_HARDWAREPROFILECHANGE
static final int SERVICE_CONTROL_POWEREVENT
static final int SERVICE_CONTROL_SESSIONCHANGE
int serviceRequest(int control)
throws ServiceException
control. - ServiceException - If an error occurs.int serviceMain(String[] args) throws ServiceException
args. - ServiceException - If an error occurs.Copyright © 2018. All rights reserved.