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