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 void |
execute(org.jboss.as.controller.client.ModelControllerClient controllerClient,
ManagedServer managedServer,
String modelNodePath,
org.hawkular.bus.common.BasicMessageWithExtraData<org.hawkular.cmdgw.api.ExecuteOperationRequest> envelope,
org.hawkular.cmdgw.api.ExecuteOperationResponse response,
CommandContext context)
Do whatever with the already validated parameters.
|
protected String |
getOperationName(org.hawkular.bus.common.BasicMessageWithExtraData<org.hawkular.cmdgw.api.ExecuteOperationRequest> envelope) |
protected void |
validate(String modelNodePath,
org.hawkular.bus.common.BasicMessageWithExtraData<org.hawkular.cmdgw.api.ExecuteOperationRequest> envelope)
modelNodePath validation for subclasses. |
assertLocalOrRemoteServer, assertLocalServer, assertNotRename, createControllerClient, execute, success, validate, 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 fromorg.hawkular.agent.monitor.cmd.AbstractResourcePathCommand#validate(java.lang.String,
org.hawkular.cmdgw.api.ResourcePathRequest)protected void execute(org.jboss.as.controller.client.ModelControllerClient controllerClient,
ManagedServer managedServer,
String modelNodePath,
org.hawkular.bus.common.BasicMessageWithExtraData<org.hawkular.cmdgw.api.ExecuteOperationRequest> envelope,
org.hawkular.cmdgw.api.ExecuteOperationResponse response,
CommandContext context)
throws Exception
AbstractResourcePathCommandexecute in class AbstractResourcePathCommand<org.hawkular.cmdgw.api.ExecuteOperationRequest,org.hawkular.cmdgw.api.ExecuteOperationResponse>controllerClient - a subclass of JBossASClient returned by
AbstractResourcePathCommand.createControllerClient(ManagedServer, CommandContext)managedServer - a ManagedServer instance acquired from ResourcePathRequest.getResourcePath()modelNodePath - a DMR path acquired from ResourcePathRequest.getResourcePath()envelope - the requestresponse - the responsecontext - the CommandContextException - if anything goes wrongorg.hawkular.agent.monitor.cmd.AbstractResourcePathCommand#execute(org.hawkular.dmrclient.JBossASClient,
org.hawkular.agent.monitor.inventory.ManagedServer, java.lang.String,
org.hawkular.cmdgw.api.ResourcePathRequest, org.hawkular.cmdgw.api.ResourcePathResponse,
org.hawkular.agent.monitor.cmd.CommandContext)Copyright © 2015 Red Hat, Inc.. All rights reserved.