org.rhq.enterprise.gui.startup
Class ExternalizableStrategyCommandListener
java.lang.Object
org.rhq.enterprise.gui.startup.ExternalizableStrategyCommandListener
- All Implemented Interfaces:
- org.rhq.enterprise.communications.command.server.CommandListener
public class ExternalizableStrategyCommandListener
- extends Object
- implements org.rhq.enterprise.communications.command.server.CommandListener
This is a listener for commands coming into the ServiceContainer's CommandPreprocessor and will
set the ExternalizableStratagy for the command processing thread. This ensures that the proper strategy is applied to
the Return value serialization.
- Author:
- Jay Shaughnessy
|
Method Summary |
boolean |
equals(Object obj)
|
int |
hashCode()
|
void |
processedCommand(org.rhq.enterprise.communications.command.Command command,
org.rhq.enterprise.communications.command.CommandResponse response)
This is called for every command that finished. |
void |
receivedCommand(org.rhq.enterprise.communications.command.Command command)
This will be called for every command coming in. |
ExternalizableStrategyCommandListener
public ExternalizableStrategyCommandListener(org.rhq.core.domain.server.ExternalizableStrategy.Subsystem defaultSubsystem)
receivedCommand
public void receivedCommand(org.rhq.enterprise.communications.command.Command command)
- This will be called for every command coming in. Set the correct strategy based on the command config. This will
be applied to the return serialization.
- Specified by:
receivedCommand in interface org.rhq.enterprise.communications.command.server.CommandListener
- See Also:
CommandListener.receivedCommand(Command)
processedCommand
public void processedCommand(org.rhq.enterprise.communications.command.Command command,
org.rhq.enterprise.communications.command.CommandResponse response)
- This is called for every command that finished. It does nothing since the serialization is complete.
- Specified by:
processedCommand in interface org.rhq.enterprise.communications.command.server.CommandListener
- See Also:
CommandListener.processedCommand(Command, CommandResponse)
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.