|
Brooklyn | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | METHOD | DETAIL: FIELD | METHOD |
public interface Entity extends java.io.Serializable
The basic interface for a Brooklyn entity.
Method Summary | |
---|---|
void
|
addGroup(Group group)
Add this entity as a member of the given Group. |
Entity
|
addOwnedChild(Entity child)
Add a child Entity, and set this entity as its owner. |
void
|
clearOwner()
Clears the owner of this entity. |
Application
|
getApplication()
|
java.lang.String
|
getApplicationId()
Return the id of the Application this entity is registered with. |
java.lang.Object
|
getAttribute(AttributeSensor sensor)
Gets the value of the given attribute on this entity, or null if has not been set. |
java.lang.Object
|
getConfig(ConfigKey key)
Gets the given configuration value for this entity, which may be inherited from its owner. |
java.lang.String
|
getDisplayName()
A display name; recommended to be a concise single-line description. |
java.util.Collection
|
getEnrichers()
@return an immutable thread-safe view of the policies. |
EntityType
|
getEntityType()
Information about the type of this entity; analogous to Java's object.getClass. |
java.util.Collection
|
getGroups()
The java.util.Collection of Groups that this entity is a member of. |
java.lang.String
|
getId()
The unique identifier for this entity. |
java.util.Collection
|
getLocations()
Return all the Locations this entity is deployed to. |
java.util.Collection
|
getOwnedChildren()
Return the entities that are owned by this entity |
Entity
|
getOwner()
The owner of this entity, null if no owner. |
java.util.Collection
|
getPolicies()
@return an immutable thread-safe view of the policies. |
Task
|
invoke(Effector eff, java.util.Map parameters)
Invokes the given effector, with the given parameters to that effector. |
boolean
|
removeOwnedChild(Entity child)
Removes the specified child Entity; its owner will be set to null. |
Entity
|
setOwner(Entity group)
Sets the owner of this entity. |
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() |
Method Detail |
---|
public void addGroup(Group group)
public Entity addOwnedChild(Entity child)
public void clearOwner()
public Application getApplication()
public java.lang.String getApplicationId()
public java.lang.Object getAttribute(AttributeSensor sensor)
public java.lang.Object getConfig(ConfigKey key)
public java.lang.String getDisplayName()
public java.util.Collection getEnrichers()
public EntityType getEntityType()
public java.util.Collection getGroups()
public java.lang.String getId()
public java.util.Collection getLocations()
public java.util.Collection getOwnedChildren()
public Entity getOwner()
public java.util.Collection getPolicies()
public Task invoke(Effector eff, java.util.Map parameters)
public boolean removeOwnedChild(Entity child)
public Entity setOwner(Entity group)
Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.