public class ServiceStatusInfo extends java.lang.Object implements DCEReadable
Contains the status details of a remote NT service.
Constructor and Description |
---|
ServiceStatusInfo()
Default constructor
|
ServiceStatusInfo(java.lang.String name,
java.lang.String dispname)
Class constructor
|
ServiceStatusInfo(java.lang.String name,
java.lang.String dispname,
int typ,
int state,
int ctrl,
int win32code,
int srvexit,
int chkpoint,
int waithint)
Class constructor
|
Modifier and Type | Method and Description |
---|---|
protected void |
clearStrings()
Clear the string values
|
int |
getCheckpoint()
Return the checkpoint value, updated by the service during lengthy start/stop/pause
opertions.
|
int |
getControlsAccepted()
Return the service control functions accepted by this service
|
int |
getCurrentState()
Return the current service state
|
java.lang.String |
getDisplayName()
Return the service display name
|
java.lang.String |
getName()
Return the service name
|
int |
getServiceErrorCode()
Return the service specific error code
|
int |
getType()
Return the service type
|
int |
getWaitHint()
Return the wait hint for the service
|
int |
getWin32ErrorCode()
Return the service start/stop Win32 error code
|
void |
readObject(DCEBuffer buf)
Read the service status information from the DCE buffer
|
void |
readStrings(DCEBuffer buf)
Read the strings for this object from the DCE/RPC buffer
|
void |
setDisplayName(java.lang.String dispname)
Set the service display name
|
void |
setName(java.lang.String name)
Set the service name
|
java.lang.String |
toString()
Return the service status information as a string
|
public ServiceStatusInfo()
public ServiceStatusInfo(java.lang.String name, java.lang.String dispname)
name
- Stringdispname
- Stringpublic ServiceStatusInfo(java.lang.String name, java.lang.String dispname, int typ, int state, int ctrl, int win32code, int srvexit, int chkpoint, int waithint)
name
- Stringdispname
- Stringtyp
- intstate
- intctrl
- intwin32code
- intsrvexit
- intchkpoint
- intwaithint
- intpublic final java.lang.String getName()
public final java.lang.String getDisplayName()
public final int getType()
public final int getCurrentState()
public final int getControlsAccepted()
public final int getWin32ErrorCode()
public final int getServiceErrorCode()
public final int getCheckpoint()
public final int getWaitHint()
public final void setName(java.lang.String name)
name
- Stringpublic final void setDisplayName(java.lang.String dispname)
dispname
- Stringprotected final void clearStrings()
public void readObject(DCEBuffer buf) throws DCEBufferException
readObject
in interface DCEReadable
buf
- DCEBufferDCEBufferException
DCESerializable#readObject(DCEBuffer)
public void readStrings(DCEBuffer buf) throws DCEBufferException
readStrings
in interface DCEReadable
buf
- DCEBufferDCEBufferException
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.