public class RunTimeProperties
extends java.lang.Object
Constructor and Description |
---|
RunTimeProperties() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getAppServerKeepalive()
Method gets the AppServer Keepalive capabilities value
|
static boolean |
getBooleanProperty(java.lang.String propName) |
static java.lang.String |
getCertificateStore()
Method Returns the certicate store list
|
static int |
getClientASKActivityTimeout()
Method gets the AppServer client Keepalive Activity Timeout
|
static int |
getClientASKResponseTimeout()
Method gets the AppServer client Keepalive Response Timeout
|
static java.lang.String |
getClientContextID()
Method get the clientContextID
|
static com.progress.auth.ClientPrincipal |
getClientPrincipal()
Method get the client principal
|
static int |
getClientType()
Method get the client type
|
static boolean |
getCompressionEnabled()
Method returns true if compression is enabled
|
static int |
getCompressionLevel()
Method returns the compression level for compressing message bodies
|
static int |
getCompressionThreshold()
Returns the minimum required size in bytes before a message is compressed.
|
static int |
getConnectionLifetime()
Method Returns the connection lifetime
|
static boolean |
getDatasetNullInitials()
Method gets the dataset null initials setting
|
static int |
getDynamicApiVersion()
Returns the "Dynamic API" version.
|
static int |
getIdleConnectionTimeout()
Method Returns the Idle Connection Timeout
|
static int |
getInitialConnections()
Method Returns the number of initial connections to be made
|
static int |
getIntProperty(java.lang.String propName) |
static java.lang.String |
getLocalMaintVersion()
Method get the local maint version
|
static java.lang.String |
getLocalMajorVersion()
Method get the local major version
|
static java.lang.String |
getLocalMinorVersion()
Method get the local minor version
|
static OEVersionInfo |
getLocalVersionInfo()
Method get the local version info
|
static java.lang.String |
getLogEntryTypes()
Method Returns the log entry types
|
static java.lang.String |
getLogfileName()
Method Returns the logfileName
|
static long |
getLongProperty(java.lang.String propName) |
static int |
getMaxConnections()
Method Returns the maximum number of connections to be made
|
static int |
getMinConnections()
Method Returns the minimum number of connections to be made
|
static int |
getNetworkBufferSize()
Method get the network buffer size
|
static boolean |
getNoHostVerify()
Method returns the optional HTTPS (SSL) server domain authentication .
|
static boolean |
getNoSslSessionReuse()
Get the current state of SSL session reuse.
|
static int |
getNsClientMaxPort()
Method Returns the maximum nameserver client port
|
static int |
getNsClientMinPort()
Method Returns the minimum nameserver client port
|
static int |
getNsClientPicklistSize()
Method Returns the number of broker definitions the nameserver client should
retrieve from the nameserver each time
|
static int |
getNsClientPortRetry()
Method Returns the number of times the nameserver client should retry
connecting to the nameserver
|
static int |
getNsClientPortRetryInterval()
Method Returns the number of seconds the nameserver client should wait
between retrying to connect to the nameserver
|
static boolean |
getPostponeRelationInfo()
Method gets whether the behavior for whether the relational info is built
when loading the ProDataGraph's data.
|
static java.lang.String |
getProxyHost()
Method Returns the proxy host
|
static java.lang.String |
getProxyPassword()
Method Returns the proxy authentication password
|
static int |
getProxyPort()
Method Returns the proxy port
|
static java.lang.String |
getProxyUserId()
Method Returns the proxy authentication user-id
|
static int |
getRequestWaitTimeout()
Method Returns the number of seconds the client should wait for a connection
to become available to run a request
|
static void |
getServerName()
return server name
|
static int |
getSessionModel()
Method Returns the session model
|
static java.lang.String |
getSslCiphers()
Method gets the ssl ciphers
|
static java.lang.String |
getSslVersions()
Method gets the ssl protocol versions
|
static Connection |
getStaticProperties()
Method Returns all the static properties
|
static int |
getStreamProtocolVersion()
Returns the "Stream Protocol" version.
|
static java.lang.String |
getStringProperty(java.lang.String propName) |
static int |
getTraceLevel()
Method Returns the trace level
|
static boolean |
getUseDeprecatedGetChanges()
Method Returns true if the functionality of ProChangeSummary.getChanges() has
been reverted to the original/deprecated functionality, or false if it
performs the current (default) functionality.
|
static java.lang.String |
getUUID()
Method Returns the uuid
|
static boolean |
getWaitIfBusy()
Returns the current "Wait If Busy" setup.
|
static boolean |
isTracing()
Method Returns if tracing is on or not
|
static void |
setAppServerKeepalive(java.lang.String AppServerKeepalive)
Method sets the AppServer Keepalive value
|
static void |
setBooleanProperty(java.lang.String propName,
boolean propValue) |
static void |
setCertificateStore(java.lang.String certStoreList)
Method Set the CertificateStore.
|
static void |
setClientASKActivityTimeout(int AppServerKeepaliveTimeout)
Method sets the AppServer client Keepalive Activity Timeout
|
static void |
setClientASKResponseTimeout(int AppServerKeepaliveResponseTimeout)
Method sets the AppServer client Keepalive Response Timeout
|
static void |
setClientContextID(java.lang.String clientContextID)
Method set the clientContextID
|
static void |
setClientPrincipal(com.progress.auth.ClientPrincipal clientPrincipal)
Method set the client principal
|
static void |
setClientType(int clientType)
Method set the client type
|
static void |
setCompressionEnabled(boolean enabled)
Method enables or disables compression of message bodies
|
static void |
setCompressionLevel(int level)
Method sets the compression level for messages.
|
static void |
setCompressionThreshold(int threshold)
Method sets the minimum size in bytes of the message before it is compressed.
|
static void |
setConnectionLifetime(int nSeconds)
Method Set the connection lifetime
|
static void |
setDatasetNullInitials(boolean value)
Method sets the behavior for initial values for int/int64/boolean fields on a
dataset Must be set before building ProDataObjectMetaData object.
|
static void |
setIdleConnectionTimeout(int nSeconds)
Method Set the Idle Connection Timeout
|
static void |
setInitialConnections(int nConnections)
Method Set the number of initial connections to be made
|
static void |
setIntProperty(java.lang.String propName,
int propValue) |
static void |
setLogEntryTypes(java.lang.String logEntryTypes)
Method sets the logEntryTypes
|
static void |
setLogfileName(java.lang.String logfileName)
Method sets the logfileName
|
static void |
setLongProperty(java.lang.String propName,
long propValue) |
static void |
setMaxConnections(int nMaxConnections)
Method Set the maximum number of connections to be made
|
static void |
setMinConnections(int nMinConnections)
Method Set the minimum number of connections to be made
|
static void |
setNetworkBufferSize(int netBufferSize)
Method set the network buffer size
|
static void |
setNoHostVerify(boolean trueFalseState)
Method sets the optional HTTPS (SSL) server domain authentication option.
|
static void |
setNoSslSessionReuse(boolean trueFalseState)
Turns on or off SSL session reuse.
|
static void |
setNoWaitIfBusy()
Method calls will throw an exception if the connection is busy.
|
static void |
setNsClientMaxPort(int port)
Method Set the maximum nameserver client port
|
static void |
setNsClientMinPort(int port)
Method Set the minimum nameserver client port
|
static void |
setNsClientPicklistSize(int pickListSize)
Method sets the number of broker definitions the nameserver client should
retrieve from the nameserver each time
|
static void |
setNsClientPortRetry(int nRetries)
Method sets the number of times the nameserver client should retry connecting
to the nameserver
|
static void |
setNsClientPortRetryInterval(int nSeconds)
Method sets the number of seconds the nameserver client should wait between
retrying to connect to the nameserver
|
static void |
setPostponeRelationInfo(boolean value)
Method sets the behavior for whether the relationship info is built when
loading the ProDataGraph's data.
|
static void |
setProxyHost(java.lang.String host)
Method Set the proxy host.
|
static void |
setProxyPassword(java.lang.String pwd)
Method Set the proxy user-id's password.
|
static void |
setProxyPort(int port)
Method Set the proxy port.
|
static void |
setProxyUserId(java.lang.String userId)
Method Set the proxy user id.
|
static void |
setRequestWaitTimeout(int nRqWaitSec)
Method sets the number of seconds the client should wait for a connection to
become available to run a request
|
static void |
setServerName(java.lang.String sniServerName) |
static void |
setSessionModel(int model)
Method Set the sessionModel
|
static void |
setSslCiphers(java.lang.String sslCiphers) |
static void |
setSslVersions(java.lang.String sslVersions) |
static void |
setStringProperty(java.lang.String propName,
java.lang.String propValue)
Method Set the specified property
|
static void |
setTraceLevel(int traceLevel)
Method sets the traceLevel
|
static void |
setUseDeprecatedGetChanges(boolean value)
Method sets the behavior for whether you want to want to use the
original/deprecated ProChangeSummary.getChanges() functionality or current
functionality
|
static void |
setUUID(java.lang.String uuid)
Method sets the uuid
|
static void |
setWaitIfBusy()
Method calls will wait if the connection is busy.
|
static void |
traceOff()
Method Turns tracing off
|
static void |
traceOn()
Method Turns tracing on with default tracing level.
|
static void |
traceOn(int level)
Method Turns tracing on with specified tracing level.
|
static void |
traceOn(java.lang.String fileName)
Method Turns tracing on to a specified file with the default tracing level.
|
static void |
traceOn(java.lang.String fileName,
int level)
Method Turns tracing on to a specified file with the specified tracing level.
|
public static final Tracer tracer
public static int getDynamicApiVersion()
public static int getStreamProtocolVersion()
public static void traceOn()
public static void traceOn(int level)
level
- The tracing level. The higher the level, the more tracing is
output.public static void traceOn(java.lang.String fileName)
fileName
- The file to write trace information topublic static void traceOn(java.lang.String fileName, int level)
fileName
- The file to write trace information tolevel
- The tracing level. The higher the level, the more tracing is
output.public static void traceOff()
public static boolean isTracing()
public static void setWaitIfBusy()
setNoWaitIfBusy()
public static void setNoWaitIfBusy()
setWaitIfBusy()
public static boolean getWaitIfBusy()
setWaitIfBusy()
,
setNoWaitIfBusy()
public static void setProxyHost(java.lang.String host) throws Open4GLException
host
- The host nameOpen4GLException
public static java.lang.String getProxyHost()
public static void setProxyPort(int port) throws Open4GLException
port
- The port numberOpen4GLException
public static int getProxyPort()
public static void setCertificateStore(java.lang.String certStoreList) throws Open4GLException
certStoreList
- Directory and/or file name[s]. If more than one
directory/file is specified then the list will be
separated by semi-colons. The format of the parameter is
<path>/file:password
and/or <directory
path>:password
. Password may have the word 'null' in
place of an actual password.Open4GLException
public static java.lang.String getCertificateStore()
public static void setNoHostVerify(boolean trueFalseState) throws Open4GLException
trueFalseState
- The boolean value that holds the new authentication
state.Open4GLException
public static boolean getNoHostVerify()
public static void setNoSslSessionReuse(boolean trueFalseState) throws Open4GLException
trueFalseState
- a boolean
valueOpen4GLException
- if an error occurspublic static boolean getNoSslSessionReuse()
boolean
valuepublic static void setProxyUserId(java.lang.String userId) throws Open4GLException
userId
- The userId for authenticationOpen4GLException
public static java.lang.String getProxyUserId()
public static void setProxyPassword(java.lang.String pwd) throws Open4GLException
pwd
- The user-id password for authenticationOpen4GLException
public static java.lang.String getProxyPassword()
public static int getSessionModel()
public static void setSessionModel(int model)
model
- The sessionModelpublic static int getInitialConnections()
public static void setInitialConnections(int nConnections)
nConnections
- number of connectionspublic static int getMinConnections()
public static void setMinConnections(int nMinConnections)
nMinConnections
- minimum number of connectionspublic static int getMaxConnections()
public static void setMaxConnections(int nMaxConnections)
nMaxConnections
- maximum number of connectionspublic static int getIdleConnectionTimeout()
public static void setIdleConnectionTimeout(int nSeconds)
nSeconds
- Idle Connection Timeoutpublic static int getConnectionLifetime()
public static void setConnectionLifetime(int nSeconds)
nSeconds
- connectionLifetimepublic static int getNsClientMinPort()
public static void setNsClientMinPort(int port)
port
- port numberpublic static int getNsClientMaxPort()
public static void setNsClientMaxPort(int port)
port
- port numberpublic static int getNsClientPortRetry()
public static void setNsClientPortRetry(int nRetries)
nRetries
- number of retriespublic static int getNsClientPortRetryInterval()
public static void setNsClientPortRetryInterval(int nSeconds)
nSeconds
- number of secondspublic static int getNsClientPicklistSize()
public static void setNsClientPicklistSize(int pickListSize)
pickListSize
- number of brokerspublic static int getRequestWaitTimeout()
public static void setRequestWaitTimeout(int nRqWaitSec)
nRqWaitSec
- number of secondspublic static java.lang.String getUUID()
public static void setUUID(java.lang.String uuid)
uuid
- the unique uuidpublic static java.lang.String getLogfileName()
public static void setLogfileName(java.lang.String logfileName)
logfileName
- the logfileNamepublic static int getTraceLevel()
public static void setTraceLevel(int traceLevel)
traceLevel
- the trace levelpublic static java.lang.String getLogEntryTypes()
public static void setLogEntryTypes(java.lang.String logEntryTypes)
logEntryTypes
- the log entry typespublic static java.lang.String getAppServerKeepalive()
public static void setAppServerKeepalive(java.lang.String AppServerKeepalive)
AppServerKeepalive
- the keepalive valuepublic static int getClientASKActivityTimeout()
public static void setClientASKActivityTimeout(int AppServerKeepaliveTimeout)
AppServerKeepaliveTimeout
- the keepalive timeout valuepublic static int getClientASKResponseTimeout()
public static void setClientASKResponseTimeout(int AppServerKeepaliveResponseTimeout)
AppServerKeepaliveResponseTimeout
- the keepalive response timeout valuepublic static void setDatasetNullInitials(boolean value)
value
- True if wants to change default behavior and have integer, int64
and boolean fields on a dataset to initialize to null.public static boolean getDatasetNullInitials()
public static void setSslVersions(java.lang.String sslVersions)
sslVersions
- public static java.lang.String getSslVersions()
public static void setSslCiphers(java.lang.String sslCiphers)
sslCiphers
- public static void setServerName(java.lang.String sniServerName)
sniServerName
- SNI server namepublic static void getServerName()
public static java.lang.String getSslCiphers()
public static void setPostponeRelationInfo(boolean value)
value
- True if wants to change default behavior and postpone building
the relationship info until getChildRows() is called for a
particular ProDataObjectpublic static boolean getPostponeRelationInfo()
public static void setUseDeprecatedGetChanges(boolean value)
value
- True if you want to use the original/deprecated
ProChangeSummary.getChanges() functionality.public static boolean getUseDeprecatedGetChanges()
public static void setCompressionEnabled(boolean enabled)
enabled
- public static boolean getCompressionEnabled()
public static void setCompressionLevel(int level)
level
- public static int getCompressionLevel()
public static void setCompressionThreshold(int threshold)
threshold
- public static int getCompressionThreshold()
public static java.lang.String getLocalMajorVersion()
public static java.lang.String getLocalMinorVersion()
public static java.lang.String getLocalMaintVersion()
public static OEVersionInfo getLocalVersionInfo()
public static void setClientContextID(java.lang.String clientContextID)
clientContextID
- public static java.lang.String getClientContextID()
public static int getClientType()
public static void setClientType(int clientType)
clientType
- public static com.progress.auth.ClientPrincipal getClientPrincipal()
public static void setClientPrincipal(com.progress.auth.ClientPrincipal clientPrincipal)
clientPrincipal
- public static int getNetworkBufferSize()
public static void setNetworkBufferSize(int netBufferSize)
netBufferSize
- public static void setStringProperty(java.lang.String propName, java.lang.String propValue)
propName
- the name of the property to be setpropValue
- the value of the property to be setpublic static void setIntProperty(java.lang.String propName, int propValue)
public static void setLongProperty(java.lang.String propName, long propValue)
public static void setBooleanProperty(java.lang.String propName, boolean propValue)
public static java.lang.String getStringProperty(java.lang.String propName)
public static int getIntProperty(java.lang.String propName)
public static long getLongProperty(java.lang.String propName)
public static boolean getBooleanProperty(java.lang.String propName)
public static Connection getStaticProperties()