Package com.thed.util
Class SrvcUtil
java.lang.Object
com.thed.util.SrvcUtil
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
NT/2K/XP/2003 service status is running.static final int
NT/2K/XP/2003 service status is stopped.static final int
NT/2K/XP/2003 service status is unknown. -
Method Summary
Modifier and TypeMethodDescriptionstatic int
getStatusByDisplayName
(String displayName) Returns the status of an NT/2K/XP/2003 service with its given displayed name.static int
getStatusByServiceName
(String serviceName) Returns the status of an NT/2K/XP/2003 service with its given name.static boolean
isServiceInstalled
(String serviceName) static boolean
isServiceStarted
(String serviceName) static boolean
isServiceStoped
(String serviceName)
-
Field Details
-
STATUS_UNKNOWN
NT/2K/XP/2003 service status is unknown.- See Also:
-
STATUS_STOPPED
NT/2K/XP/2003 service status is stopped.- See Also:
-
STATUS_RUNNING
NT/2K/XP/2003 service status is running.- See Also:
-
-
Method Details
-
getStatusByServiceName
Returns the status of an NT/2K/XP/2003 service with its given name.- Parameters:
serviceName
- Name of the service.- Returns:
- Either STATUS_UNKNOWN, STATUS_STOPPED or STATUS_RUNNING.
-
isServiceInstalled
-
isServiceStarted
-
isServiceStoped
-
getStatusByDisplayName
Returns the status of an NT/2K/XP/2003 service with its given displayed name.- Parameters:
displayName
- Displayed name of the service.- Returns:
- Either STATUS_UNKNOWN, STATUS_STOPPED or STATUS_RUNNING.
-