org.apache.avalon.excalibur.command
Class CommandManager

java.lang.Object
  |
  +--org.apache.avalon.excalibur.command.CommandManager
All Implemented Interfaces:
EventPipeline

public class CommandManager
extends java.lang.Object
implements EventPipeline

The CommandManager handles asynchronous commands from the rest of the system. The only exposed piece is the Queue that other components use to give Commands to this system. You must register this with a ThreadManager for it to work.

Author:
Berin Loritsch

Constructor Summary
CommandManager()
           
 
Method Summary
 void deregisterSignalHandler(Signal signal, EventHandler handler)
           
 Queue getCommandQueue()
           
 EventHandler getEventHandler()
          Returns the reference to the EventHandler that the events from all the Sinks get merged into.
 Sink[] getSinks()
          There can be many different sinks to merge into a pipeline.
 void registerSignalHandler(Signal signal, EventHandler handler)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandManager

public CommandManager()
Method Detail

getCommandQueue

public final Queue getCommandQueue()

registerSignalHandler

public final void registerSignalHandler(Signal signal,
                                        EventHandler handler)

deregisterSignalHandler

public final void deregisterSignalHandler(Signal signal,
                                          EventHandler handler)

getSinks

public final Sink[] getSinks()
Description copied from interface: EventPipeline
There can be many different sinks to merge into a pipeline. For the CommandManager, there is only one sink.
Specified by:
getSinks in interface EventPipeline

getEventHandler

public final EventHandler getEventHandler()
Description copied from interface: EventPipeline
Returns the reference to the EventHandler that the events from all the Sinks get merged into.
Specified by:
getEventHandler in interface EventPipeline


Copyright © 2001 Apache Jakarta Project. All Rights Reserved.