public class Manager
extends java.lang.Object
NotificationListener
to receive notifications.
Usually, a single instantiation of the manager class for the entire platform receives and handles notification messages.
The messages it receives are intended to be human readable and forwarded to an individual or group
that are assigned to respond to the notifications.
It may be desirable for a platform to have additional manager instances for redundancy purposes. Notifications may
also be load balanced depending on the order that the managers are initialized and distance to the sink or source.
This class can be instantiated only by using its static create(org.opendof.datatransfer.manager.Manager.Config) method.| Modifier and Type | Class and Description |
|---|---|
static class |
Manager.Config
The Config class represents the configuration of a manager.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the manager, which releases all resources and stops all listeners.
|
static Manager |
create(Manager.Config config)
Creates and returns an instance of
Manager that uses the specified configuration. |
org.opendof.core.oal.DOFSystem |
getSystem()
Gets the OpenDOF system used by the source to facilitate network communications.
|
java.lang.String |
toString() |
public static Manager create(Manager.Config config)
Manager that uses the specified configuration. The manager immediately begins
processing and continues processing until close() is called or the object is garbage collected.
The manager will start with StatusLevel.ERROR during initialization. The StatusListener will be notified with
StatusLevel.OK once the manager has finished initializing.
config - The configuration to use. This must not be null.Manager.Config,
Manager.Config.Builder,
StatusListenerpublic void close()
public org.opendof.core.oal.DOFSystem getSystem()
public java.lang.String toString()
toString in class java.lang.Object