public interface FwkServiceControlManagerInterface extends FwkApplicationInterface
| Modifier and Type | Field and Description |
|---|---|
static int |
NO_ERROR |
static int |
SERVICE_CONTINUE_PENDING |
static int |
SERVICE_CONTROL_CONTINUE |
static int |
SERVICE_CONTROL_INTERROGATE |
static int |
SERVICE_CONTROL_PAUSE |
static int |
SERVICE_CONTROL_SHUTDOWN |
static int |
SERVICE_CONTROL_STOP |
static int |
SERVICE_NOT_INITIALIZED |
static int |
SERVICE_PAUSE_PENDING |
static int |
SERVICE_PAUSED |
static int |
SERVICE_RUNNING |
static int |
SERVICE_SHUTTING_DOWN |
static int |
SERVICE_START_PENDING |
static int |
SERVICE_STOP_PENDING |
static int |
SERVICE_STOPPED |
INFOBUS_SOURCEAUTHOR, BUILDNR, COMPANY, COPYRIGHT, DATE_FORMAT, DEFAULT_ICON, DESCRIPTION, INTERNET, LARGE_ICON, LARGE_KEY_EXT, LARGE_OPAQUE_ICON, LARGE_OPAQUE_KEY_EXT, OPAQUE_ICON, OPAQUE_KEY_EXT, RCS_DATE_FORMAT, SUPPORT_EMAIL, TITLE_NAME| Modifier and Type | Method and Description |
|---|---|
FwkApplicationInterface |
getApplication()
Get the application that is controlled by the Service
Control Manager.
|
int |
getCheckPoint()
Get the checkpoint counter which indicates that
the application is still alive.
|
int |
getState()
Get the current state.
|
void |
incrementCheckPoint()
Increment the checkpoint counter to indicate that
the application is still alive.
|
boolean |
isContinueRequested()
Check if continue is requested.
|
boolean |
isPauseRequested()
Check if pause is requested.
|
boolean |
isShutdownRequested()
Check if shutdown is requested.
|
boolean |
isStopRequested()
Check if stop is requested.
|
boolean |
reportStatus(int exitCode,
int specificExitCode,
int checkPoint,
int waitHint)
Send a status message to Service Control Manager.
|
void |
serviceCtrlHandler(int controlCode)
The Service Control Handler receives commands from
the Service Control Manager via control codes.
|
void |
setApplication(FwkApplicationInterface application)
Set the application that shall be controlled by the Service
Control Manager.
|
void |
setNativeMode(boolean nativeMode)
Set the operation mode of this Service Control Manager.
|
void |
setState(int newState)
As a reaction to the control codes, a controlled application
must be able to set its current state.
|
void |
setWaitHint(int waitHint)
The controlled application should set the wait
hint - that is the number of milliseconds the
Service Control Manager shall wait for any
progress indication.
|
addExecuteStateListener, exit, fireExecuteStateEvent, getFwkPort, getPanel, getStatusPanel, hasFwkPort, init, isEternal, isRegistered, register, register, register, removeExecuteStateListener, setArguments, setEternal, setPanel, setServiceControlManager, unregistergetInfoBusName, getMemberName, isConnected, setInfoBusName, setMemberNameaddInfoBusPropertyListener, addInfoBusVetoableListener, getInfoBus, removeInfoBusPropertyListener, removeInfoBusVetoableListener, setInfoBusgetCompany, readConstructor, readFromDOM, readingDOM, readingDOM, writeConstructor, writeToDOM, writeToXMLgetController, setControllergetPrintJobName, setPageFormatfireItemAdded, fireItemDeleted, fireItemRevoked, fireItemValueChanged, getProperty, getPropertyGroup, setProperty, setPropertyGroup, suspendChangeManagergetCommands, getPersistentObjectNamesdestroyControlleraddPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeArray, getPropertyChangeListenerArray, getPropertyChangeListenerArray, isPropertyChangeEventSuspended, removePropertyChangeListener, removePropertyChangeListener, setSource, suspendPropertyChangeEventsaddVetoableChangeListener, addVetoableChangeListener, getVetoableChangeArray, getVetoableChangeListenerArray, getVetoableChangeListenerArray, removeVetoableChangeListener, removeVetoableChangeListenergetAuthor, getBuild, getClassName, getCompanyInternetAddress, getCopyright, getCreationDate, getCreationDate, getDateFormatString, getDescription, getIcon, getIcon, getIconKey, getIconKey, getName, getPresentationString, getPresentationString, getSupportEMail, getTitle, getTitleName, setAuthor, setBuild, setClassName, setCompany, setCompanyInternetAddress, setCopyright, setCreationDate, setCreationDate, setDateFormatString, setDescription, setDescriptor, setIcon, setIcon, setIconKey, setIconKey, setName, setSupportEMail, setTitleNamegetTransferData, getTransferDataFlavors, isDataFlavorSupportedaddCommand, addCommand, addToGroup, addToGroup, clearCommands, commandsAvailable, deleteGroup, getCommand, getCommands, getGroup, groupExists, removeCommand, removeFromGroup, setCommandsgetPresentationString, getPresentationStringgetVersion, releasegetNumberOfPages, getPageFormat, getPrintablegetPriority, isInterrupted, setPriority, start, stopstatic 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_SHUTTING_DOWN
static final int SERVICE_NOT_INITIALIZED
static final int SERVICE_STOPPED
static final int SERVICE_START_PENDING
static final int SERVICE_STOP_PENDING
static final int SERVICE_RUNNING
static final int SERVICE_CONTINUE_PENDING
static final int SERVICE_PAUSE_PENDING
static final int SERVICE_PAUSED
static final int NO_ERROR
FwkApplicationInterface getApplication()
int getCheckPoint()
setWaitHint(),
incrementCheckPoint()int getState()
void incrementCheckPoint()
setWaitHint()boolean isPauseRequested()
boolean isShutdownRequested()
boolean isContinueRequested()
boolean isStopRequested()
boolean reportStatus(int exitCode,
int specificExitCode,
int checkPoint,
int waitHint)
exitCode - Error code.specificExitCode - Application specific error code.checkPoint - An is-alive indicator to be incremented on each call.waitHint - The estimated remaining time to completion in ms.void serviceCtrlHandler(int controlCode)
controlCode - One of the control codes specified above.void setApplication(FwkApplicationInterface application)
application - The application to be controlled.void setNativeMode(boolean nativeMode)
nativeCode - The native code.void setState(int newState)
newState - The new state of the application.void setWaitHint(int waitHint)
waitHint - The expected wait time in milliseconds.incrementCheckPoint()