public class GenericErrorResponseCommand extends Object implements Command<org.hawkular.cmdgw.api.GenericErrorResponse,org.hawkular.bus.common.BasicMessage>
| Modifier and Type | Field and Description |
|---|---|
static Class<org.hawkular.cmdgw.api.GenericErrorResponse> |
REQUEST_CLASS |
| Constructor and Description |
|---|
GenericErrorResponseCommand() |
| Modifier and Type | Method and Description |
|---|---|
org.hawkular.bus.common.BasicMessageWithExtraData<org.hawkular.bus.common.BasicMessage> |
execute(org.hawkular.bus.common.BasicMessageWithExtraData<org.hawkular.cmdgw.api.GenericErrorResponse> envelope,
CommandContext context)
Performs the command for the server.
|
public static final Class<org.hawkular.cmdgw.api.GenericErrorResponse> REQUEST_CLASS
public org.hawkular.bus.common.BasicMessageWithExtraData<org.hawkular.bus.common.BasicMessage> execute(org.hawkular.bus.common.BasicMessageWithExtraData<org.hawkular.cmdgw.api.GenericErrorResponse> envelope,
CommandContext context)
throws Exception
Commandexecute in interface Command<org.hawkular.cmdgw.api.GenericErrorResponse,org.hawkular.bus.common.BasicMessage>envelope - the request that describes what needs to be executed eventually with attached BinaryDatacontext - contains data that can help commands do their jobException - if failed to execute the commandCopyright © 2015–2017 Red Hat, Inc.. All rights reserved.