Class ServiceInfo


  • public class ServiceInfo
    extends java.lang.Object
    Provides information about services created with install4j.
    • Constructor Summary

      Constructors 
      Constructor Description
      ServiceInfo()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean isServiceInstalled​(java.io.File serviceFile)
      Checks if a service is installed on Windows.
      static boolean isServiceRunning​(java.io.File serviceFile)
      Checks if a services is running.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ServiceInfo

        public ServiceInfo()
    • Method Detail

      • isServiceRunning

        public static boolean isServiceRunning​(java.io.File serviceFile)
        Checks if a services is running.
        Parameters:
        serviceFile - the install4j service executable
        Returns:
        true if it is running
      • isServiceInstalled

        public static boolean isServiceInstalled​(java.io.File serviceFile)
        Checks if a service is installed on Windows.
        Parameters:
        serviceFile - the install4j service executable
        Returns:
        true if installed