public interface Controller
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
canHandle(InstanceInfo instance)
Return true if this controller can be used for managing the given ADRS instance. 
 | 
boolean | 
canTransition(java.lang.Object targetStatus,
             InstanceInfo instance,
             Context context,
             java.lang.Object memento)
Return true if the transition to targetStatus can be made from current status. 
 | 
void | 
doTransition(java.lang.Object targetStatus,
            java.lang.Object errorStatus,
            InstanceInfo instance,
            Context context,
            long timeout,
            java.lang.Object memento)
Start, stop the server, or otherwise, bring it to requested status. 
 | 
java.lang.Object | 
getCurrentStatus(InstanceInfo instance,
                java.lang.Object memento)
Get the latest status of the instance. 
 | 
java.lang.Object | 
getLastKnownStatus(InstanceInfo instance,
                  java.lang.Object memento)
Returns cached value from last call to getCurrentStatus. 
 | 
java.lang.Object | 
initialize(InstanceController icontroller,
          InstanceInfo instance)
Initialize controller for an InstanceInfo. 
 | 
void | 
release(InstanceInfo instance,
       java.lang.Object memento)
Signals end of association of the controller with the instance. 
 | 
java.lang.Object | 
setStatus(java.lang.Object newStatus,
         Context context,
         java.lang.Object memento)
Set the status to newStatus. 
 | 
boolean canHandle(InstanceInfo instance)
instance - java.lang.Object initialize(InstanceController icontroller, InstanceInfo instance)
instance - java.lang.Object getCurrentStatus(InstanceInfo instance, java.lang.Object memento) throws ControllerException
instance - memento - ControllerExceptionjava.lang.Object getLastKnownStatus(InstanceInfo instance, java.lang.Object memento)
instance - memento - java.lang.Object setStatus(java.lang.Object newStatus,
                           Context context,
                           java.lang.Object memento)
newStatus - memento - boolean canTransition(java.lang.Object targetStatus,
                      InstanceInfo instance,
                      Context context,
                      java.lang.Object memento)
targetStatus - instance - context - memento - void doTransition(java.lang.Object targetStatus,
                  java.lang.Object errorStatus,
                  InstanceInfo instance,
                  Context context,
                  long timeout,
                  java.lang.Object memento)
           throws ControllerException
targetStatus - errorStatus - instance - context - timeout - memento - ControllerExceptionvoid release(InstanceInfo instance, java.lang.Object memento)