public class D1Client extends Object
Modifier and Type | Field and Description |
---|---|
protected static MultipartRestClient |
multipartRestClient |
Constructor and Description |
---|
D1Client() |
Modifier and Type | Method and Description |
---|---|
static CNode |
getCN()
Get the cached CNode object for calling Coordinating Node services.
|
static CNode |
getCN(Session session)
Deprecated.
broken functionality, and unused. use getCN() or getCN(baseUrl) instead
|
static CNode |
getCN(String cnBaseUrl)
Returns a Coordinating Node using the base service URL to look up the node
in the existing environment.
|
static MNode |
getMN(NodeReference nodeRef)
Return an MNode using the nodeReference for the member node.
|
static MNode |
getMN(String mnBaseUrl)
Returns a Member Node using the base service URL for the node.
|
protected static MultipartRestClient |
getMultipartRestClient() |
static void |
setCN(String cnUrl)
Use this method to set the environment via the baseUrl to the environment's
Coordinating Node.
|
static void |
setNodeLocator(NodeLocator nodeLocator)
For testing, we can override the nodeLocator
|
protected static MultipartRestClient multipartRestClient
protected static MultipartRestClient getMultipartRestClient() throws IOException, ClientSideException
IOException
ClientSideException
public static void setNodeLocator(NodeLocator nodeLocator)
nodeLocator
- public static CNode getCN() throws ServiceFailure, NotImplemented
ServiceFailure
NotImplemented
@Deprecated public static CNode getCN(Session session) throws ServiceFailure, NotImplemented
session
- - the client session to be used in connections, null uses default behavior.ServiceFailure
NotImplemented
public static void setCN(String cnUrl) throws NotImplemented, ServiceFailure
cnUrl
- NotImplemented
ServiceFailure
public static MNode getMN(String mnBaseUrl) throws ServiceFailure
mnBaseUrl
- the service URL for the Member NodeServiceFailure
public static CNode getCN(String cnBaseUrl) throws ServiceFailure
cnBaseUrl
- ServiceFailure
public static MNode getMN(NodeReference nodeRef) throws ServiceFailure
nodeRef
- ServiceFailure
Copyright © 2020. All Rights Reserved.