public class ApplicationResource extends AbstractBrooklynRestResource implements ApplicationApi
AbstractBrooklynRestResource.RestValueResolver
Constructor and Description |
---|
ApplicationResource() |
Modifier and Type | Method and Description |
---|---|
org.codehaus.jackson.JsonNode |
applicationTree()
Deprecated.
since 0.6.0 use
fetch(String) (with slightly different, but better semantics) |
javax.ws.rs.core.Response |
create(ApplicationSpec applicationSpec) |
javax.ws.rs.core.Response |
createFromForm(java.lang.String contents) |
javax.ws.rs.core.Response |
createFromYaml(java.lang.String yaml) |
javax.ws.rs.core.Response |
createPoly(byte[] inputToAutodetectType) |
javax.ws.rs.core.Response |
delete(java.lang.String application) |
org.codehaus.jackson.JsonNode |
fetch(java.lang.String entityIds) |
ApplicationSummary |
get(java.lang.String application) |
java.util.List<EntitySummary> |
getDescendants(java.lang.String application,
java.lang.String typeRegex) |
java.util.Map<java.lang.String,java.lang.Object> |
getDescendantsSensor(java.lang.String application,
java.lang.String sensor,
java.lang.String typeRegex) |
static java.util.Map<java.lang.String,java.lang.Object> |
getSensorMap(java.lang.String sensor,
java.lang.Iterable<Entity> descs) |
java.util.List<ApplicationSummary> |
list(java.lang.String typeRegex) |
brooklyn, injectManagementContext, mgmt
@Deprecated public org.codehaus.jackson.JsonNode applicationTree()
fetch(String)
(with slightly different, but better semantics)applicationTree
in interface ApplicationApi
public org.codehaus.jackson.JsonNode fetch(java.lang.String entityIds)
fetch
in interface ApplicationApi
public java.util.List<ApplicationSummary> list(java.lang.String typeRegex)
list
in interface ApplicationApi
public ApplicationSummary get(java.lang.String application)
get
in interface ApplicationApi
public javax.ws.rs.core.Response create(ApplicationSpec applicationSpec)
create
in interface ApplicationApi
public javax.ws.rs.core.Response createFromYaml(java.lang.String yaml)
createFromYaml
in interface ApplicationApi
public javax.ws.rs.core.Response createPoly(byte[] inputToAutodetectType)
createPoly
in interface ApplicationApi
public javax.ws.rs.core.Response createFromForm(java.lang.String contents)
createFromForm
in interface ApplicationApi
public javax.ws.rs.core.Response delete(java.lang.String application)
delete
in interface ApplicationApi
public java.util.List<EntitySummary> getDescendants(java.lang.String application, java.lang.String typeRegex)
getDescendants
in interface ApplicationApi
public java.util.Map<java.lang.String,java.lang.Object> getDescendantsSensor(java.lang.String application, java.lang.String sensor, java.lang.String typeRegex)
getDescendantsSensor
in interface ApplicationApi
public static java.util.Map<java.lang.String,java.lang.Object> getSensorMap(java.lang.String sensor, java.lang.Iterable<Entity> descs)