public interface InstanceController
| Modifier and Type | Interface and Description | 
|---|---|
static interface  | 
InstanceController.StatusTester  | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
canStart(Context context)
Determines whether this instance can be issued a start() command. 
 | 
boolean | 
canStop(Context context)
Determines whether this instance can be issued a stop() command. 
 | 
void | 
fireLifecycleEvent(LifecycleEvent event)  | 
java.lang.Object | 
getCurrentStatus()
Returns the current status of the instance. 
 | 
InstanceInfo | 
getInstanceInfo()
Returns the Server Instance managed by this controller. 
 | 
java.lang.Object | 
getLastKnownStatus()
Returns the status of the instance determined when getCurrentStatus()
 was last called. 
 | 
java.util.logging.Logger | 
getLogger()  | 
void | 
restart(Context context,
       long timeout)  | 
void | 
setLogger(java.util.logging.Logger logger)  | 
void | 
start(Context context,
     long timeout)
Synchronously starts the instance. 
 | 
void | 
stop(long timeout)
Synchronously stops the instance. 
 | 
java.lang.Object | 
testStatus(InstanceController.StatusTester tester)  | 
java.lang.Object | 
updateCurrentStatus(java.lang.Object newStatus,
                   Context context)
Updates the current status of the controller. 
 | 
java.lang.Object getCurrentStatus()
                           throws LifecycleException
LifecycleExceptionjava.lang.Object updateCurrentStatus(java.lang.Object newStatus,
                                     Context context)
                              throws LifecycleException
newStatus - the new StatusLifecycleExceptionjava.lang.Object getLastKnownStatus()
java.lang.Object testStatus(InstanceController.StatusTester tester) throws LifecycleException
LifecycleExceptionboolean canStart(Context context)
context - boolean canStop(Context context)
void start(Context context, long timeout) throws LifecycleException
timeout - period to wait, in milliseconds. Zero means wait
 indefinitely.LifecycleException - if the instance could not be started.void stop(long timeout) throws LifecycleException
timeout - period to wait, in milliseconds. Zero means wait
 indefinitely.LifecycleException - if the instance could not be started.void restart(Context context, long timeout) throws LifecycleException
LifecycleExceptionInstanceInfo getInstanceInfo()
java.util.logging.Logger getLogger()
void setLogger(java.util.logging.Logger logger)
void fireLifecycleEvent(LifecycleEvent event)