public class NodeListNodeLocator extends NodeLocator
Modifier and Type | Field and Description |
---|---|
protected MultipartRestClient |
client |
protected Deque<CNode> |
cnList |
protected NodeList |
nodeList |
nodeMap
Constructor and Description |
---|
NodeListNodeLocator(NodeList nl,
MultipartRestClient mrc)
The constructor populates the NodeLocator from MN and CN nodes from the
give Nodelist, building D1Node implementations using the MultipartRestClient.
|
Modifier and Type | Method and Description |
---|---|
CNode |
getCNode()
This method should return the favored CNode, so that a CN can be obtained
without NodeReference or serviceBaseUrl.
|
void |
initCnList()
Determines which CNodes will be part of the cnList.
|
getNode, getNode, listD1Nodes, listD1Nodes, putNode
protected NodeList nodeList
protected MultipartRestClient client
public NodeListNodeLocator(NodeList nl, MultipartRestClient mrc) throws ClientSideException
nl
- - the nodeList to build the NodeLocator map withmrc
- - the MultipartRestClient to associate with the D1Nodes when building the mapClientSideException
public CNode getCNode() throws ClientSideException
NodeLocator
getCNode
in class NodeLocator
ClientSideException
public void initCnList() throws ClientSideException
ClientSideException
Copyright © 2018. All Rights Reserved.