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

Constructor Index

 o ServiceSettings(String, String)
Initializes the ServiceSettings class.

Method Index

 o getAutoStart()
 o getClasspath()
Return classpath.
 o getDescription()
Returns descriptive name of the service.
 o getName()
Returns service name.
 o getPassword()
 o getServiceClassName()
Returns service class name.
 o getUsername()
 o getWorkingDirectory()
 o setAuthorization(String, String)
The service process should be logged on as a specified user.
 o setAutoStart(boolean)
Specifies a service to be started automatically by the service control manager during system startup.
 o setClasspath(String)
Sets service classpath.
 o setDescription(String)
Sets descriptive name of the service.
 o setWorkingDirectory(String)
Sets working directory for the service.

Constructors

 o ServiceSettings
 public ServiceSettings(String name,
                        String srvcClass)
Initializes the ServiceSettings class.

Parameters:
name - the service name
srvcClass - the name of the service class

Methods

 o getName
 public String getName()
Returns service name.

 o getServiceClassName
 public String getServiceClassName()
Returns service class name.

 o getDescription
 public String getDescription()
Returns descriptive name of the service.

 o setDescription
 public void setDescription(String desc)
Sets descriptive name of the service.

 o getClasspath
 public String getClasspath()
Return classpath.

 o setClasspath
 public void setClasspath(String cp)
Sets service classpath.

 o getAutoStart
 public boolean getAutoStart()
 o setAutoStart
 public void setAutoStart(boolean auto)
Specifies a service to be started automatically by the service control manager during system startup.

 o 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
 o getUsername
 public String getUsername()
 o getPassword
 public String getPassword()
 o getWorkingDirectory
 public String getWorkingDirectory()
 o 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