@Deprecated public interface InstancesManager
Modifier and Type | Method and Description |
---|---|
void |
createInstance()
Deprecated.
Creates a server instance.
|
void |
deleteInstance()
Deprecated.
Deletes an instance identified by the given name.
|
int |
getInstanceStatus()
Deprecated.
Returns status of an instance.
|
String |
getNativeName()
Deprecated.
|
boolean |
isRestartNeeded()
Deprecated.
|
void |
killRelatedProcesses()
Deprecated.
|
String[] |
listInstances()
Deprecated.
Lists all the instances.
|
Process |
startInstance()
Deprecated.
Starts the instance.
|
Process |
startInstance(String[] interativeOptions)
Deprecated.
Starts the instance.
|
Process |
startInstance(String[] interativeOptions,
String[] commandLineArgs)
Deprecated.
Starts the instance.
|
Process |
startInstance(String[] interativeOptions,
String[] commandLineArgs,
Properties envProps)
Deprecated.
Starts the instance.
|
void |
stopInstance()
Deprecated.
Stops the instance.
|
boolean |
stopInstanceWithinTime(int timeout)
Deprecated.
Tries to stop the instance with the specified timeout.Returns true if success; false if failure
|
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 does not exist.
- an exception occurred while deleting the instance.Process startInstance() throws InstanceException
InstanceException
Process startInstance(String[] interativeOptions) throws InstanceException
interativeOptions
- which may be used for security, these parameters
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 parameters
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 parameters
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
timeout
- InstanceException
void killRelatedProcesses() throws InstanceException
InstanceException
Copyright © 2019. All rights reserved.