public abstract class NodeLocator extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Map<NodeReference,D1Node> |
nodeMap
this property can be re-initialized by concrete subclasses
|
| Constructor and Description |
|---|
NodeLocator() |
| Modifier and Type | Method and Description |
|---|---|
abstract CNode |
getCNode()
This method should return the favored CNode, so that a CN can be obtained
without NodeReference or serviceBaseUrl.
|
CNode |
getCNode(NodeReference nodeReference)
Return a CNode associated with the nodeReference parameter, or
throw a ClientSideException.
|
CNode |
getCNode(String baseUrl)
Return a CNode associated with the baseUrl parameter, or
throw a ClientSideException
|
MNode |
getMNode(NodeReference nodeReference)
Return an MNode associated with the nodeReference parameter, or
throw a ClientSideException
|
MNode |
getMNode(String baseUrl)
Return an MNode associated with the baseUrl parameter, or
throw a ClientSideException
|
Set<NodeReference> |
listD1Nodes()
Returns the set of NodeReferences in the NodeLocator
|
Set<NodeReference> |
listD1Nodes(NodeType nodeType)
Returns the set of NodeReferences of D1Nodes matching the nodeType parameter
|
void |
putCNode(NodeReference nodeRef,
CNode cnode)
Puts a constructed CNode into the NodeLocator.
|
void |
putMNode(NodeReference nodeRef,
MNode mnode)
Puts a constructed MNode into the NodeLocator.
|
protected Map<NodeReference,D1Node> nodeMap
public void putMNode(NodeReference nodeRef, MNode mnode)
nodeRef - mnode - public void putCNode(NodeReference nodeRef, CNode cnode)
nodeRef - cnode - public MNode getMNode(NodeReference nodeReference) throws ClientSideException
nodeReference - ClientSideExceptionpublic CNode getCNode(NodeReference nodeReference) throws ClientSideException
nodeReference - ClientSideExceptionpublic MNode getMNode(String baseUrl) throws ClientSideException
baseUrl - ClientSideExceptionpublic CNode getCNode(String baseUrl) throws ClientSideException
baseUrl - ClientSideExceptionpublic Set<NodeReference> listD1Nodes()
public Set<NodeReference> listD1Nodes(NodeType nodeType)
nodeType - public abstract CNode getCNode() throws ClientSideException
ClientSideExceptionCopyright © 2014. All Rights Reserved.