org.rhq.enterprise.communications.command.client
Interface CommandResponseCallback

All Superinterfaces:
Serializable
All Known Implementing Classes:
RemotePojoInvocationFuture

public interface CommandResponseCallback
extends Serializable

This defines the callback object that will be called when an asynchronous command has been sent. It allows the client that asked to send the command to be notified of the results of the command.

NOTE: This class is serializable since it is possible for commands to have to be persisted to disk as part of a guaranteed delivery mechanism. This might not be something we should expect - we might have to remove the serialization requirement on this class and just make the callback transient in the CommandAndCallback class.

Author:
John Mazzitelli

Method Summary
 void commandSent(CommandResponse response)
          The callback method that indicates the command was sent.
 

Method Detail

commandSent

void commandSent(CommandResponse response)
The callback method that indicates the command was sent. The response is the results of the command execution as returned by the server.

Parameters:
response - the results of the command


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