public class PolicyResource extends AbstractBrooklynRestResource implements PolicyApi
DATE_FORMAT
Constructor and Description |
---|
PolicyResource() |
Modifier and Type | Method and Description |
---|---|
PolicySummary |
addPolicy(java.lang.String application,
java.lang.String entityToken,
java.lang.String policyTypeName,
java.util.Map<java.lang.String,java.lang.String> config) |
java.util.Map<java.lang.String,java.lang.Boolean> |
batchConfigRead(java.lang.String application,
java.lang.String entityToken) |
javax.ws.rs.core.Response |
destroy(java.lang.String application,
java.lang.String entityToken,
java.lang.String policyToken) |
Status |
getStatus(java.lang.String application,
java.lang.String entityToken,
java.lang.String policyId) |
java.util.List<PolicySummary> |
list(java.lang.String application,
java.lang.String entityToken) |
javax.ws.rs.core.Response |
start(java.lang.String application,
java.lang.String entityToken,
java.lang.String policyId) |
javax.ws.rs.core.Response |
stop(java.lang.String application,
java.lang.String entityToken,
java.lang.String policyId) |
brooklyn, injectManagementContext, mgmt
public java.util.List<PolicySummary> list(java.lang.String application, java.lang.String entityToken)
public java.util.Map<java.lang.String,java.lang.Boolean> batchConfigRead(java.lang.String application, java.lang.String entityToken)
batchConfigRead
in interface PolicyApi
public PolicySummary addPolicy(java.lang.String application, java.lang.String entityToken, java.lang.String policyTypeName, java.util.Map<java.lang.String,java.lang.String> config)
public Status getStatus(java.lang.String application, java.lang.String entityToken, java.lang.String policyId)
public javax.ws.rs.core.Response start(java.lang.String application, java.lang.String entityToken, java.lang.String policyId)
public javax.ws.rs.core.Response stop(java.lang.String application, java.lang.String entityToken, java.lang.String policyId)