public class AddDatasourceCommand extends Object implements Command<AddDatasourceRequest,GenericSuccessResponse>
| Modifier and Type | Field and Description |
|---|---|
static Class<AddDatasourceRequest> |
REQUEST_CLASS |
| Constructor and Description |
|---|
AddDatasourceCommand() |
| Modifier and Type | Method and Description |
|---|---|
org.hawkular.bus.common.BasicMessageWithExtraData<GenericSuccessResponse> |
execute(AddDatasourceRequest request,
org.hawkular.bus.common.BinaryData binaryData,
CommandContext context)
Performs the command for the feed.
|
public static final Class<AddDatasourceRequest> REQUEST_CLASS
public org.hawkular.bus.common.BasicMessageWithExtraData<GenericSuccessResponse> execute(AddDatasourceRequest request, org.hawkular.bus.common.BinaryData binaryData, CommandContext context) throws Exception
Commandexecute in interface Command<AddDatasourceRequest,GenericSuccessResponse>request - the request that describes what needs to be executedbinaryData - if not null, this contains extra binary data that came across with the command requestcontext - some context data that can be useful for the command to be able to execute the requestException - if failed to execute the operationCopyright © 2015 Red Hat. All rights reserved.