|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.resoa.node.core.NodeDomainRelationManager<T>
T - The type of managed domainpublic class NodeDomainRelationManager<T>
NodeDomainRelationManager class manages the n:m relation of Resoa nodes and service Domains, deployed in the grid. One domain can be hosted by several nodes, and a node might act as a container for several domains. NodeDomainRelation Manager is the class for managing this relation, it takes the relevant information out of the ResoaInfo.xml and identifies the nodes, it must hold connections to.
| Nested Class Summary | |
|---|---|
static interface |
NodeDomainRelationManager.DomainCache<T>
The interface, the class which caches the domain handles must implement |
| Field Summary | |
|---|---|
protected java.util.concurrent.locks.ReentrantLock |
lock
|
protected javolution.util.FastMap<java.lang.String,ResoaNodeHandle> |
nodeHandles
Cache for all grid nodes, which connections might be established to. |
| Constructor Summary | |
|---|---|
NodeDomainRelationManager()
Constructor initializes internal objects and maps |
|
| Method Summary | |
|---|---|
void |
disconnectInactiveNodes()
Disconnect inactive nodes |
java.util.List<java.lang.String> |
getConnectedProfiles()
Returns a List of connected profiles |
java.util.List<ResoaNodeHandle> |
getControllerNodes(java.util.List<ResoaNodeHandle> connections,
boolean initializedOnly)
Returns list of all controller nodes |
java.util.List<org.resoa.stack.config.StackProfile> |
getGrantedProfiles()
|
java.util.List<ResoaNodeHandle> |
getGridConnectionList(java.util.List<ResoaNodeHandle> connections)
Returns a list of all node handles, where connections should be established |
org.resoa.topology.ResoaComponent |
getLocalResoaComponent()
|
ResoaNodeHandle |
getNodeHandle(java.lang.String profileName)
Get a ResoeNodeHandle |
java.util.List<ResoaNodeHandle> |
getNodeHandles(org.resoa.grid.ResoaNodeType type)
Get all registered ResoeNodeHandle |
org.resoa.topology.ResoaInfo |
getResoaInfo()
resoaInfo getter |
org.resoa.grid.GridSession |
getResoaSession(java.lang.String domain)
Returns an active Resoa session for a dedicated domain. |
java.util.List<ResoaNodeHandle> |
getResoaSessions(java.lang.String domain)
Returns list of all nodes which serve for a domainID |
void |
init(NodeDomainRelationManager.DomainCache<?> domains,
java.util.List<org.resoa.stack.config.StackProfile> initialControllers)
Initializes with gateway and domain cache instance |
org.resoa.grid.ResoaInfoState |
newResoaInfo(org.resoa.topology.ResoaInfo newResoaInfo)
Processes a new arrived resoaInfo. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.concurrent.locks.ReentrantLock lock
protected javolution.util.FastMap<java.lang.String,ResoaNodeHandle> nodeHandles
| Constructor Detail |
|---|
public NodeDomainRelationManager()
| Method Detail |
|---|
public void init(NodeDomainRelationManager.DomainCache<?> domains,
java.util.List<org.resoa.stack.config.StackProfile> initialControllers)
domains - initialControllers - public org.resoa.topology.ResoaComponent getLocalResoaComponent()
public ResoaNodeHandle getNodeHandle(java.lang.String profileName)
profileName -
public java.util.List<ResoaNodeHandle> getNodeHandles(org.resoa.grid.ResoaNodeType type)
public java.util.List<ResoaNodeHandle> getResoaSessions(java.lang.String domain)
domain - the id if the domain
public java.util.List<java.lang.String> getConnectedProfiles()
public java.util.List<ResoaNodeHandle> getControllerNodes(java.util.List<ResoaNodeHandle> connections,
boolean initializedOnly)
connections - an existing list or null
public java.util.List<ResoaNodeHandle> getGridConnectionList(java.util.List<ResoaNodeHandle> connections)
connections - an existing list or null
public org.resoa.grid.GridSession getResoaSession(java.lang.String domain)
domain - the domain
public java.util.List<org.resoa.stack.config.StackProfile> getGrantedProfiles()
public void disconnectInactiveNodes()
public org.resoa.topology.ResoaInfo getResoaInfo()
public org.resoa.grid.ResoaInfoState newResoaInfo(org.resoa.topology.ResoaInfo newResoaInfo)
newResoaInfo - the new ResoaInfo
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||