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
execute
CommandResponse execute(Command command,
InputStream in,
OutputStream out)
- Executes the given command and returns its response.
- Parameters:
command - the command to executein - input stream should the executor want to get streamed data from the clientout - 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.