All Packages Class Hierarchy This Package Previous Next Index
Class com.jobjects.jst.ServiceSettings
com.jobjects.jst.ServiceSettings
- public class ServiceSettings
ServiceSettings class manages properties for a new
system service.
The entry point of the service class is its main method
whose signature looks just like the main method of Java
aplications.
public static void main(String[] args)
If you don't specify the class path required by the
service current class path value will be taken.
- See Also:
- createService
-
ServiceSettings(String, String)
- Initializes the ServiceSettings class.
-
getAutoStart()
-
-
getClasspath()
- Return classpath.
-
getDescription()
- Returns descriptive name of the service.
-
getName()
- Returns service name.
-
getPassword()
-
-
getServiceClassName()
- Returns service class name.
-
getUsername()
-
-
getWorkingDirectory()
-
-
setAuthorization(String, String)
- The service process should be logged on as a
specified user.
-
setAutoStart(boolean)
- Specifies a service to be started automatically by
the service control manager during system startup.
-
setClasspath(String)
- Sets service classpath.
-
setDescription(String)
- Sets descriptive name of the service.
-
setWorkingDirectory(String)
- Sets working directory for the service.
ServiceSettings
public ServiceSettings(String name,
String srvcClass)
- Initializes the ServiceSettings class.
- Parameters:
- name - the service name
- srvcClass - the name of the service class
getName
public String getName()
- Returns service name.
getServiceClassName
public String getServiceClassName()
- Returns service class name.
getDescription
public String getDescription()
- Returns descriptive name of the service.
setDescription
public void setDescription(String desc)
- Sets descriptive name of the service.
getClasspath
public String getClasspath()
- Return classpath.
setClasspath
public void setClasspath(String cp)
- Sets service classpath.
getAutoStart
public boolean getAutoStart()
setAutoStart
public void setAutoStart(boolean auto)
- Specifies a service to be started automatically by
the service control manager during system startup.
setAuthorization
public void setAuthorization(String user,
String password)
- The service process should be logged on as a
specified user.
- Parameters:
- user - user name. On the Windows NT form
DomainName\UserName is required.
- password - user password
getUsername
public String getUsername()
getPassword
public String getPassword()
getWorkingDirectory
public String getWorkingDirectory()
setWorkingDirectory
public void setWorkingDirectory(String dir)
- Sets working directory for the service.
- Parameters:
- dir - full directory path
All Packages Class Hierarchy This Package Previous Next Index