public class DisableApplicationCommand extends AbstractResourcePathCommand<org.hawkular.cmdgw.api.DisableApplicationRequest,org.hawkular.cmdgw.api.DisableApplicationResponse>
| Modifier and Type | Field and Description |
|---|---|
static String |
NAME |
static Class<org.hawkular.cmdgw.api.DisableApplicationRequest> |
REQUEST_CLASS |
entityType, operationName| Constructor and Description |
|---|
DisableApplicationCommand() |
| Modifier and Type | Method and Description |
|---|---|
protected org.hawkular.cmdgw.api.DisableApplicationResponse |
createResponse() |
protected org.hawkular.bus.common.BinaryData |
execute(org.jboss.as.controller.client.ModelControllerClient controllerClient,
EndpointService<DMRNodeLocation,DMRSession> endpointService,
String modelNodePath,
org.hawkular.bus.common.BasicMessageWithExtraData<org.hawkular.cmdgw.api.DisableApplicationRequest> envelope,
org.hawkular.cmdgw.api.DisableApplicationResponse response,
CommandContext context,
DMRSession dmrContext)
Do whatever with the already validated parameters.
|
protected void |
validate(org.hawkular.bus.common.BasicMessageWithExtraData<org.hawkular.cmdgw.api.DisableApplicationRequest> envelope,
MonitoredEndpoint<? extends MonitorServiceConfiguration.AbstractEndpointConfiguration> endpoint)
Validation for subclasses.
|
protected void |
validate(String modelNodePath,
org.hawkular.bus.common.BasicMessageWithExtraData<org.hawkular.cmdgw.api.DisableApplicationRequest> envelope)
modelNodePath validation for subclasses. |
assertLocalServer, assertNotRename, execute, getOperationName, setServerRefreshIndicator, success, validatepublic static final Class<org.hawkular.cmdgw.api.DisableApplicationRequest> REQUEST_CLASS
public static final String NAME
protected org.hawkular.bus.common.BinaryData execute(org.jboss.as.controller.client.ModelControllerClient controllerClient,
EndpointService<DMRNodeLocation,DMRSession> endpointService,
String modelNodePath,
org.hawkular.bus.common.BasicMessageWithExtraData<org.hawkular.cmdgw.api.DisableApplicationRequest> envelope,
org.hawkular.cmdgw.api.DisableApplicationResponse response,
CommandContext context,
DMRSession dmrContext)
throws Exception
AbstractResourcePathCommandexecute in class AbstractResourcePathCommand<org.hawkular.cmdgw.api.DisableApplicationRequest,org.hawkular.cmdgw.api.DisableApplicationResponse>controllerClient - a plain ModelControllerClientendpointService - an EndpointService belonging to the resourcemodelNodePath - a DMR path acquired from ResourcePathRequest.getResourcePath()envelope - the requestresponse - the responsecontext - the CommandContextdmrContext - a DMRSessionBinaryData with binary content if this command returns anyException - if anything goes wrongprotected void validate(String modelNodePath, org.hawkular.bus.common.BasicMessageWithExtraData<org.hawkular.cmdgw.api.DisableApplicationRequest> envelope)
AbstractResourcePathCommandmodelNodePath validation for subclasses.validate in class AbstractResourcePathCommand<org.hawkular.cmdgw.api.DisableApplicationRequest,org.hawkular.cmdgw.api.DisableApplicationResponse>modelNodePath - a DMR path to checkenvelope - the request the modelNodePath comes fromprotected void validate(org.hawkular.bus.common.BasicMessageWithExtraData<org.hawkular.cmdgw.api.DisableApplicationRequest> envelope,
MonitoredEndpoint<? extends MonitorServiceConfiguration.AbstractEndpointConfiguration> endpoint)
AbstractResourcePathCommandvalidate in class AbstractResourcePathCommand<org.hawkular.cmdgw.api.DisableApplicationRequest,org.hawkular.cmdgw.api.DisableApplicationResponse>envelope - a DMR path to checkprotected org.hawkular.cmdgw.api.DisableApplicationResponse createResponse()
createResponse in class AbstractResourcePathCommand<org.hawkular.cmdgw.api.DisableApplicationRequest,org.hawkular.cmdgw.api.DisableApplicationResponse>ResourcePathResponse subclassCopyright © 2015–2016 Red Hat, Inc.. All rights reserved.