public abstract class AbstractDispatcher extends Object implements Dispatcher
Dispatcher.
If we need statistic-based actions or MBean access, this is the place to addReport it.| Modifier and Type | Class and Description |
|---|---|
protected static class |
AbstractDispatcher.Bin |
protected static class |
AbstractDispatcher.Bucket |
protected static class |
AbstractDispatcher.Status |
Dispatcher.Order, Dispatcher.Stage, Dispatcher.Stat, Dispatcher.StatusListener| Modifier | Constructor and Description |
|---|---|
protected |
AbstractDispatcher(String... args) |
| Modifier and Type | Method and Description |
|---|---|
void |
addStatusListener(Dispatcher.StatusListener listener)
Registers status listener.
|
protected int[] |
getIntArrayArg(String key,
String[] args) |
protected Integer |
getIntegerArg(String key,
String[] args) |
protected org.lsst.ccs.utilities.logging.Logger |
getLogger() |
AbstractDispatcher.Status |
getStatus()
Returns statistics and diagnostic data on the current state of this
Dispatcher. |
void |
initialize()
Initializes this dispatcher.
|
void |
removeStatusListener(Dispatcher.StatusListener listener)
Removes status listener.
|
protected void |
report(Runnable run,
long taskID,
boolean incoming,
Bus bus,
Dispatcher.Order order,
long duration,
Dispatcher.Stage... stages) |
void |
shutdown()
Orderly shuts down this dispatcher.
|
protected void |
updateStatistics(ArrayList<Integer> ids) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitin, outprotected static final Timer timer
protected AbstractDispatcher(String... args)
public void initialize()
Dispatcherinitialize in interface Dispatcherpublic void shutdown()
DispatcherMessagingLayer will not be closed until this method returns.shutdown in interface Dispatcherprotected void report(Runnable run, long taskID, boolean incoming, Bus bus, Dispatcher.Order order, long duration, Dispatcher.Stage... stages)
public AbstractDispatcher.Status getStatus()
DispatcherDispatcher.
Implementations of Status returned by specific implementations of Dispatcher may provide additional data.
The object returned by this method should be treated as immutable.
It reflects the latest recorded state and will not be updated.getStatus in interface Dispatchernull if not available.public void addStatusListener(Dispatcher.StatusListener listener)
DispatcheraddStatusListener in interface Dispatcherlistener - Listener to add.public void removeStatusListener(Dispatcher.StatusListener listener)
DispatcherremoveStatusListener in interface Dispatcherlistener - Listener to remove.protected org.lsst.ccs.utilities.logging.Logger getLogger()
Copyright © 2020 LSST. All rights reserved.