@Singleton public class ApplicationResource extends AbstractSliderResource
| Modifier and Type | Field and Description |
|---|---|
static List<String> |
LIVE_ENTRIES |
static List<String> |
MODEL_ENTRIES |
static List<String> |
ROOT_ENTRIES |
metricsAndMonitoring, slider| Constructor and Description |
|---|
ApplicationResource(WebAppApi slider) |
| Modifier and Type | Method and Description |
|---|---|
PingInformation |
actionPingDelete(javax.servlet.http.HttpServletRequest request,
javax.ws.rs.core.UriInfo uriInfo) |
PingInformation |
actionPingGet(javax.servlet.http.HttpServletRequest request,
javax.ws.rs.core.UriInfo uriInfo) |
Object |
actionPingHead(javax.servlet.http.HttpServletRequest request,
javax.ws.rs.core.UriInfo uriInfo) |
PingInformation |
actionPingPost(javax.servlet.http.HttpServletRequest request,
javax.ws.rs.core.UriInfo uriInfo,
String body) |
PingInformation |
actionPingPut(javax.servlet.http.HttpServletRequest request,
javax.ws.rs.core.UriInfo uriInfo,
String body) |
StopResponse |
actionStop(javax.servlet.http.HttpServletRequest request,
javax.ws.rs.core.UriInfo uriInfo,
String body) |
List<String> |
getLive() |
ComponentInformation |
getLiveComponent(String component) |
Map<String,ComponentInformation> |
getLiveComponents() |
ContainerInformation |
getLiveContainer(String containerId) |
Map<String,ContainerInformation> |
getLiveContainers() |
ApplicationLivenessInformation |
getLivenessInformation()
Liveness information for the application as a whole
|
NodeInformation |
getLiveNode(String hostname) |
NodeInformationList |
getLiveNodes() |
ConfTree |
getLiveResources() |
Map<String,Integer> |
getLiveStatistics()
Statistics of the application
|
List<String> |
getModel()
Enum model values: desired and resolved
|
AggregateConf |
getModelDesired() |
ConfTree |
getModelDesiredAppconf() |
ConfTree |
getModelDesiredResources() |
AggregateConf |
getModelResolved() |
ConfTree |
getModelResolvedAppconf() |
ConfTree |
getModelResolvedResources() |
List<String> |
getRoot() |
protected AggregateConf |
lookupAggregateConf(String key)
Helper method; look up an aggregate configuration in the cache from
a key, or raise an exception
|
protected ConfTree |
lookupConfTree(String key)
Helper method; look up an conf tree in the cache from
a key, or raise an exception
|
void |
queue(AsyncAction action)
Put an action on the immediate queue -to be executed when the queue
reaches it.
|
void |
schedule(AsyncAction action)
Schedule an action
|
ConfTree |
setModelDesiredResources(ConfTree updated) |
ConfTree |
setModelDesiredResources(String json) |
buildException, mark, mark, markDelete, markGet, markGet, markPost, markPut, redirectToAppWadlpublic ApplicationResource(WebAppApi slider)
public List<String> getModel()
public AggregateConf getModelDesired()
public ConfTree getModelDesiredAppconf()
public ConfTree getModelDesiredResources()
public AggregateConf getModelResolved()
public ConfTree getModelResolvedAppconf()
public ConfTree getModelResolvedResources()
public ConfTree getLiveResources()
public Map<String,ContainerInformation> getLiveContainers()
public ContainerInformation getLiveContainer(String containerId)
public Map<String,ComponentInformation> getLiveComponents()
public ComponentInformation getLiveComponent(String component)
public ApplicationLivenessInformation getLivenessInformation()
public NodeInformationList getLiveNodes()
public NodeInformation getLiveNode(String hostname)
public Map<String,Integer> getLiveStatistics()
protected AggregateConf lookupAggregateConf(String key)
key - key to resolvejavax.ws.rs.WebApplicationException - on a failureprotected ConfTree lookupConfTree(String key)
key - key to resolvejavax.ws.rs.WebApplicationException - on a failurepublic PingInformation actionPingGet(@Context javax.servlet.http.HttpServletRequest request, @Context javax.ws.rs.core.UriInfo uriInfo)
public PingInformation actionPingPost(@Context javax.servlet.http.HttpServletRequest request, @Context javax.ws.rs.core.UriInfo uriInfo, String body)
public PingInformation actionPingPut(@Context javax.servlet.http.HttpServletRequest request, @Context javax.ws.rs.core.UriInfo uriInfo, String body)
public PingInformation actionPingDelete(@Context javax.servlet.http.HttpServletRequest request, @Context javax.ws.rs.core.UriInfo uriInfo)
public Object actionPingHead(@Context javax.servlet.http.HttpServletRequest request, @Context javax.ws.rs.core.UriInfo uriInfo)
public StopResponse actionStop(@Context javax.servlet.http.HttpServletRequest request, @Context javax.ws.rs.core.UriInfo uriInfo, String body)
public void schedule(AsyncAction action)
action - for delayed executionpublic void queue(AsyncAction action)
action - action to queueCopyright © 2014–2015 The Apache Software Foundation. All rights reserved.