public class Network extends Object implements NetworkMBean
| Constructor and Description |
|---|
Network()
The default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
close()
This method closes the network.
|
protected void |
close(EPNContainer container)
Deprecated.
Use the 'close' method without the container parameter
|
protected ClassLoader |
contextClassLoader()
This method returns the context class loader
in which the network was pre-initialized.
|
Date |
getLastAccessed()
This method returns the date/time the network was
last accessed.
|
String |
getName()
This method returns the name of the network.
|
Node |
getNode(String name)
This method returns the node associated with the
supplied name.
|
List<Node> |
getNodes()
This method returns the event processor nodes.
|
List<Node> |
getNodesForSubject(String subject)
This method returns the list of nodes associated with the specified
subject.
|
List<Subscription> |
getSubscriptions()
This method returns the list of subscriptions that the network will subscribe
to for events.
|
String |
getVersion()
This method returns the version associated with the network.
|
protected void |
init(EPNContainer container)
This method initializes the network.
|
protected void |
initNameMap()
This method initializes the name to node map.
|
protected long |
lastAccessed()
This method returns the timestamp the network was
last accessed.
|
protected void |
lastAccessed(long timestamp)
This method sets the timestamp the network was
last accessed.
|
protected void |
preInit()
This method is called on occasions where the network's
event processors need to be initialized in a different
classloader context to the container related configuration
(i.e.
|
void |
setName(String name)
This method sets the name of the network.
|
void |
setNodes(List<Node> nodes)
This method sets the event processor nodes.
|
void |
setSubscriptions(List<Subscription> subscriptions)
This method sets the list of subscriptions that the network will subscribe
to for events.
|
void |
setVersion(String version)
This method sets the version associated with the network.
|
Set<String> |
subjects()
This method returns the set of subjects that this network
subscribes to.
|
public String getName()
getName in interface NetworkMBeanpublic void setName(String name)
name - The name of the networkpublic String getVersion()
getVersion in interface NetworkMBeanpublic void setVersion(String version)
version - The versionprotected long lastAccessed()
public Date getLastAccessed()
getLastAccessed in interface NetworkMBeanprotected void lastAccessed(long timestamp)
timestamp - When the network was last accessedpublic List<Subscription> getSubscriptions()
public void setSubscriptions(List<Subscription> subscriptions)
subscriptions - The list of subscriptionspublic List<Node> getNodesForSubject(String subject)
subject - The subjectpublic Set<String> subjects()
public List<Node> getNodes()
public void setNodes(List<Node> nodes)
nodes - The event processor nodespublic Node getNode(String name)
name - The nameprotected void preInit()
throws Exception
Exception - Failed to pre-initialize the networkprotected ClassLoader contextClassLoader()
protected void initNameMap()
protected void init(EPNContainer container) throws Exception
container - The containerException - Failed to initialize the networkprotected void close(EPNContainer container) throws Exception
container - The containerException - Failed to close the networkCopyright © 2013-2015 JBoss by Red Hat. All Rights Reserved.