org.rhq.enterprise.communications.command.impl.identify
Class IdentifyCommandResponse

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

public class IdentifyCommandResponse
extends AbstractCommandResponse

Encapsulates the results of an identify command.

Author:
John Mazzitelli
See Also:
Serialized Form

Constructor Summary
IdentifyCommandResponse(Command cmd, Identification ident)
          Constructor for IdentifyCommandResponse that defines a successfully executed identify command.
IdentifyCommandResponse(CommandResponse responseToTransform)
          Constructor for IdentifyCommandResponse.
IdentifyCommandResponse(Command cmd, Throwable exception)
          Constructor for IdentifyCommandResponse that defines a failed identify command.
 
Method Summary
 Identification getIdentification()
          Returns the remote server's identification information.
 
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

IdentifyCommandResponse

public IdentifyCommandResponse(Command cmd,
                               Identification ident)
Constructor for IdentifyCommandResponse that defines a successfully executed identify command.

Parameters:
cmd - the identify command that was executed (may be null)
ident - the identification information

IdentifyCommandResponse

public IdentifyCommandResponse(Command cmd,
                               Throwable exception)
Constructor for IdentifyCommandResponse that defines a failed identify command.

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

IdentifyCommandResponse

public IdentifyCommandResponse(CommandResponse responseToTransform)
Constructor for IdentifyCommandResponse.

See Also:
AbstractCommandResponse.AbstractCommandResponse(CommandResponse)
Method Detail

getIdentification

public Identification getIdentification()
Returns the remote server's identification information.

Returns:
identification of the remote server


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