public class DeployApplicationCommand extends AbstractResourcePathCommand<org.hawkular.cmdgw.api.DeployApplicationRequest,org.hawkular.cmdgw.api.DeployApplicationResponse>
| Modifier and Type | Field and Description |
|---|---|
static Class<org.hawkular.cmdgw.api.DeployApplicationRequest> |
REQUEST_CLASS |
entityType, operationName| Constructor and Description |
|---|
DeployApplicationCommand() |
| Modifier and Type | Method and Description |
|---|---|
protected org.hawkular.cmdgw.api.DeployApplicationResponse |
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.DeployApplicationRequest> envelope,
org.hawkular.cmdgw.api.DeployApplicationResponse response,
CommandContext context,
DMRSession dmrContext)
Do whatever with the already validated parameters.
|
protected void |
validate(org.hawkular.bus.common.BasicMessageWithExtraData<org.hawkular.cmdgw.api.DeployApplicationRequest> envelope,
MonitoredEndpoint<? extends MonitorServiceConfiguration.AbstractEndpointConfiguration> endpoint)
Validation for subclasses.
|
protected void |
validate(String modelNodePath,
org.hawkular.bus.common.BasicMessageWithExtraData<org.hawkular.cmdgw.api.DeployApplicationRequest> envelope)
modelNodePath validation for subclasses. |
assertLocalServer, assertNotRename, execute, getOperationName, setServerRefreshIndicator, success, validatepublic static final Class<org.hawkular.cmdgw.api.DeployApplicationRequest> REQUEST_CLASS
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.DeployApplicationRequest> envelope,
org.hawkular.cmdgw.api.DeployApplicationResponse response,
CommandContext context,
DMRSession dmrContext)
throws Exception
AbstractResourcePathCommandexecute in class AbstractResourcePathCommand<org.hawkular.cmdgw.api.DeployApplicationRequest,org.hawkular.cmdgw.api.DeployApplicationResponse>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.DeployApplicationRequest> envelope)
AbstractResourcePathCommandmodelNodePath validation for subclasses.validate in class AbstractResourcePathCommand<org.hawkular.cmdgw.api.DeployApplicationRequest,org.hawkular.cmdgw.api.DeployApplicationResponse>modelNodePath - a DMR path to checkenvelope - the request the modelNodePath comes fromprotected void validate(org.hawkular.bus.common.BasicMessageWithExtraData<org.hawkular.cmdgw.api.DeployApplicationRequest> envelope,
MonitoredEndpoint<? extends MonitorServiceConfiguration.AbstractEndpointConfiguration> endpoint)
AbstractResourcePathCommandvalidate in class AbstractResourcePathCommand<org.hawkular.cmdgw.api.DeployApplicationRequest,org.hawkular.cmdgw.api.DeployApplicationResponse>envelope - a DMR path to checkprotected org.hawkular.cmdgw.api.DeployApplicationResponse createResponse()
createResponse in class AbstractResourcePathCommand<org.hawkular.cmdgw.api.DeployApplicationRequest,org.hawkular.cmdgw.api.DeployApplicationResponse>ResourcePathResponse subclassCopyright © 2015–2017 Red Hat, Inc.. All rights reserved.