public abstract class ApiConfig extends Object implements ApiConfigI
Modifier and Type | Field and Description |
---|---|
static String |
MAINCONFIG_NAME |
static String |
PROPERTY_NAME |
Constructor and Description |
---|
ApiConfig(String configName,
String file) |
Modifier and Type | Method and Description |
---|---|
ApiWebSocketConfig |
get(String serverName) |
int |
getApiRecording() |
int |
getClientRpcVersion() |
String |
getConfigName() |
long |
getConnectionLifespan()
Number of
timeUnit interval that connection will be load balanced. |
int |
getConnectionMaxRetries() |
long |
getConnectionTimeout()
Number of
timeUnit that
-- connections that exceed idleConnectionsPerServer
can be idle before being terminated. |
int |
getIdleConnectionsPerServer()
Number of idle connections in an active connection pool
that are not subject to the
idleConnectionsPerServer limit. |
int |
getJniLoadMode() |
boolean |
getJrpcMode() |
int |
getMaxProxiesPerServer()
Connection pool size per server
|
int |
getMinimumSupportedServerRpcVersion() |
String |
getRpcClientStubType()
Return APIs RpcClientStub type
|
int |
getTimeLagBetweenRetriesMillSec() |
ARTimeUnit |
getTimeUnit()
ARTimeUnit |
String |
getTimeUnitStr()
ARTimeUnit |
ApiWebSocketConfig |
getWebSocket_config(String server) |
boolean |
isProxyPoolingOn() |
void |
put(String serverName,
ApiWebSocketConfig updatingConfig) |
static void |
register(ApiConfig config)
register an ApiConfig instance into the ApiConfig instance collection.
|
void |
setApiRecordingMode(int apiRecording)
set API recording
|
void |
setClientRpcVersion(int clientRpcVersion)
set client RPC version
|
void |
setConnectionMaxRetries(int connectionMaxRetries)
set connection Max retries
|
void |
setJniLoadMode(int jniLoadMode)
set JNI Load Mode
|
void |
setJrpcMode(boolean jrpcMode)
set Jrpcmode
|
void |
setJrpcMode(org.apache.commons.configuration.Configuration config) |
void |
setMinimumSupportedServerRpcVersion(int minimumSupportedServerRpcVersion)
Set minimum supported Server RPC Version
|
void |
setRpcClientStubType(String rpcClientStubType)
Set RpcClientStub type
|
void |
setTimeLagBetweenRetriesMillSec(int timeLagBetweenRetriesMillSec)
Set time-lag between Retries
|
void |
setWebSocketConfig(List<ApiWebSocketConfig> configList) |
void |
updateWebSocketSettingsInXml(Map<String,ApiWebSocketConfig> updateConfigs) |
public static final String PROPERTY_NAME
public static final String MAINCONFIG_NAME
public String getConfigName()
public static void register(ApiConfig config)
config
- public void setJrpcMode(org.apache.commons.configuration.Configuration config)
public void setJrpcMode(boolean jrpcMode)
ApiConfigI
setJrpcMode
in interface ApiConfigI
public boolean getJrpcMode()
getJrpcMode
in interface ApiConfigI
public void setClientRpcVersion(int clientRpcVersion)
ApiConfigI
setClientRpcVersion
in interface ApiConfigI
public int getClientRpcVersion()
getClientRpcVersion
in interface ApiConfigI
public void setJniLoadMode(int jniLoadMode)
ApiConfigI
setJniLoadMode
in interface ApiConfigI
public int getJniLoadMode()
getJniLoadMode
in interface ApiConfigI
public void setApiRecordingMode(int apiRecording)
ApiConfigI
setApiRecordingMode
in interface ApiConfigI
public int getApiRecording()
getApiRecording
in interface ApiConfigI
public void setMinimumSupportedServerRpcVersion(int minimumSupportedServerRpcVersion)
ApiConfigI
setMinimumSupportedServerRpcVersion
in interface ApiConfigI
public int getMinimumSupportedServerRpcVersion()
getMinimumSupportedServerRpcVersion
in interface ApiConfigI
public void setConnectionMaxRetries(int connectionMaxRetries)
ApiConfigI
setConnectionMaxRetries
in interface ApiConfigI
public int getConnectionMaxRetries()
getConnectionMaxRetries
in interface ApiConfigI
public void setTimeLagBetweenRetriesMillSec(int timeLagBetweenRetriesMillSec)
ApiConfigI
setTimeLagBetweenRetriesMillSec
in interface ApiConfigI
public int getTimeLagBetweenRetriesMillSec()
getTimeLagBetweenRetriesMillSec
in interface ApiConfigI
public boolean isProxyPoolingOn()
public int getMaxProxiesPerServer()
public int getIdleConnectionsPerServer()
idleConnectionsPerServer
limit.
These connections can be open indefinitely.
Value must be less than or equal to the maxProxyPerServer
value. Default value is 5.
variable to 0 to result if all connections
in a pool have been idle for the specified time period, the entire pool is deleted.public long getConnectionTimeout()
timeUnit
that
-- connections that exceed idleConnectionsPerServer
can be idle before being terminated. This time limit ensures that active pools regularly
clean up their excess idle connections.
variable to 0 to prevent any idle connection from terminating before the Java API
client--such as the mid tier or BMC Remedy Data Import--is shut down,public long getConnectionLifespan()
timeUnit
interval that connection will be load balanced.
variable to 0 to prevent any termination on connection,public String getTimeUnitStr()
ARTimeUnit name for connectionTimeout
and connectionLifespan
.
public ARTimeUnit getTimeUnit()
ARTimeUnit for connectionTimeout
and connectionLifespan
.
public void setRpcClientStubType(String rpcClientStubType)
ApiConfigI
setRpcClientStubType
in interface ApiConfigI
public String getRpcClientStubType()
getRpcClientStubType
in interface ApiConfigI
public ApiWebSocketConfig getWebSocket_config(String server)
public void setWebSocketConfig(List<ApiWebSocketConfig> configList)
public void updateWebSocketSettingsInXml(Map<String,ApiWebSocketConfig> updateConfigs)
public ApiWebSocketConfig get(String serverName)
public void put(String serverName, ApiWebSocketConfig updatingConfig)
? Copyright 2013 BMC Software, Inc.