org.rhq.enterprise.communications.command.impl.stream
Class RemoteOutputStreamCommandResponse

java.lang.Object
  extended by org.rhq.enterprise.communications.command.AbstractCommandResponse
      extended by org.rhq.enterprise.communications.command.impl.stream.RemoteOutputStreamCommandResponse
All Implemented Interfaces:
Serializable, CommandResponse

public class RemoteOutputStreamCommandResponse
extends AbstractCommandResponse

Encapsulates the results of a remote output stream invocation.

Author:
John Mazzitelli
See Also:
Serialized Form

Constructor Summary
RemoteOutputStreamCommandResponse(Command cmd, Object results)
          Constructor for RemoteOutputStreamCommandResponse that defines a successfully invoked remote stream method.
RemoteOutputStreamCommandResponse(CommandResponse responseToTransform)
          Constructor for RemoteOutputStreamCommandResponse.
RemoteOutputStreamCommandResponse(Command cmd, Throwable exception)
          Constructor for RemoteOutputStreamCommandResponse that defines a failed remote stream invocation.
 
Method Summary
 
Methods inherited from class org.rhq.enterprise.communications.command.AbstractCommandResponse
getCommand, getException, getResults, isSuccessful, setCommand, setException, setResults, setSuccessful, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RemoteOutputStreamCommandResponse

public RemoteOutputStreamCommandResponse(Command cmd,
                                         Object results)
Constructor for RemoteOutputStreamCommandResponse that defines a successfully invoked remote stream method.

Parameters:
cmd - the command that was executed (may be null)
results - the results of the InputStream method call

RemoteOutputStreamCommandResponse

public RemoteOutputStreamCommandResponse(Command cmd,
                                         Throwable exception)
Constructor for RemoteOutputStreamCommandResponse that defines a failed remote stream invocation.

Parameters:
cmd - the command that was executed (may be null)
exception - the exception that describes the failure, if available (may be null)

RemoteOutputStreamCommandResponse

public RemoteOutputStreamCommandResponse(CommandResponse responseToTransform)
Constructor for RemoteOutputStreamCommandResponse.

See Also:
AbstractCommandResponse.AbstractCommandResponse(CommandResponse)


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