|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface InstancesManager
| Method Summary | |
|---|---|
void |
createInstance()
Creates a server instance. |
void |
deleteInstance()
Deletes an instance identified by the given name. |
int |
getInstanceStatus()
Returns status of an instance. |
String |
getNativeName()
|
boolean |
isRestartNeeded()
|
void |
killRelatedProcesses()
|
String[] |
listInstances()
Lists all the instances. |
Process |
startInstance()
Starts the instance. |
Process |
startInstance(String[] interativeOptions)
Starts the instance. |
Process |
startInstance(String[] interativeOptions,
String[] commandLineArgs)
Starts the instance. |
Process |
startInstance(String[] interativeOptions,
String[] commandLineArgs,
Properties envProps)
Starts the instance. |
void |
stopInstance()
Stops the instance. |
boolean |
stopInstanceWithinTime(int timeout)
Trys to stop the instance with the specified timeout. |
| Method Detail |
|---|
void createInstance()
throws InstanceException
InstanceException - This exception is thrown if
- the instance already exists.
- an invalid or insufficient config. is supplied.
- an exception occurred during instance creation.
void deleteInstance()
throws InstanceException
InstanceException - This exception is thrown if
- the instance doesnot exist.
- an exception occurred while deleting the instance.
Process startInstance()
throws InstanceException
startParams -
InstanceException
Process startInstance(String[] interativeOptions)
throws InstanceException
interativeOptions - which may be used for security, these paramters
are passed in on the standard input stream of the executing process
InstanceException
Process startInstance(String[] interativeOptions,
String[] commandLineArgs)
throws InstanceException
interativeOptions - which may be used for security, these paramters
are passed in on the standard input stream of the executing processcommandLineArgs - is additional commandline arguments that are to be appended
to the processes commandline when it starts
InstanceException
Process startInstance(String[] interativeOptions,
String[] commandLineArgs,
Properties envProps)
throws InstanceException
interativeOptions - which may be used for security, these paramters
are passed in on the standard input stream of the executing processcommandLineArgs - is additional commandline arguments that are to be appended
to the processes commandline when it startsenvProps - properties to be added to System
InstanceException
void stopInstance()
throws InstanceException
InstanceException
String[] listInstances()
throws InstanceException
InstanceException
int getInstanceStatus()
throws InstanceException
InstanceException
boolean isRestartNeeded()
throws InstanceException
InstanceExceptionString getNativeName()
boolean stopInstanceWithinTime(int timeout)
throws InstanceException
InstanceException
void killRelatedProcesses()
throws InstanceException
InstanceException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||