|
Brooklyn | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | METHOD | DETAIL: FIELD | METHOD |
public interface EntityManager
For managing and querying entities.
Method Summary | |
---|---|
java.lang.Object
|
createEntity(EntitySpec spec)
Creates a new (unmanaged) entity. |
java.lang.Object
|
createEntity(java.util.Map config, java.lang.Class type)
Convenience (particularly for groovy code) to create an entity. |
java.util.Collection
|
getEntities()
All entities under control of this management plane |
java.lang.Iterable
|
getEntitiesInApplication(Application application)
All entities managed as part of the given application |
Entity
|
getEntity(java.lang.String id)
Returns the entity with the given identifier (may be a full instance, or a proxy to one which is remote), or null. |
EntityTypeRegistry
|
getEntityTypeRegistry()
Returns the type registry, used to identify the entity implementation when instantiating an entity of a given type. |
boolean
|
isManaged(Entity entity)
whether the entity is under management by this management context |
void
|
manage(Entity e)
Begins management for the given entity and its children, recursively. |
void
|
unmanage(Entity e)
Causes the given entity and its children, recursively, to be removed from the management plane (for instance because the entity is no longer relevant) |
Method Detail |
---|
public java.lang.Object createEntity(EntitySpec spec)
public java.lang.Object createEntity(java.util.Map config, java.lang.Class type)
public java.util.Collection getEntities()
public java.lang.Iterable getEntitiesInApplication(Application application)
@Nullable public Entity getEntity(java.lang.String id)
public EntityTypeRegistry getEntityTypeRegistry()
public boolean isManaged(Entity entity)
public void manage(Entity e)
public void unmanage(Entity e)
Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.