org.rhq.enterprise.communications.command.client
Class CommandAndCallback

java.lang.Object
  extended by org.rhq.enterprise.communications.command.client.CommandAndCallback
All Implemented Interfaces:
Serializable

public class CommandAndCallback
extends Object
implements Serializable

Just a simple class to encapsulate both a command and an optional callback object.

Author:
John Mazzitelli
See Also:
Serialized Form

Constructor Summary
CommandAndCallback(Command command, CommandResponseCallback callback)
          Creates a new CommandAndCallback object.
 
Method Summary
 CommandResponseCallback getCallback()
          Returns the callback.
 Command getCommand()
          Returns the command.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CommandAndCallback

public CommandAndCallback(Command command,
                          CommandResponseCallback callback)
Creates a new CommandAndCallback object.

Parameters:
command -
callback -
Method Detail

getCallback

public CommandResponseCallback getCallback()
Returns the callback.

Returns:
callback

getCommand

public Command getCommand()
Returns the command.

Returns:
command

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object.toString()


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