brooklyn.entity.basic
[Java] Class EffectorStartableImpl
java.lang.Object
   brooklyn.entity.basic.AbstractEntity
brooklyn.entity.basic.AbstractEntity
       brooklyn.entity.basic.EffectorStartableImpl
brooklyn.entity.basic.EffectorStartableImpl
- All Implemented Interfaces: 
- BasicStartable
public class EffectorStartableImpl
extends AbstractEntity
 implementation of Startable which calls to tasks registered against effectors
 if the methods are invoked directly; note this will loop indefinetly if no method impl
 is supplied and no task is specified on an (overriding) effector
 
 TODO we should have a better way to autostart, basically checking whether there is
 a start effector, i.e. not requiring a start method in Startable
 (and same for stop and restart) 
    
     
                     
                | Fields inherited from class AbstractEntity | 
|---|
                | EFFECTOR_ADDED, EFFECTOR_CHANGED, EFFECTOR_REMOVED, LOG, POLICY_ADDED, POLICY_REMOVED, SENSOR_ADDED, SENSOR_REMOVED, _subscriptionTracker, managementSupport, tempWorkings | 
                
                 
    
    
    | Method Summary | 
    
        
        | void | restart()
 | 
    
        
        | void | start(java.util.Collection locations)
 | 
    
        
        | void | stop()
 | 
    
    
     
                | Methods inherited from class AbstractEntity | 
|---|
                | addChild, addChild, addEnricher, addGroup, addLocations, addPolicy, clearLocations, clearParent, configure, configure, configure, configure, configure, configure, destroy, emit, emitInternal, equals, finalize, firstLocation, getAllAttributes, getAllConfig, getApplication, getApplicationId, getAttribute, getAttributeByNameParts, getChildren, getConfig, getConfig, getConfig, getConfig, getConfigMap, getCreationTime, getDisplayName, getEffector, getEnrichers, getEntityManager, getEntityType, getEntityTypeName, getExecutionContext, getGroups, getIconUrl, getId, getLocations, getManagementContext, getManagementSupport, getMutableEntityType, getParent, getPolicies, getProxy, getProxyIfAvailable, getRebindSupport, getSubscriptionContext, getSubscriptionTracker, hashCode, init, invalidateReferences, invoke, invoke, invoke, isLegacyConstruction, onManagementBecomingMaster, onManagementNoLongerMaster, onManagementStarted, onManagementStarting, onManagementStopped, refreshInheritedConfig, removeAllEnrichers, removeAllPolicies, removeAttribute, removeChild, removeEnricher, removeLocations, removePolicy, setApplication, setAttribute, setAttribute, setAttributeWithoutPublishing, setConfig, setConfig, setConfig, setConfig, setConfig, setConfig, setConfigEvenIfOwned, setConfigEvenIfOwned, setConfigIfValNonNull, setConfigIfValNonNull, setDisplayName, setManagementContext, setParent, setProxy, subscribe, subscribeToChildren, subscribeToMembers, toMetadataRecord, toString, toStringHelper, unsubscribe, unsubscribe | 
                
                 
    
    
        
        restart
        @Effector(description = "Restart the process/service represented by an entity")
public void restart() {
public void restart()
        
        - 
        
        
    
        
        start
        @Effector(description = "Start the process/service represented by an entity")
public void start(@EffectorParam(name = "locations") Collection extends Location> locations) {
public void start(king start (method) on "+this); java.util.Collection locations)
        
        - 
        
        
    
        
        stop
        @Effector(description = "Stop the process/service represented by an entity")
public void stop() {
public void stop()
        
        - 
        
        
    
     
Brooklyn Multi-Cloud Application Management Platform 
 brooklyncentral.github.com. Apache License. © 2012.