public interface InstancesManager
Modifier and Type | Method and Description |
---|---|
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.
|
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 processInstanceException
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 startsInstanceException
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 SystemInstanceException
void stopInstance() throws InstanceException
InstanceException
String[] listInstances() throws InstanceException
InstanceException
int getInstanceStatus() throws InstanceException
InstanceException
boolean isRestartNeeded() throws InstanceException
InstanceException
String getNativeName()
boolean stopInstanceWithinTime(int timeout) throws InstanceException
InstanceException
void killRelatedProcesses() throws InstanceException
InstanceException
Copyright © 2018. All rights reserved.