org.rhq.enterprise.communications.command
Interface CommandExecutor

All Known Subinterfaces:
CommandServiceMBean, RemotePojoInvocationCommandServiceMBean
All Known Implementing Classes:
CommandService, EchoCommandService, IdentifyCommandService, MultipleCommandService, RemoteInputStreamCommandService, RemoteOutputStreamCommandService, RemotePojoInvocationCommandService

public interface CommandExecutor

Interface to any object that can execute a Command.

Author:
John Mazzitelli

Method Summary
 CommandResponse execute(Command command, InputStream in, OutputStream out)
          Executes the given command and returns its response.
 

Method Detail

execute

CommandResponse execute(Command command,
                        InputStream in,
                        OutputStream out)
Executes the given command and returns its response.

Parameters:
command - the command to execute
in - input stream should the executor want to get streamed data from the client
out - output stream should the executor want to stream data to the client
Returns:
the results of the command execution


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.