Package com.thed.util

Class SrvcUtil

java.lang.Object
com.thed.util.SrvcUtil

public class SrvcUtil extends Object
  • Field Details

  • Method Details

    • getStatusByServiceName

      public static int getStatusByServiceName(String serviceName)
      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

      public static boolean isServiceInstalled(String serviceName)
    • isServiceStarted

      public static boolean isServiceStarted(String serviceName)
    • isServiceStoped

      public static boolean isServiceStoped(String serviceName)
    • getStatusByDisplayName

      public static int getStatusByDisplayName(String displayName)
      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.