public final class SessionManagerFactory
extends java.lang.Object
SessionManager for this process. Either a leaf or a router session manager can be created.
This class may not be constructed. All functionality is provided by static methods.
| Modifier | Constructor and Description |
|---|---|
private |
SessionManagerFactory()
Private constructor to prevent this class from being instantiated.
|
| Modifier and Type | Method and Description |
|---|---|
static SessionManager |
createLeafNode(BootstrapConfig config)
Create the singleton instance of the
SessionManager used
for a leaf network node, or simply return this instance if it already
exists. |
static SessionManager |
createRouterNode(BootstrapConfig config)
Create the singleton instance of the
SessionManager used
for a router network node, or simply return this instance if it already
exists. |
private SessionManagerFactory()
public static SessionManager createLeafNode(BootstrapConfig config) throws ConfigurationException
SessionManager used
for a leaf network node, or simply return this instance if it already
exists.
The preferred way to retrieve the existing singleton session manager,
once it has been created, is with SessionManager.get().
config - Bootstrap configuration for this network node.ConfigurationException - if there is any configuration error during the session
manager's initialization.public static SessionManager createRouterNode(BootstrapConfig config) throws ConfigurationException
SessionManager used
for a router network node, or simply return this instance if it already
exists.
The preferred way to retrieve the existing singleton session manager,
once it has been created, is with SessionManager.get().
config - Bootstrap configuration for this network node.ConfigurationException - if there is any configuration error during the session
manager's initialization.