|
Brooklyn | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object brooklyn.management.internal.EntityManagementSupport
public class EntityManagementSupport
Encapsulates management activities at an entity.
On entity deployment, ManagementContext.manage(entity) causes
* onManagementStarting(ManagementContext) * onManagementStartingSubscriptions() * onManagementStartingSensorEmissions() * onManagementStartingExecutions() * onManagementStarted() - when all the above is said and done * onManagementStartingHere();
on unmanage it hits onManagementStoppingHere() then onManagementStopping().
When an entity's management migrates, it invoked onManagementStoppingHere() at the old location, then onManagementStartingHere() at the new location.
Field Summary | |
---|---|
protected java.util.concurrent.atomic.AtomicBoolean |
currentlyDeployed
|
protected AbstractEntity |
entity
|
protected java.util.concurrent.atomic.AtomicBoolean |
everDeployed
|
protected ExecutionContext |
executionContext
|
protected ManagementContext |
initialManagementContext
|
protected ManagementContext |
managementContext
|
protected java.util.concurrent.atomic.AtomicBoolean |
managementContextUsable
|
protected java.util.concurrent.atomic.AtomicBoolean |
managementFailed
|
protected SubscriptionContext |
subscriptionContext
|
Constructor Summary | |
EntityManagementSupport(AbstractEntity entity)
|
Method Summary | |
---|---|
void
|
attemptLegacyAutodeployment(java.lang.String effectorName)
|
EntityChangeListener
|
getEntityChangeListener()
|
ExecutionContext
|
getExecutionContext()
|
ManagementContext
|
getManagementContext()
|
SubscriptionContext
|
getSubscriptionContext()
|
boolean
|
isDeployed()
Whether this entity is managed (i.e. |
boolean
|
isFullyManaged()
Whether the entity's management lifecycle is complete (i.e. both "onManagementStarting" and "onManagementStarted" have been called, and it is has not been unmanaged). |
boolean
|
isManagementContextReal()
|
boolean
|
isNoLongerManaged()
|
void
|
onManagementStarted(ManagementTransitionInfo info)
|
void
|
onManagementStarting(ManagementTransitionInfo info)
|
void
|
onManagementStopped(ManagementTransitionInfo info)
|
void
|
onManagementStopping(ManagementTransitionInfo info)
|
void
|
onRebind(ManagementTransitionInfo info)
|
void
|
setManagementContext(ManagementContextInternal val)
|
boolean
|
wasDeployed()
|
Methods inherited from class java.lang.Object | |
---|---|
java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Field Detail |
---|
protected final java.util.concurrent.atomic.AtomicBoolean currentlyDeployed
protected AbstractEntity entity
protected final java.util.concurrent.atomic.AtomicBoolean everDeployed
protected ExecutionContext executionContext
protected ManagementContext initialManagementContext
protected ManagementContext managementContext
protected final java.util.concurrent.atomic.AtomicBoolean managementContextUsable
protected final java.util.concurrent.atomic.AtomicBoolean managementFailed
protected SubscriptionContext subscriptionContext
Constructor Detail |
---|
public EntityManagementSupport(AbstractEntity entity)
Method Detail |
---|
public void attemptLegacyAutodeployment(java.lang.String effectorName)
public EntityChangeListener getEntityChangeListener()
public ExecutionContext getExecutionContext()
public ManagementContext getManagementContext()
public SubscriptionContext getSubscriptionContext()
public boolean isDeployed()
public boolean isFullyManaged()
@VisibleForTesting @Beta public boolean isManagementContextReal()
public boolean isNoLongerManaged()
public void onManagementStarted(ManagementTransitionInfo info)
public void onManagementStarting(ManagementTransitionInfo info)
public void onManagementStopped(ManagementTransitionInfo info)
public void onManagementStopping(ManagementTransitionInfo info)
public void onRebind(ManagementTransitionInfo info)
public void setManagementContext(ManagementContextInternal val)
public boolean wasDeployed()
Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.