org.rhq.enterprise.communications.command.server
Interface CommandListener

All Known Implementing Classes:
GlobalConcurrencyLimitCommandListener, GlobalSuspendCommandListener

public interface CommandListener

A listener that will receive notifications when new commands are received and when they have completed their processing.

Author:
John Mazzitelli

Method Summary
 void processedCommand(Command command, CommandResponse response)
          The listener callback method that is called when a new command has been processed and is about to be returned to the remote client.
 void receivedCommand(Command command)
          The listener callback method that is called when a new command has been received by a remote client.
 

Method Detail

receivedCommand

void receivedCommand(Command command)
The listener callback method that is called when a new command has been received by a remote client.

Implementors of this method must ensure that it does not block and finishes very quickly; otherwise, command throughput will suffer.

Parameters:
command - the new command that was received

processedCommand

void processedCommand(Command command,
                      CommandResponse response)
The listener callback method that is called when a new command has been processed and is about to be returned to the remote client.

Implementors of this method must ensure that it does not block and finishes very quickly; otherwise, command throughput will suffer.

Parameters:
command - the command that was received and processed
response - the results of the command - this is being sent back to the client


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