public class GlobalSuspendCommandListener extends Object implements CommandListener
ServiceContainer's CommandPreprocessor and will
immediately deny processing of the command, returning a NotProcessedException. This is used if for some reason
all command processing should stop temporarily. Adding the listener will stop all commands and deleting the listener will
resume command processing.| Constructor and Description |
|---|
GlobalSuspendCommandListener(String name,
String reason) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
int |
hashCode() |
void |
processedCommand(Command command,
CommandResponse response)
This is called for every command that finished.
|
void |
receivedCommand(Command command)
This will be called for every command coming in.
|
public GlobalSuspendCommandListener(String name, String reason)
reason - The reason command processing is being suspended. If provided will be supplied to NotProcessedExceptionpublic void receivedCommand(Command command)
NotProcessedException.receivedCommand in interface CommandListenercommand - the new command that was receivedCommandListener.receivedCommand(Command)public void processedCommand(Command command, CommandResponse response)
NotProcessedException.processedCommand in interface CommandListenercommand - the command that was received and processedresponse - the results of the command - this is being sent back to the clientCommandListener.processedCommand(Command, CommandResponse)Copyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.