public class EntityResource extends AbstractBrooklynRestResource implements EntityApi
Modifier and Type | Class and Description |
---|---|
static class |
EntityResource.InterestingTasksFirstComparator
API does not guarantee order, but this is a the one we use (when there are lots of tasks):
prefer top-level tasks and to recent tasks,
balanced such that the following are equal:
something manually submitted here, submitted two hours ago
something submitted from another entity, submitted ten minutes ago
anything in progress, submitted one minute ago
anything not started, submitted ten seconds ago
anything completed, submitted one second ago
|
AbstractBrooklynRestResource.RestValueResolver
Constructor and Description |
---|
EntityResource() |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
addChildren(java.lang.String applicationToken,
java.lang.String entityToken,
java.lang.Boolean start,
java.lang.String timeoutS,
java.lang.String yaml) |
javax.ws.rs.core.Response |
expunge(java.lang.String application,
java.lang.String entity,
boolean release) |
EntitySummary |
get(java.lang.String application,
java.lang.String entityName) |
java.util.List<EntitySummary> |
getChildren(java.lang.String application,
java.lang.String entity) |
java.util.List<EntitySummary> |
getDescendants(java.lang.String application,
java.lang.String entity,
java.lang.String typeRegex) |
java.util.Map<java.lang.String,java.lang.Object> |
getDescendantsSensor(java.lang.String application,
java.lang.String entity,
java.lang.String sensor,
java.lang.String typeRegex) |
javax.ws.rs.core.Response |
getIcon(java.lang.String applicationId,
java.lang.String entityId) |
java.util.List<LocationSummary> |
getLocations(java.lang.String application,
java.lang.String entity) |
java.lang.String |
getSpec(java.lang.String applicationToken,
java.lang.String entityToken) |
TaskSummary |
getTask(java.lang.String application,
java.lang.String entityToken,
java.lang.String taskId) |
java.util.List<EntitySummary> |
list(java.lang.String application) |
java.util.List<java.lang.Object> |
listTags(java.lang.String applicationId,
java.lang.String entityId) |
java.util.List<TaskSummary> |
listTasks(java.lang.String applicationId,
java.lang.String entityId)
Deprecated.
|
java.util.List<TaskSummary> |
listTasks(java.lang.String applicationId,
java.lang.String entityId,
int limit,
java.lang.Boolean recurse) |
javax.ws.rs.core.Response |
rename(java.lang.String application,
java.lang.String entity,
java.lang.String newName) |
brooklyn, mgmt, mgmtInternal, setManagementContext
public java.util.List<EntitySummary> list(java.lang.String application)
public EntitySummary get(java.lang.String application, java.lang.String entityName)
public java.util.List<EntitySummary> getChildren(java.lang.String application, java.lang.String entity)
getChildren
in interface EntityApi
public javax.ws.rs.core.Response addChildren(java.lang.String applicationToken, java.lang.String entityToken, java.lang.Boolean start, java.lang.String timeoutS, java.lang.String yaml)
addChildren
in interface EntityApi
public java.util.List<TaskSummary> listTasks(java.lang.String applicationId, java.lang.String entityId, int limit, java.lang.Boolean recurse)
@Deprecated public java.util.List<TaskSummary> listTasks(java.lang.String applicationId, java.lang.String entityId)
public TaskSummary getTask(java.lang.String application, java.lang.String entityToken, java.lang.String taskId)
public java.util.List<java.lang.Object> listTags(java.lang.String applicationId, java.lang.String entityId)
public javax.ws.rs.core.Response getIcon(java.lang.String applicationId, java.lang.String entityId)
public javax.ws.rs.core.Response rename(java.lang.String application, java.lang.String entity, java.lang.String newName)
public javax.ws.rs.core.Response expunge(java.lang.String application, java.lang.String entity, boolean release)
public java.util.List<EntitySummary> getDescendants(java.lang.String application, java.lang.String entity, java.lang.String typeRegex)
getDescendants
in interface EntityApi
public java.util.Map<java.lang.String,java.lang.Object> getDescendantsSensor(java.lang.String application, java.lang.String entity, java.lang.String sensor, java.lang.String typeRegex)
getDescendantsSensor
in interface EntityApi
public java.util.List<LocationSummary> getLocations(java.lang.String application, java.lang.String entity)
getLocations
in interface EntityApi