public abstract class NodeManagerClient
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
debug |
Modifier | Constructor and Description |
---|---|
protected |
NodeManagerClient(ConnectionContext cc)
Connects to Topology REST API at the specified URL and with the specified
authentication parameters.
|
Modifier and Type | Method and Description |
---|---|
static ConnectionContext |
createConnectionContext(java.lang.String url,
java.lang.String username,
java.lang.String password) |
static ConnectionContext |
createConnectionContext(java.lang.String url,
java.lang.String username,
java.lang.String password,
com.vordel.jce.SSLTrustProfile trustProfile) |
static ConnectionContext |
createConnectionContext(java.lang.String url,
java.lang.String username,
java.lang.String password,
java.lang.String trustStoreFilename,
java.lang.String trustStorePassword) |
protected javax.ws.rs.client.WebTarget |
getRootWebResource() |
java.lang.String |
getUrl() |
protected void |
handleError(javax.ws.rs.core.Response response) |
protected void |
logDebug(java.lang.String msg) |
protected javax.ws.rs.client.WebTarget |
path(java.lang.String path) |
void |
setConnectTimeout(int interval) |
void |
setDebug(boolean debug)
Turns debug on/off.
|
void |
setReadTimeout(int interval) |
protected NodeManagerClient(ConnectionContext cc)
cc
- A ConnectionContext encapsulating the connection parameters to the NodeManagerpublic static ConnectionContext createConnectionContext(java.lang.String url, java.lang.String username, java.lang.String password, java.lang.String trustStoreFilename, java.lang.String trustStorePassword) throws NodeManagerAPIException
NodeManagerAPIException
public static ConnectionContext createConnectionContext(java.lang.String url, java.lang.String username, java.lang.String password) throws NodeManagerAPIException
NodeManagerAPIException
public static ConnectionContext createConnectionContext(java.lang.String url, java.lang.String username, java.lang.String password, com.vordel.jce.SSLTrustProfile trustProfile) throws NodeManagerAPIException
NodeManagerAPIException
public java.lang.String getUrl()
public void setDebug(boolean debug)
debug
- True if debugging is enabled to stdout, false otherwise.protected void logDebug(java.lang.String msg)
protected void handleError(javax.ws.rs.core.Response response) throws NodeManagerAPIException
NodeManagerAPIException
public void setReadTimeout(int interval)
public void setConnectTimeout(int interval)
protected final javax.ws.rs.client.WebTarget getRootWebResource()
protected javax.ws.rs.client.WebTarget path(java.lang.String path)
This documentation and all its contents and graphics, copyright © 1999 - 2011 Vordel