| Modifier and Type | Method and Description |
|---|---|
void |
GlobalConcurrencyLimitCommandListener.processedCommand(Command command,
CommandResponse response)
This is called for every command that finished which includes all commands that succeeded, failed or was not
permitted due to
GlobalConcurrencyLimitCommandListener.receivedCommand(Command) throwing a NotPermittedException. |
void |
GlobalSuspendCommandListener.processedCommand(Command command,
CommandResponse response)
This is called for every command that finished.
|
void |
GlobalConcurrencyLimitCommandListener.receivedCommand(Command command)
This will be called for every command coming in.
|
void |
GlobalSuspendCommandListener.receivedCommand(Command command)
This will be called for every command coming in.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractCommand
Superclass to all
Command objects that may be executed by a command processor. |
| Modifier and Type | Method and Description |
|---|---|
Command |
CommandResponse.getCommand()
If the command was issued with
isCommandInResponse() set to true, this will return a
copy of the Command object that was executed. |
Command |
AbstractCommandResponse.getCommand() |
| Modifier and Type | Method and Description |
|---|---|
CommandResponse |
CommandExecutor.execute(Command command,
InputStream in,
OutputStream out)
Executes the given command and returns its response.
|
protected void |
AbstractCommandResponse.setCommand(Command command)
Sets the command that was executed and whose results are being returned in this response object.
|
| Constructor and Description |
|---|
AbstractCommand(Command commandToTransform)
Constructor for
AbstractCommand that acts as a pseudo-copy constructor and a command
decorator/transformer. |
AbstractCommandResponse(Command command)
Constructor for
AbstractCommandResponse to initialize this response with empty results. |
AbstractCommandResponse(Command command,
boolean success,
Object results,
Throwable exception)
Constructor for
AbstractCommandResponse that allows all fields to be initialized. |
| Modifier and Type | Method and Description |
|---|---|
Command |
CmdlineClient.buildCommand(String[] args)
Simply builds and returns a command defined by the given cmdline arguments.
|
Command |
CommandClient.createNewCommand(Map<String,Object> params)
Creates a new
Command object that can be used by this client. |
Command |
CommandAndCallback.getCommand()
Returns the command.
|
| Modifier and Type | Method and Description |
|---|---|
CommandResponse |
ClientCommandSender.executePostSendCallbacks(Command command,
CommandResponse response)
Execute the post-send callbacks for the given command if this sender was configured with one or more send callbacks.
|
void |
ClientCommandSender.executePreSendCallbacks(Command command)
Execute the pre-send callbacks for the given command if this sender was configured with one or more send callbacks.
|
boolean |
FailureCallback.failureDetected(RemoteCommunicator remoteCommunicator,
Command command,
CommandResponse response,
Throwable t)
The callback method that is called when a failure is detected by a remote communicator.
|
static void |
OutgoingCommandTrace.finish(Command command,
Object response)
Call this when the command is finished - that is, just after its response is returned.
|
CommandResponse |
CommandClient.invoke(Command command)
Invokes the actual command by utilizing the remoting communicator to transport the command to the server.
|
CommandResponse |
AbstractCommandClient.invoke(Command command) |
void |
CommandPreprocessor.preprocess(Command command,
ClientCommandSender sender)
This method provides the hook for a command preprocessor to manipulate a command (such as add things to its
configuration. |
void |
ClientCommandSender.preprocessCommand(Command command)
Preprocesses the given command if this sender was configured with one or more command preprocessors.
|
CommandResponse |
JBossRemotingRemoteCommunicator.send(Command command) |
CommandResponse |
RemoteCommunicator.send(Command command)
Sends the given command to the remote endpoint by utilizing a remoting framework supported by the specific
communicator implementation.
|
void |
ClientCommandSender.sendAsynch(Command command,
CommandResponseCallback callback)
Sends the command asynchronously.
|
void |
ClientCommandSender.sendAsynchGuaranteed(Command command,
CommandResponseCallback callback)
Sends the command asynchronously with guaranteed delivery enabled.
|
void |
SendCallback.sending(Command command)
This method provides the hook for pre-send logic.
|
boolean |
InitializeCallback.sendingInitialCommand(RemoteCommunicator remoteCommunicator,
Command command)
The callback method that is called when a remote communicator is about to send its very
first command.
|
CommandResponse |
ClientCommandSender.sendSynch(Command command)
Sends the command synchronously.
|
CommandResponse |
JBossRemotingRemoteCommunicator.sendWithoutCallbacks(Command command) |
CommandResponse |
RemoteCommunicator.sendWithoutCallbacks(Command command)
This is the same as
RemoteCommunicator.send(Command) except, on error, this method will not attempt
to call the failure callback, if one was set. |
CommandResponse |
JBossRemotingRemoteCommunicator.sendWithoutInitializeCallback(Command command) |
CommandResponse |
RemoteCommunicator.sendWithoutInitializeCallback(Command command)
This is the same as
RemoteCommunicator.send(Command) except this method will not attempt
to call the initialize callback,
thus allowing this method to be called from the initialize callback itself. |
CommandResponse |
SendCallback.sent(Command command,
CommandResponse response)
This method provides the hook for post-send logic.
|
static void |
OutgoingCommandTrace.start(Command command)
Call this when starting the command - that is, just prior to it going out over the wire.
|
| Constructor and Description |
|---|
CommandAndCallback(Command command,
CommandResponseCallback callback)
Creates a new
CommandAndCallback object. |
| Modifier and Type | Class and Description |
|---|---|
class |
EchoCommand
The ECHO command used for mainly testing and debugging connectivity.
|
| Modifier and Type | Method and Description |
|---|---|
Command |
EchoCommandClient.createNewCommand(Map<String,Object> params) |
| Constructor and Description |
|---|
EchoCommand(Command commandToTransform)
Constructor for
EchoCommand. |
EchoCommandResponse(Command cmd,
String echoMessage)
Constructor for
EchoCommandResponse that defines a successfully executed echo command. |
EchoCommandResponse(Command cmd,
Throwable exception)
Constructor for
EchoCommandResponse that defines a failed echo command. |
| Modifier and Type | Method and Description |
|---|---|
CommandResponse |
EchoCommandService.execute(Command command,
InputStream in,
OutputStream out) |
| Modifier and Type | Class and Description |
|---|---|
class |
GenericCommand
Defines a custom command in which the command metadata (in other words, command type and parameter definitions) are
mutable.
|
| Modifier and Type | Method and Description |
|---|---|
Command |
GenericCommandClient.createNewCommand(Map<String,Object> params)
Returns a
GenericCommand object that can be used as a generic command. |
| Constructor and Description |
|---|
GenericCommand(Command commandToTransform) |
GenericCommandResponse(Command command)
Constructor for
GenericCommandResponse. |
GenericCommandResponse(Command command,
boolean success,
Object results,
Throwable exception)
Constructor for
GenericCommandResponse. |
| Modifier and Type | Class and Description |
|---|---|
class |
IdentifyCommand
The IDENTIFY command used for clients to ask a server for identification.
|
| Constructor and Description |
|---|
IdentifyCommand(Command commandToTransform)
Constructor for
IdentifyCommand. |
IdentifyCommandResponse(Command cmd,
Identification ident)
Constructor for
IdentifyCommandResponse that defines a successfully executed identify command. |
IdentifyCommandResponse(Command cmd,
Throwable exception)
Constructor for
IdentifyCommandResponse that defines a failed identify command. |
| Modifier and Type | Method and Description |
|---|---|
CommandResponse |
IdentifyCommandService.execute(Command command,
InputStream in,
OutputStream out) |
| Modifier and Type | Class and Description |
|---|---|
class |
RemotePojoInvocationCommand
The command to be sent when a remote invocation on a POJO is to be made.
|
| Constructor and Description |
|---|
RemotePojoInvocationCommand(Command commandToTransform)
Constructor for
RemotePojoInvocationCommand. |
RemotePojoInvocationCommandResponse(Command cmd,
Object results)
Constructor for
RemotePojoInvocationCommandResponse that defines a successfully invoked remote POJO
method. |
RemotePojoInvocationCommandResponse(Command cmd,
Throwable exception)
Constructor for
RemotePojoInvocationCommandResponse that defines a failed remote POJO invocation. |
| Modifier and Type | Method and Description |
|---|---|
CommandResponse |
RemotePojoInvocationCommandService.execute(Command command,
InputStream in,
OutputStream out)
Takes the remote POJO invocation request, which has the NameBasedInvocation parameter, and convert that to a
method call on the target POJO (using reflection).
|
| Modifier and Type | Class and Description |
|---|---|
class |
StartCommand
Command used to start operating system processes.
|
| Constructor and Description |
|---|
StartCommand(Command commandToTransform)
Constructor for
StartCommand. |
StartCommandResponse(Command command)
Creates a response, however, there is no associated exit code (due to the fact that the original command did not
request that the command service wait for the process to exit).
|
StartCommandResponse(Command command,
Integer exitCode)
Creates a response that considers the command a success, with the
exitCode passed as the result
object. |
StartCommandResponse(Command command,
Throwable exception)
Creates a response that considers the command a failure with the given exception stored in the response.
|
| Modifier and Type | Class and Description |
|---|---|
class |
RemoteInputStreamCommand
The command to be sent when a remote invocation on an input stream is to be made.
|
class |
RemoteOutputStreamCommand
The command to be sent when a remote invocation on an output stream is to be made.
|
| Constructor and Description |
|---|
RemoteInputStreamCommand(Command commandToTransform)
Constructor for
RemoteInputStreamCommand. |
RemoteInputStreamCommandResponse(Command cmd,
Object results)
Constructor for
RemoteInputStreamCommandResponse that defines a successfully invoked remote stream
method. |
RemoteInputStreamCommandResponse(Command cmd,
Throwable exception)
Constructor for
RemoteInputStreamCommandResponse that defines a failed remote stream invocation. |
RemoteOutputStreamCommand(Command commandToTransform)
Constructor for
RemoteOutputStreamCommand. |
RemoteOutputStreamCommandResponse(Command cmd,
Object results)
Constructor for
RemoteOutputStreamCommandResponse that defines a successfully invoked remote stream
method. |
RemoteOutputStreamCommandResponse(Command cmd,
Throwable exception)
Constructor for
RemoteOutputStreamCommandResponse that defines a failed remote stream invocation. |
| Modifier and Type | Method and Description |
|---|---|
CommandResponse |
RemoteInputStreamCommandService.execute(Command command,
InputStream in,
OutputStream out)
Takes the remote stream access request, which has the NameBasedInvocation parameter, and convert that to a method
call on the target stream (using reflection).
|
CommandResponse |
RemoteOutputStreamCommandService.execute(Command command,
InputStream in,
OutputStream out)
Takes the remote stream access request, which has the NameBasedInvocation parameter, and convert that to a method
call on the target stream (using reflection).
|
| Modifier and Type | Method and Description |
|---|---|
CommandResponse |
MultipleCommandService.execute(Command command,
InputStream in,
OutputStream out)
Given a command to execute, this method will lookup that command's type to determine what
executor should be used. |
static void |
IncomingCommandTrace.finish(Command command,
Object response)
Call this when the command is finished - that is, after the command has been
processed and its response is about to be returned.
|
boolean |
CommandAuthenticator.isAuthenticated(Command command)
The given command will be authenticated by some security mechanism determined by the implementor of this method.
|
void |
CommandListener.processedCommand(Command command,
CommandResponse response)
The listener callback method that is called when a new command has been processed and is about to be returned to
the remote client.
|
void |
CommandListener.receivedCommand(Command command)
The listener callback method that is called when a new command has been received by a remote client.
|
static void |
IncomingCommandTrace.start(Command command)
Call this when the command is just received since being delivered over the wire.
|
| Modifier and Type | Method and Description |
|---|---|
static int |
CommandTraceUtil.getCommandSize(Command command)
Returns the actual size, in bytes, of the given command but only if it
exceeds the given configured threshold (-1 is returned otherwise).
|
static String |
CommandTraceUtil.getCommandString(Command command)
Returns a good string to use to log the command.
|
static String |
CommandTraceUtil.getConfigString(Command command)
Returns the string that represents the command configuration.
|
Copyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.