public class OKVConnCtx
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_NAME |
static java.util.logging.Logger |
logger |
Constructor and Description |
---|
OKVConnCtx(OKVEnv env,
boolean isWriteOp,
boolean autoManageConn,
int serverIndex)
Setup the connection context.
|
Modifier and Type | Method and Description |
---|---|
void |
clientConnFindServer(java.lang.String walletLoc,
oracle.okv.utils.OKVSecureString pswd,
java.lang.Float pollTimeout,
boolean autoManageConn) |
OKVConnection |
getKmipConnection()
Get the KMIP Connection object.
|
int |
getNumConnsTried() |
int |
getServerIdx() |
java.util.List<OKVClientServerInfo> |
getServerList()
Get the list of servers.
|
int |
getTrySkippedServers() |
void |
resetScanInfo() |
void |
setKmipConnection(OKVConnection kmipConnection)
Set the KMIP Connection object.
|
void |
setNumConnsTried(int numServersTried) |
void |
setServerIdx(int serverIdx) |
void |
setServerList(java.util.List<OKVClientServerInfo> serverList)
Set the list of servers.
|
void |
setTrySkippedServers(int trySkippedServers) |
public static final java.lang.String CLASS_NAME
public static final java.util.logging.Logger logger
public OKVConnCtx(OKVEnv env, boolean isWriteOp, boolean autoManageConn, int serverIndex) throws OKVConnectionException
env
- Oracle Key Vault environment variableisWriteOp
- Is the current operation a write operationautoManageConn
- Is the connection auto managedserverIndex
- server indexOKVConnectionException
public OKVConnection getKmipConnection()
public void setKmipConnection(OKVConnection kmipConnection)
kmipConnection
- KMIP Connection Objectpublic java.util.List<OKVClientServerInfo> getServerList()
public void setServerList(java.util.List<OKVClientServerInfo> serverList)
serverList
- list of serverspublic int getNumConnsTried()
public void setNumConnsTried(int numServersTried)
public int getServerIdx()
public void setServerIdx(int serverIdx)
public int getTrySkippedServers()
public void setTrySkippedServers(int trySkippedServers)
public void clientConnFindServer(java.lang.String walletLoc, oracle.okv.utils.OKVSecureString pswd, java.lang.Float pollTimeout, boolean autoManageConn) throws OKVConnectionException
OKVConnectionException
public void resetScanInfo()