FileDocCategorySizeDatePackage
InstancesManager.javaAPI DocGlassfish v2 API5363Fri May 04 22:24:30 BST 2007com.sun.enterprise.admin.servermgmt

InstancesManager

public interface InstancesManager

Fields Summary
Constructors Summary
Methods Summary
public voidcreateInstance()
Creates a server instance.

throws
InstanceException This exception is thrown if - the instance already exists. - an invalid or insufficient config. is supplied. - an exception occurred during instance creation.

public voiddeleteInstance()
Deletes an instance identified by the given name. (Should we stop the instance before deleting the instance?)

throws
InstanceException This exception is thrown if - the instance doesnot exist. - an exception occurred while deleting the instance.

public intgetInstanceStatus()
Returns status of an instance.

public java.lang.StringgetNativeName()

public booleanisRestartNeeded()

return
true if the instance requires a restart for some config changes to take effect, false otherwise.

public voidkillRelatedProcesses()

public java.lang.String[]listInstances()
Lists all the instances.

public java.lang.ProcessstartInstance()
Starts the instance.

param
startParams
throws
InstanceException

public java.lang.ProcessstartInstance(java.lang.String[] interativeOptions)
Starts the instance.

param
interativeOptions which may be used for security, these paramters are passed in on the standard input stream of the executing process
throws
InstanceException

public java.lang.ProcessstartInstance(java.lang.String[] interativeOptions, java.lang.String[] commandLineArgs)
Starts the instance.

param
interativeOptions which may be used for security, these paramters are passed in on the standard input stream of the executing process
param
commandLineArgs is additional commandline arguments that are to be appended to the processes commandline when it starts
throws
InstanceException

public java.lang.ProcessstartInstance(java.lang.String[] interativeOptions, java.lang.String[] commandLineArgs, java.util.Properties envProps)
Starts the instance.

param
interativeOptions which may be used for security, these paramters are passed in on the standard input stream of the executing process
param
commandLineArgs is additional commandline arguments that are to be appended to the processes commandline when it starts
param
envProps properties to be added to System
throws
InstanceException

public voidstopInstance()
Stops the instance.

throws
InstanceException

public booleanstopInstanceWithinTime(int timeout)
Trys to stop the instance with the specified timeout. Returns true if success; false if failure

throws
InstanceException