public class EntityManagementSupport
extends java.lang.Object
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.
Constructor and Description |
---|
EntityManagementSupport(AbstractEntity entity) |
Modifier and Type | Method and Description |
---|---|
void |
attemptLegacyAutodeployment(java.lang.String effectorName) |
EntitlementManager |
getEntitlementManager() |
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.
|
boolean |
isManagementContextReal() |
boolean |
isNoLongerManaged() |
boolean |
isReadOnly()
Whether the entity and its adjuncts should be treated as read-only;
error if initializing and RO status is unknown.
|
java.lang.Boolean |
isReadOnlyRaw()
Whether the entity and its adjuncts should be treated as read-only;
may be null briefly when initializing if RO status is unknown.
|
void |
onManagementStarted(ManagementTransitionInfo info) |
void |
onManagementStarting(ManagementTransitionInfo info) |
void |
onManagementStopped(ManagementTransitionInfo info) |
void |
onManagementStopping(ManagementTransitionInfo info) |
void |
onRebind(ManagementTransitionInfo info) |
void |
setManagementContext(ManagementContextInternal val) |
void |
setReadOnly(boolean isReadOnly) |
java.lang.String |
toString() |
boolean |
wasDeployed()
whether entity has ever been deployed (managed)
|
public EntityManagementSupport(AbstractEntity entity)
public boolean isDeployed()
public boolean isNoLongerManaged()
public boolean wasDeployed()
@Beta public void setReadOnly(boolean isReadOnly)
@Beta public java.lang.Boolean isReadOnlyRaw()
@Beta public boolean isReadOnly()
public boolean isFullyManaged()
public void setManagementContext(ManagementContextInternal val)
public void onRebind(ManagementTransitionInfo info)
public void onManagementStarting(ManagementTransitionInfo info)
public void onManagementStarted(ManagementTransitionInfo info)
public void onManagementStopping(ManagementTransitionInfo info)
public void onManagementStopped(ManagementTransitionInfo info)
@Beta public boolean isManagementContextReal()
public ManagementContext getManagementContext()
public ExecutionContext getExecutionContext()
public SubscriptionContext getSubscriptionContext()
public EntitlementManager getEntitlementManager()
public void attemptLegacyAutodeployment(java.lang.String effectorName)
public EntityChangeListener getEntityChangeListener()
public java.lang.String toString()
toString
in class java.lang.Object