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 D1Node |
getCNode()
This method should return the favored CNode, so that a CN can be obtained
without NodeReference or serviceBaseUrl.
|
D1Node |
getNode(NodeReference nodeReference)
Return a Node associated with the nodeReference parameter, or
throw a ClientSideException
|
D1Node |
getNode(String baseUrl)
Return a node 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 |
putNode(NodeReference nodeRef,
D1Node node)
Puts a constructed node into the NodeLocator.
|
protected Map<NodeReference,D1Node> nodeMap
public void putNode(NodeReference nodeRef, D1Node node)
nodeRef - node - public D1Node getNode(NodeReference nodeReference) throws ClientSideException
nodeReference - ClientSideExceptionpublic D1Node getNode(String baseUrl) throws ClientSideException
baseUrl - ClientSideExceptionpublic Set<NodeReference> listD1Nodes()
public Set<NodeReference> listD1Nodes(NodeType nodeType)
nodeType - public abstract D1Node getCNode() throws ClientSideException
ClientSideExceptionCopyright © 2020. All Rights Reserved.