public class LegacyDispatcher extends AbstractDispatcher
Dispatcher implementation that mimics previously existing system.
All processing is done on caller threads.AbstractDispatcher.TaskDispatcher.AlertEvent, Dispatcher.Event, Dispatcher.Listener, Dispatcher.Order, Dispatcher.Stagealerts, config, serviceExec| Constructor and Description |
|---|
LegacyDispatcher(String args) |
| Modifier and Type | Method and Description |
|---|---|
void |
in(Runnable runnable,
Bus bus,
String... agents)
Submits a task to process an incoming message or disconnection notification.
|
void |
initialize()
Initializes this dispatcher.
|
void |
out(Runnable runnable,
Bus bus,
Dispatcher.Order order)
Submits a task to process an outgoing message.
|
void |
shutdown()
Orderly shuts down this dispatcher.
|
addListener, deliverEvent, fireEvent, getBooleanArg, getIntArg, getIntArrayArg, getIntArrayArg, getLogger, getRegisteredAlerts, raiseAlert, raiseAlert, registerAlert, removeListenerpublic LegacyDispatcher(String args)
public void initialize()
initialize in interface Dispatcherinitialize in class AbstractDispatcherpublic void shutdown()
shutdown in interface Dispatchershutdown in class AbstractDispatcherpublic void in(Runnable runnable, Bus bus, String... agents)
Calling this method has no effect if this Dispatcher has not been initialized or it has been shut down.
runnable - Task to be executed.bus - Bus (LOG, STATUS, or COMMAND).agents - Names of affected agents (source or disconnected).public void out(Runnable runnable, Bus bus, Dispatcher.Order order)
runnable - Task to be executed.bus - Bus (LOG, STATUS, or COMMAND).order - Order of execution and capacity control policies.TransportStateException - If this Dispatcher is unable to accept the request.Copyright © 2022 LSST. All rights reserved.