Interface InstancesManager
-
@Deprecated public interface InstancesManager
Deprecated.since 184 as there are no known references to it
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description voidcreateInstance()Deprecated.Creates a server instance.voiddeleteInstance()Deprecated.Deletes an instance identified by the given name.intgetInstanceStatus()Deprecated.Returns status of an instance.StringgetNativeName()Deprecated.booleanisRestartNeeded()Deprecated.voidkillRelatedProcesses()Deprecated.String[]listInstances()Deprecated.Lists all the instances.ProcessstartInstance()Deprecated.Starts the instance.ProcessstartInstance(String[] interativeOptions)Deprecated.Starts the instance.ProcessstartInstance(String[] interativeOptions, String[] commandLineArgs)Deprecated.Starts the instance.ProcessstartInstance(String[] interativeOptions, String[] commandLineArgs, Properties envProps)Deprecated.Starts the instance.voidstopInstance()Deprecated.Stops the instance.booleanstopInstanceWithinTime(int timeout)Deprecated.Tries to stop the instance with the specified timeout.Returns true if success; false if failure
-
-
-
Method Detail
-
createInstance
void createInstance() throws InstanceExceptionDeprecated.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.
-
deleteInstance
void deleteInstance() throws InstanceExceptionDeprecated.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 does not exist. - an exception occurred while deleting the instance.
-
startInstance
Process startInstance() throws InstanceException
Deprecated.Starts the instance.- Returns:
- Throws:
InstanceException
-
startInstance
Process startInstance(String[] interativeOptions) throws InstanceException
Deprecated.Starts the instance.- Parameters:
interativeOptions- which may be used for security, these parameters are passed in on the standard input stream of the executing process- Returns:
- Throws:
InstanceException
-
startInstance
Process startInstance(String[] interativeOptions, String[] commandLineArgs) throws InstanceException
Deprecated.Starts the instance.- Parameters:
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 starts- Returns:
- Throws:
InstanceException
-
startInstance
Process startInstance(String[] interativeOptions, String[] commandLineArgs, Properties envProps) throws InstanceException
Deprecated.Starts the instance.- Parameters:
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 System- Throws:
InstanceException
-
stopInstance
void stopInstance() throws InstanceExceptionDeprecated.Stops the instance.- Throws:
InstanceException
-
listInstances
String[] listInstances() throws InstanceException
Deprecated.Lists all the instances.- Throws:
InstanceException
-
getInstanceStatus
int getInstanceStatus() throws InstanceExceptionDeprecated.Returns status of an instance.- Throws:
InstanceException
-
isRestartNeeded
boolean isRestartNeeded() throws InstanceExceptionDeprecated.- Returns:
- true if the instance requires a restart for some config changes to take effect, false otherwise.
- Throws:
InstanceException
-
getNativeName
String getNativeName()
Deprecated.
-
stopInstanceWithinTime
boolean stopInstanceWithinTime(int timeout) throws InstanceExceptionDeprecated.Tries to stop the instance with the specified timeout.Returns true if success; false if failure- Parameters:
timeout-- Throws:
InstanceException
-
killRelatedProcesses
void killRelatedProcesses() throws InstanceExceptionDeprecated.- Throws:
InstanceException
-
-