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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CommandManager
public CommandManager()
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.