public class UpdateDatasourceCommand extends AbstractResourcePathCommand<org.hawkular.cmdgw.api.UpdateDatasourceRequest,org.hawkular.cmdgw.api.UpdateDatasourceResponse> implements SubsystemDatasourceConstants, SubsystemDatasourceConstants.DatasourceNodeConstants, SubsystemDatasourceConstants.XaDatasourceNodeConstants
SubsystemDatasourceConstants.DatasourceNodeCommonConstants, SubsystemDatasourceConstants.DatasourceNodeConstants, SubsystemDatasourceConstants.JdbcDriverNodeConstants, SubsystemDatasourceConstants.XaDatasourceNodeConstants| Modifier and Type | Field and Description |
|---|---|
static Class<org.hawkular.cmdgw.api.UpdateDatasourceRequest> |
REQUEST_CLASS |
entityType, operationNameCONNECTION_PROPERTIES, DATASOURCE, DATASOURCES, JDBC_DRIVER, XA_DATASOURCE, XA_DATASOURCE_PROPERTIESCONNECTION_URL, DRIVER_CLASSSECURITY_DOMAIN, XA_DATASOURCE_CLASSDRIVER_NAME, JNDI_NAME, NAME, PASSWORD, STATISTICS_ENABLED, USER_NAME| Constructor and Description |
|---|
UpdateDatasourceCommand() |
| Modifier and Type | Method and Description |
|---|---|
protected org.hawkular.cmdgw.api.UpdateDatasourceResponse |
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.UpdateDatasourceRequest> envelope,
org.hawkular.cmdgw.api.UpdateDatasourceResponse response,
CommandContext context,
DMRSession dmrContext)
Do whatever with the already validated parameters.
|
protected void |
validate(org.hawkular.bus.common.BasicMessageWithExtraData<org.hawkular.cmdgw.api.UpdateDatasourceRequest> envelope,
MonitoredEndpoint<? extends MonitorServiceConfiguration.AbstractEndpointConfiguration> endpoint)
Validation for subclasses.
|
protected void |
validate(String modelNodePath,
org.hawkular.bus.common.BasicMessageWithExtraData<org.hawkular.cmdgw.api.UpdateDatasourceRequest> envelope)
modelNodePath validation for subclasses. |
assertLocalServer, assertNotRename, execute, getOperationName, setServerRefreshIndicator, success, validatepublic static final Class<org.hawkular.cmdgw.api.UpdateDatasourceRequest> REQUEST_CLASS
protected org.hawkular.cmdgw.api.UpdateDatasourceResponse createResponse()
createResponse in class AbstractResourcePathCommand<org.hawkular.cmdgw.api.UpdateDatasourceRequest,org.hawkular.cmdgw.api.UpdateDatasourceResponse>ResourcePathResponse subclassAbstractResourcePathCommand.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.UpdateDatasourceRequest> envelope,
org.hawkular.cmdgw.api.UpdateDatasourceResponse response,
CommandContext context,
DMRSession dmrContext)
throws Exception
AbstractResourcePathCommandexecute in class AbstractResourcePathCommand<org.hawkular.cmdgw.api.UpdateDatasourceRequest,org.hawkular.cmdgw.api.UpdateDatasourceResponse>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.UpdateDatasourceRequest> envelope)
AbstractResourcePathCommandmodelNodePath validation for subclasses.validate in class AbstractResourcePathCommand<org.hawkular.cmdgw.api.UpdateDatasourceRequest,org.hawkular.cmdgw.api.UpdateDatasourceResponse>modelNodePath - a DMR path to checkenvelope - the request the modelNodePath comes fromprotected void validate(org.hawkular.bus.common.BasicMessageWithExtraData<org.hawkular.cmdgw.api.UpdateDatasourceRequest> envelope,
MonitoredEndpoint<? extends MonitorServiceConfiguration.AbstractEndpointConfiguration> endpoint)
AbstractResourcePathCommandvalidate in class AbstractResourcePathCommand<org.hawkular.cmdgw.api.UpdateDatasourceRequest,org.hawkular.cmdgw.api.UpdateDatasourceResponse>envelope - a DMR path to checkCopyright © 2015–2017 Red Hat, Inc.. All rights reserved.