org.rhq.enterprise.communications.command.impl.remotepojo
Class RemotePojoInvocationCommandResponse

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

public class RemotePojoInvocationCommandResponse
extends AbstractCommandResponse

Encapsulates the results of a remote POJO invocation.

Author:
John Mazzitelli
See Also:
Serialized Form

Constructor Summary
RemotePojoInvocationCommandResponse(Command cmd, Object results)
          Constructor for RemotePojoInvocationCommandResponse that defines a successfully invoked remote POJO method.
RemotePojoInvocationCommandResponse(CommandResponse responseToTransform)
          Constructor for RemotePojoInvocationCommandResponse.
RemotePojoInvocationCommandResponse(Command cmd, Throwable exception)
          Constructor for RemotePojoInvocationCommandResponse that defines a failed remote POJO 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

RemotePojoInvocationCommandResponse

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

Parameters:
cmd - the command that was executed (may be null)
results -

RemotePojoInvocationCommandResponse

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

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

RemotePojoInvocationCommandResponse

public RemotePojoInvocationCommandResponse(CommandResponse responseToTransform)
Constructor for RemotePojoInvocationCommandResponse.

See Also:
AbstractCommandResponse.AbstractCommandResponse(CommandResponse)


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