Class Win2kServiceStatusProcess
- java.lang.Object
-
- com.installshield.wizard.platform.win32.win32service.NTServiceStatus
-
- com.installshield.wizard.platform.win32.win32service.Win2kServiceStatusProcess
-
- All Implemented Interfaces:
PropertyAccessible
public class Win2kServiceStatusProcess extends NTServiceStatus implements PropertyAccessible
This class is strictly a data class. It holds the service failure action data for a service. It includes an array of Win2kSCAction objects as well as a reboot message, command, and a resetPeriod. See the Win32 API documentation for the SERVICE_FAILURE_ACTIONS structure for more detail.
-
-
Field Summary
Fields Modifier and Type Field Description static int
SERVICE_RUNS_IN_SYSTEM_PROCESS
Can be used for the serviceFlags property.-
Fields inherited from class com.installshield.wizard.platform.win32.win32service.NTServiceStatus
ERROR_SERVICE_SPECIFIC_ERROR, NO_ERROR, SERVICE_ACCEPT_HARDWAREPROFILECHANGE, SERVICE_ACCEPT_NETBINDCHANGE, SERVICE_ACCEPT_PARAMCHANGE, SERVICE_ACCEPT_PAUSE_CONTINUE, SERVICE_ACCEPT_POWEREVENT, SERVICE_ACCEPT_SHUTDOWN, SERVICE_ACCEPT_STOP, SERVICE_CONTINUE_PENDING, SERVICE_PAUSE_PENDING, SERVICE_PAUSED, SERVICE_RUNNING, SERVICE_START_PENDING, SERVICE_STOP_PENDING, SERVICE_STOPPED
-
-
Constructor Summary
Constructors Constructor Description Win2kServiceStatusProcess()
Constructs a new instance of a Win2kServiceStatusProcess object and assigns its properties to default values.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getProcessId()
Returns the process id assigned to this object.int
getServiceFlags()
Returns the serviceFlags assigned to this object.void
setProcessId(int processId)
Sets the process id assigned to this object.void
setServiceFlags(int serviceFlags)
Sets the service flags assigned to this object.-
Methods inherited from class com.installshield.wizard.platform.win32.win32service.NTServiceStatus
getCheckPoint, getControlsAccepted, getCurrentState, getServiceSpecificExitCode, getServiceType, getWaitHint, getWin32ExitCode, setCheckPoint, setControlsAccepted, setCurrentState, setServiceSpecificExitCode, setServiceType, setWaitHint, setWin32ExitCode, stateToString
-
-
-
-
Field Detail
-
SERVICE_RUNS_IN_SYSTEM_PROCESS
public static final int SERVICE_RUNS_IN_SYSTEM_PROCESS
Can be used for the serviceFlags property.- See Also:
- Constant Field Values
-
-
Method Detail
-
setProcessId
public void setProcessId(int processId)
Sets the process id assigned to this object.
-
getProcessId
public int getProcessId()
Returns the process id assigned to this object.
-
setServiceFlags
public void setServiceFlags(int serviceFlags)
Sets the service flags assigned to this object.- Parameters:
serviceFlags
- 0 means either the service is not running or it is running as a non-system process. SERVICE_RUNS_IN_SYSTEM_PROCESS means that the service runs in a system process.
-
getServiceFlags
public int getServiceFlags()
Returns the serviceFlags assigned to this object.
-
-