install4j API

com.install4j.api
Class ServiceInfo

java.lang.Object
  extended by com.install4j.api.ServiceInfo

public class ServiceInfo
extends java.lang.Object

Provides information about services created with install4j.


Constructor Summary
ServiceInfo()
           
 
Method Summary
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

install4j API