|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.neeve.root.RootObject
com.neeve.link.LnkObject
com.neeve.link.LnkRegistry
public final class LnkRegistry
Stores operating link peer endpoints in a Neeve application.
The link registry is a singleton class that stores links operating in a Neeve application. The registry is partitioned into multiple link containers of type {#link LnkContainer} each uniquely identified by name. Link containers add themselves to the registry when created. Link peer endpoints add and remove themselves from containers in the registry when created and closed respectively.
Method Summary | |
---|---|
void |
addContainer(LnkContainer container)
Add a link container to the registry. |
LnkContainer |
getContainer(String name)
Get a link container from the registry. |
cern.colt.list.ObjectArrayList |
getContainers()
Get the link containers in the registry. |
static LnkRegistry |
getInstance()
Return the singleton link registry instance |
LnkContainer |
removeContainer(String name)
Remove a link container from the registry. |
Methods inherited from class com.neeve.root.RootObject |
---|
getChecked, getThreaded, getTracer, setChecked, setTracer |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static LnkRegistry getInstance()
public final void addContainer(LnkContainer container) throws ELnkAlreadyPresentException
container
- The container to add.
ELnkAlreadyPresentException
- Thrown if a container with the
provided name is already present in the registry.
This method adds a container to the registry. It uses the container name as the key to identify the container.
public final LnkContainer getContainer(String name)
name
- The container name.
This method uses the supplied name to lookup a container in the registry. A null value is returned in case the container with the specified name is not present in the registry.
public final cern.colt.list.ObjectArrayList getContainers()
This method returns a copy of the list of link containers in the registry. The user is free to modify the returned list. Modification of the returned list will not modify the contents of the registry.
public final LnkContainer removeContainer(String name)
name
- The container name.
This method uses the supplied name to find and remove a container from the registry.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |