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)
ApiConfigIsetJrpcMode in interface ApiConfigIpublic boolean getJrpcMode()
getJrpcMode in interface ApiConfigIpublic void setClientRpcVersion(int clientRpcVersion)
ApiConfigIsetClientRpcVersion in interface ApiConfigIpublic int getClientRpcVersion()
getClientRpcVersion in interface ApiConfigIpublic void setJniLoadMode(int jniLoadMode)
ApiConfigIsetJniLoadMode in interface ApiConfigIpublic int getJniLoadMode()
getJniLoadMode in interface ApiConfigIpublic void setApiRecordingMode(int apiRecording)
ApiConfigIsetApiRecordingMode in interface ApiConfigIpublic int getApiRecording()
getApiRecording in interface ApiConfigIpublic void setMinimumSupportedServerRpcVersion(int minimumSupportedServerRpcVersion)
ApiConfigIsetMinimumSupportedServerRpcVersion in interface ApiConfigIpublic int getMinimumSupportedServerRpcVersion()
getMinimumSupportedServerRpcVersion in interface ApiConfigIpublic void setConnectionMaxRetries(int connectionMaxRetries)
ApiConfigIsetConnectionMaxRetries in interface ApiConfigIpublic int getConnectionMaxRetries()
getConnectionMaxRetries in interface ApiConfigIpublic void setTimeLagBetweenRetriesMillSec(int timeLagBetweenRetriesMillSec)
ApiConfigIsetTimeLagBetweenRetriesMillSec in interface ApiConfigIpublic int getTimeLagBetweenRetriesMillSec()
getTimeLagBetweenRetriesMillSec in interface ApiConfigIpublic 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)
ApiConfigIsetRpcClientStubType in interface ApiConfigIpublic String getRpcClientStubType()
getRpcClientStubType in interface ApiConfigIpublic 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.