public interface Command<REQ extends org.hawkular.bus.common.BasicMessage,RESP extends org.hawkular.bus.common.BasicMessage>
| Modifier and Type | Method and Description |
|---|---|
org.hawkular.bus.common.BasicMessageWithExtraData<RESP> |
execute(org.hawkular.bus.common.BasicMessageWithExtraData<REQ> envelope,
CommandContext context)
Performs the command for the server.
|
org.hawkular.bus.common.BasicMessageWithExtraData<RESP> execute(org.hawkular.bus.common.BasicMessageWithExtraData<REQ> envelope, CommandContext context) throws Exception
envelope - the request that describes what needs to be executed eventually with attached BinaryDatabinaryData - if not null, this contains extra binary data that came across with the command requestcontext - contains data that can help commands do their jobException - if failed to execute the commandCopyright © 2015–2017 Red Hat, Inc.. All rights reserved.