public class Connection extends java.lang.Object implements java.lang.AutoCloseable, IPoolProps
Connection
class holds configuration and state data for a client
connection to the application server. This class represents a logical
connection to the application server and provides setters for the open client
application to configure how the java open client is to behave.
When created, the Connection
is pre-configured to an initial state
using values copied from RunTimeProperties
.
Progress Application Server Example:
To run a procedure named "ping.p" on the application server which takes no parameters, use the following exmaple.
var conn = new Connection("http://localhost:8810/apsv/", "", "", ""); var appobj = new OpenAppObj(conn); var paramset = new ParameterSet(0); appobj.runProcedure("ping.p", paramset);
_APPLICATION_UUID, _APPSERVER_KEEPALIVE_CAPS, _APPSERVER_VERSION, _APPSERVICE_CONNECTION_MODE, _APPSERVICE_HOST, _APPSERVICE_NAME, _APPSERVICE_PORT, _APPSERVICE_PROTOCOL, _CASK_ACTIVITY_TIMEOUT, _CASK_RESPONSE_TIMEOUT, _COMPRESSION_BUFFER_SIZE, _COMPRESSION_THRESHOLD, _CONN_TIMEOUT, _CONNECTION_LIFETIME, _DATASET_SET_NULL_INITIALS, _DEFAULT_COMPRESSION_LEVEL, _DEFAULT_COMPRESSION_THRESHOLD, _DEFAULT_LOCAL_CLIENT_TYPE, _DEFAULT_LOCAL_MAINT_VERSION, _DEFAULT_LOCAL_MAJOR_VERSION, _DEFAULT_LOCAL_MINOR_VERSION, _DISABLE_READ_THREAD, _ENABLE_COMPRESSION, _ENABLE_TRACING, _IDLE_SESSION_TIMEOUT, _INITIAL_SESSIONS, _LOGFILE_NAME, _LOGGING_ENTRY_TYPES, _MAX_COMPRESSION_LEVEL, _MAX_COMPRESSION_THRESHOLD, _MAX_SESSIONS, _MIN_COMPRESSION_LEVEL, _MIN_COMPRESSION_THRESHOLD, _MIN_IDLE_CONNECTIONS, _MIN_SESSIONS, _NS_CLIENT_MAX_PORT, _NS_CLIENT_MIN_PORT, _NS_CLIENT_PICKLIST, _NS_CLIENT_PICKLIST_EXP, _NS_CLIENT_RETRY, _NS_CLIENT_RETRY_INTERVAL, _POSTPONE_RELATION_INFO, _PROXY_HOST, _PROXY_PASSWORD, _PROXY_PORT, _PROXY_USERID, _REQUEST_WAIT_TIMEOUT, _RUNTIME_PROPERTY_VERSION, _SERIALIZE_DATASET_AS_XML, _SERIALIZE_DSET_TTAB_FORMAT, _SERVICE_AVAILABLE, _SERVICE_FAULT_LEVEL, _SERVICE_LOGGING_ENTRIES, _SERVICE_LOGGING_ENTRY_TYPES, _SERVICE_LOGGING_LEVEL, _SESSION_APPSERVERINFO, _SESSION_PASSWORD, _SESSION_URL, _SESSION_USERID, _SOCKET_TIMEOUT, _SSL_APPLET_CERTIFICATE_STORE, _SSL_CERTIFICATE_STORE, _SSL_CIPHERS, _SSL_NO_HOST_VERIFY, _SSL_NO_SESSION_REUSE, _SSL_PROTOCOLS, _SSL_WIN_CERTIFICATE_STORE, _STALE_OBJECT_TIMEOUT, _TRACE_LEVEL, _WAIT_IF_BUSY, ACTIONAL_GROUP_NAME, ADAPTERTYPE, APPLICATION_UUID, APPNAME, APPSERVER_KEEPALIVE_CAPS, APPSERVICE_CONNECTION_MODE, APPSERVICE_HOST, APPSERVICE_NAME, APPSERVICE_PORT, APPSERVICE_PROTOCOL, ASK_CLIENTASK_ENABLED, ASK_DEFAULT, ASK_DISABLED, ASK_MAJOR_VER, ASK_MINOR_VER, ASK_SERVERASK_ENABLED, ASK_VERSION, askPropNames, AUTO_CHUNKED_REQUESTS, CASK_ACTIVITY_TIMEOUT, CASK_RESPONSE_TIMEOUT, CLIENT_CONTEXT_ID, CLIENT_PRINCIPAL, COMPRESSION_BUFFER_SIZE, COMPRESSION_DEFAULT, COMPRESSION_DISABLED, COMPRESSION_LEVEL, COMPRESSION_THRESHOLD, compressionPropNames, CONN_TIMEOUT, CONNECTION_LIFETIME, D_ACTIONAL_GROUP_NAME, D_APPSERVER_KEEPALIVE_CAPS, D_APPSERVICE_CONNECTION_MODE, D_APPSERVICE_HOST, D_APPSERVICE_NAME, D_APPSERVICE_PORT, D_APPSERVICE_PROTOCOL, D_CASK_ACTIVITY_TIMEOUT, D_CASK_RESPONSE_TIMEOUT, D_CONN_TIMEOUT, D_CONNECTION_LIFETIME, D_DATASET_SET_NULL_INITIALS, D_DISABLE_READ_THREAD, D_IDLE_SESSION_TIMEOUT, D_INITIAL_SESSIONS, D_MAX_SESSIONS, D_MIN_IDLE_CONNECTIONS, D_MIN_SESSIONS, D_NS_CLIENT_MAX_PORT, D_NS_CLIENT_MIN_PORT, D_NS_CLIENT_PICKLIST, D_NS_CLIENT_PICKLIST_EXP, D_NS_CLIENT_RETRY, D_NS_CLIENT_RETRY_INTERVAL, D_POSTPONE_RELATION_INFO, D_REQUEST_WAIT_TIMEOUT, D_SERVICE_AVAILABLE, D_SERVICE_FAULT_LEVEL, D_SERVICE_LOGGING_ENTRIES, D_SERVICE_LOGGING_ENTRY_TYPES, D_SERVICE_LOGGING_LEVEL, D_SSL_CIPHERS, D_SSL_NO_HOST_VERIFY, D_SSL_NO_SESSION_REUSE, D_SSL_PROTOCOLS, D_STALE_OBJECT_TIMEOUT, D_WAIT_IF_BUSY, DATASET_SET_NULL_INITIALS, defaultPropNames, DISABLE_READ_THREAD, ENABLE_COMPRESSION, ENABLE_TRACING, HTTP_TIMEOUT, IDLE_SESSION_TIMEOUT, INITIAL_SESSIONS, INVALID_ASK_VERSION, L_ACTIONAL_GROUP_NAME, L_APPSERVER_KEEPALIVE_CAPS, L_APPSERVICE_CONNECTION_MODE, L_APPSERVICE_HOST, L_APPSERVICE_NAME, L_APPSERVICE_PORT, L_APPSERVICE_PROTOCOL, L_CASK_ACTIVITY_TIMEOUT, L_CASK_RESPONSE_TIMEOUT, L_CONN_TIMEOUT, L_CONNECTION_LIFETIME, L_DATASET_SET_NULL_INITIALS, L_DISABLE_READ_THREAD, L_IDLE_SESSION_TIMEOUT, L_INITIAL_SESSIONS, L_MAX_SESSIONS, L_MIN_IDLE_CONNECTIONS, L_MIN_SESSIONS, L_NS_CLIENT_MAX_PORT, L_NS_CLIENT_MIN_PORT, L_NS_CLIENT_PICKLIST, L_NS_CLIENT_PICKLIST_EXP, L_NS_CLIENT_RETRY, L_NS_CLIENT_RETRY_INTERVAL, L_POSTPONE_RELATION_INFO, L_REQUEST_WAIT_TIMEOUT, L_SERVICE_AVAILABLE, L_SERVICE_FAULT_LEVEL, L_SERVICE_LOGGING_ENTRIES, L_SERVICE_LOGGING_ENTRY_TYPES, L_SERVICE_LOGGING_LEVEL, L_SSL_CIPHERS, L_SSL_NO_HOST_VERIFY, L_SSL_NO_SESSION_REUSE, L_SSL_PROTOCOLS, L_STALE_OBJECT_TIMEOUT, L_WAIT_IF_BUSY, LOCAL_CLIENT_TYPE, LOCAL_MAINT_VERSION, LOCAL_MAJOR_VERSION, LOCAL_MINOR_VERSION, LOGFILE_NAME, LOGGING_ENTRY_TYPES, MAX_SESSIONS, MIN_IDLE_CONNECTIONS, MIN_SESSIONS, NET_BUFFER_SIZE, NS_CLIENT_MAX_PORT, NS_CLIENT_MIN_PORT, NS_CLIENT_PICKLIST, NS_CLIENT_PICKLIST_EXP, NS_CLIENT_RETRY, NS_CLIENT_RETRY_INTERVAL, POSTPONE_RELATION_INFO, PROPNAME_PREFIX, PROXY_HOST, PROXY_PASSWORD, PROXY_PORT, PROXY_USERID, REMOTE_CLIENT_TYPE, REMOTE_MAINT_VERSION, REMOTE_MAJOR_VERSION, REMOTE_MINOR_VERSION, REMOTE_VERSION_INFO, REQUEST_CHUNKING, REQUEST_WAIT_TIMEOUT, ROOT, RUNTIME_PROPERTY_VERSION, runtimePropNames, SEND_CHUNKED_REQUESTS, SERIALIZE_DATASET_AS_XML, SERIALIZE_DSET_TTAB_FORMAT, serialVersionUID, SERVER_NAME, SERVICE_AVAILABLE, SERVICE_FAULT_LEVEL, SERVICE_LOGGING_ENTRIES, SERVICE_LOGGING_ENTRY_TYPES, SERVICE_LOGGING_LEVEL, SERVLET_REQUEST_CTX, SERVLET_RESPONSE_CTX, SESSION_APPSERVERINFO, SESSION_PASSWORD, SESSION_POOL_NAME, SESSION_URL, SESSION_USERID, sessionFreePropNames, sessionManagedPropNames, SM_SESSION_FREE, SM_SESSION_MANAGED, SOCKET_TIMEOUT, SSL_CERTIFICATE_STORE, SSL_CIPHERS, SSL_NO_HOST_VERIFY, SSL_NO_SESSION_REUSE, SSL_PROTOCOLS, STALE_OBJECT_TIMEOUT, SUPPRESS_CHUNKED_REQUESTS, TCP_NODELAY, TRACE_LEVEL, USE_DEPRECATED_GET_CHANGES, V10_COMPRESSION, V9_COMPRESSION, WAIT_IF_BUSY, X_ACTIONAL_GROUP_NAME, X_ADAPTERTYPE, X_APPNAME, X_APPSERVER_KEEPALIVE_CAPS, X_APPSERVICE_CONNECTION_MODE, X_APPSERVICE_HOST, X_APPSERVICE_NAME, X_APPSERVICE_PORT, X_APPSERVICE_PROTOCOL, X_CASK_ACTIVITY_TIMEOUT, X_CASK_RESPONSE_TIMEOUT, X_CLIENT_CONTEXT_ID, X_CLIENT_PRINCIPAL, X_CONN_TIMEOUT, X_CONNECTION_LIFETIME, X_DATASET_SET_NULL_INITIALS, X_DISABLE_READ_THREAD, X_IDLE_SESSION_TIMEOUT, X_INITIAL_SESSIONS, X_LOCAL_CLIENT_TYPE, X_LOCAL_MAINT_VERSION, X_LOCAL_MAJOR_VERSION, X_LOCAL_MINOR_VERSION, X_MAX_SESSIONS, X_MIN_IDLE_CONNECTIONS, X_MIN_SESSIONS, X_NET_BUFFER_SIZE, X_NS_CLIENT_MAX_PORT, X_NS_CLIENT_MIN_PORT, X_NS_CLIENT_PICKLIST, X_NS_CLIENT_PICKLIST_EXP, X_NS_CLIENT_RETRY, X_NS_CLIENT_RETRY_INTERVAL, X_POSTPONE_RELATION_INFO, X_REMOTE_CLIENT_TYPE, X_REMOTE_MAINT_VERSION, X_REMOTE_MAJOR_VERSION, X_REMOTE_MINOR_VERSION, X_REMOTE_VERSION_INFO, X_REQUEST_WAIT_TIMEOUT, X_SERIALIZE_DATASET_AS_XML, X_SERIALIZE_DSET_TTAB_FORMAT, X_SERVICE_AVAILABLE, X_SERVICE_FAULT_LEVEL, X_SERVICE_LOGGING_ENTRIES, X_SERVICE_LOGGING_ENTRY_TYPES, X_SERVICE_LOGGING_LEVEL, X_SERVLET_REQUEST_CTX, X_SERVLET_RESPONSE_CTX, X_SSL_CIPHERS, X_SSL_NO_HOST_VERIFY, X_SSL_NO_SESSION_REUSE, X_SSL_PROTOCOLS, X_STALE_OBJECT_TIMEOUT, X_WAIT_IF_BUSY, XML_TYPE
Constructor and Description |
---|
Connection() |
Connection(Connection parent) |
Connection(Connection parent,
boolean multiUser) |
Connection(java.lang.String userId,
java.lang.String password,
java.lang.String appServerInfo) |
Connection(java.lang.String userId,
java.lang.String password,
java.lang.String appServerInfo,
boolean multiUser) |
Connection(java.lang.String urlString,
java.lang.String userId,
java.lang.String password,
java.lang.String appServerInfo) |
Connection(java.lang.String urlString,
java.lang.String userId,
java.lang.String password,
java.lang.String appServerInfo,
boolean multiUser) |
Modifier and Type | Method and Description |
---|---|
void |
addReference(SessionPool sessionPool) |
void |
close()
release the connection.
|
java.lang.String |
getAppServerInfo() |
java.lang.String |
getAppServerKeepalive()
Method Returns the Keep Alive Capabilities setting
|
java.util.Properties |
getAsProperties() |
boolean |
getBooleanProperty(java.lang.String propName) |
java.lang.String |
getCertificateStore()
Method Returns the certicate store list
|
int |
getClientASKActivityTimeout()
Method Returns the client Keep Alive activity timeout
|
int |
getClientASKResponseTimeout()
Method Returns the client Keep Alive response timeout
|
java.lang.String |
getClientContextID()
Method get the clientContextID
|
com.progress.auth.ClientPrincipal |
getClientPrincipal()
Method get the client principal
|
int |
getClientType()
Method get the client type
|
boolean |
getCompressionEnabled()
Returns true if compression is enabled for this connection
|
int |
getCompressionLevel()
Returns the compression level set for this connection
|
int |
getCompressionThreshold()
returns the minimum size in bytes of the message body before compression will
be done for a particular message.
|
int |
getConnectionLifetime()
Method Returns the connection lifetime
|
boolean |
getDatasetNullInitials()
Method gets the dataset null initials setting
|
int |
getIdleConnectionTimeout()
Method Returns the Idle Connection Timeout
|
int |
getInitialConnections()
Method Returns the number of initial connections to be made
|
int |
getIntProperty(java.lang.String propName) |
java.lang.String |
getLocalMaintVersion()
Method get the local maint version
|
java.lang.String |
getLocalMajorVersion()
Method get the local major version
|
java.lang.String |
getLocalMinorVersion()
Method get the local minor version
|
OEVersionInfo |
getLocalVersionInfo() |
java.lang.String |
getLogEntryTypes()
Method Returns the log entry types
|
java.lang.String |
getLogfileName()
Method Returns the logfileName
|
long |
getLongProperty(java.lang.String propName) |
int |
getMaxConnections()
Method Returns the maximum number of connections to be made
|
int |
getMinConnections()
Method Returns the minimum number of connections to be made
|
int |
getNetworkBufferSize()
Method get the network buffer size
|
boolean |
getNoHostVerify()
Method returns the optional HTTPS (SSL) server domain authentication .
|
boolean |
getNoSslSessionReuse()
Get the current state of SSL session reuse.
|
int |
getNsClientMaxPort()
Method Returns the maximum nameserver client port
|
int |
getNsClientMinPort()
Method Returns the minimum nameserver client port
|
int |
getNsClientPicklistSize()
Method Returns the number of broker definitions the nameserver client should
retrieve from the nameserver each time
|
int |
getNsClientPortRetry()
Method Returns the number of times the nameserver client should retry
connecting to the nameserver
|
int |
getNsClientPortRetryInterval()
Method Returns the number of seconds the nameserver client should wait
between retrying to connect to the nameserver
|
java.lang.String |
getPassword() |
boolean |
getPostponeRelationInfo()
Method gets whether the behavior for whether the relational info is built
when loading the ProDataGraph's data.
|
java.util.Hashtable |
getProperties()
Deprecated.
Use
IPoolProps.getAsProperties() instead.
Hashtable is an old java 1.1 style class and should no
longer be used. |
java.lang.Object |
getProperty_prev(java.lang.String propName) |
java.lang.Object |
getProperty(java.lang.String propName) |
java.lang.String |
getProxyHost()
Method Returns the proxy host
|
java.lang.String |
getProxyPassword()
Method Returns the proxy authentication password
|
int |
getProxyPort()
Method Returns the proxy port
|
java.lang.String |
getProxyUserId()
Method Returns the proxy authentication user-id
|
java.lang.String |
getRemoteMaintVersion()
Method get the remote maint version
|
java.lang.String |
getRemoteMajorVersion()
Method get the remote major version
|
java.lang.String |
getRemoteMinorVersion()
Method get the remote minor version
|
OEVersionInfo |
getRemoteVersionInfo() |
int |
getRequestWaitTimeout()
Method Returns the number of seconds the client should wait for a connection
to become available to run a request
|
java.lang.String |
getServerName() |
int |
getServerType()
Method get the server type
|
int |
getSessionModel()
Method Returns the session model
|
SessionPool |
getSessionPool() |
java.lang.String |
getSslCiphers()
Method Returns SSL ciphers list
|
java.lang.String |
getSslVersions()
Method Returns SSL protocol versions
|
java.lang.String |
getStringProperty(java.lang.String propName) |
int |
getTraceLevel()
Method Returns the trace level
|
java.lang.String |
getUrl() |
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.
|
java.lang.String |
getUserId() |
java.lang.String |
getUUID()
Method Returns the uuid
|
boolean |
getWaitIfBusy()
Returns the current "Wait If Busy" setup.
|
void |
releaseConnection() |
void |
setAppServerInfo(java.lang.String appServerInfo) |
void |
setAppServerKeepalive(java.lang.String keepAliveCap)
Method sets the keep Alive Capabilities value
|
java.lang.Object |
setBooleanProperty(java.lang.String propName,
boolean propValue) |
void |
setCertificateStore(java.lang.String certStoreList)
Method Set the CertificateStore.
|
void |
setClientASKActivityTimeout(int keepAliveActTimeout)
Method sets the client Keep Alive activity timeout
|
void |
setClientASKResponseTimeout(int keepAliveRespTimeout)
Method sets the client Keep Alive Response Timeout
|
void |
setClientContextID(java.lang.String clientContextID)
Method set the clientContextID
|
void |
setClientPrincipal(com.progress.auth.ClientPrincipal clientPrincipal)
Method set the client principal
|
void |
setClientType(int clientType)
Method set the client type
|
void |
setCompressionEnabled(boolean enabled)
Enable message body compression
|
void |
setCompressionLevel(int level)
Set the compression level used to compress messages.
|
void |
setCompressionThreshold(int threshold)
Set the minimum size in bytes for messages before compression is used on the
message body.
|
void |
setConnectionLifetime(int nSeconds)
Method Set the connection lifetime
|
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.
|
void |
setIdleConnectionTimeout(int nSeconds)
Method Set the Idle Connection Timeout
|
void |
setInitialConnections(int nConnections)
Method Set the number of initial connections to be made
|
java.lang.Object |
setIntProperty(java.lang.String propName,
int propValue) |
void |
setLocalProperty(java.lang.String propName,
java.lang.Object propValue) |
void |
setLogEntryTypes(java.lang.String logEntryTypes)
Method sets the logEntryTypes
|
void |
setLogfileName(java.lang.String logfileName)
Method sets the logfileName
|
java.lang.Object |
setLongProperty(java.lang.String propName,
long propValue) |
void |
setMaxConnections(int nMaxConnections)
Method Set the maximum number of connections to be made
|
void |
setMinConnections(int nMinConnections)
Method Set the minimum number of connections to be made
|
void |
setNetworkBufferSize(int bufferSize)
Method set the network buffer size
|
void |
setNoHostVerify(boolean trueFalseState)
Method sets the optional HTTPS (SSL) server domain authentication option.
|
void |
setNoSslSessionReuse(boolean trueFalseState)
Turns on or off SSL session reuse.
|
void |
setNoWaitIfBusy()
Method calls will throw an exception if the connection is busy.
|
void |
setNsClientMaxPort(int port)
Method Set the maximum nameserver client port
|
void |
setNsClientMinPort(int port)
Method Set the minimum nameserver client port
|
void |
setNsClientPicklistSize(int nPicklistSize)
Method sets the number of broker definitions the nameserver client should
retrieve from the nameserver each time
|
void |
setNsClientPortRetry(int nRetries)
Method sets the number of times the nameserver client should retry connecting
to the nameserver
|
void |
setNsClientPortRetryInterval(int nSeconds)
Method sets the number of seconds the nameserver client should wait between
retrying to connect to the nameserver
|
void |
setPassword(java.lang.String password) |
void |
setPostponeRelationInfo(boolean value)
Method sets the behavior for whether the relational info is built when
loading the ProDataGraph's data.
|
void |
setProperties(java.util.Properties props) |
void |
setProperty(java.lang.String propName,
java.lang.Object propValue) |
void |
setProxyHost(java.lang.String host)
Method Set the proxy host.
|
void |
setProxyPassword(java.lang.String pwd)
Method Set the proxy user-id's password.
|
void |
setProxyPort(int port)
Method Set the proxy port.
|
void |
setProxyUserId(java.lang.String userId)
Method Set the proxy user id.
|
void |
setRequestWaitTimeout(int nRqWaitSec)
Method sets the number of seconds the client should wait for a connection to
become available to run a request
|
void |
setServerName(java.lang.String servername) |
void |
setSessionModel(int model)
Method Set the sessionModel
|
void |
setSslCiphers(java.lang.String ciphers)
set SSL ciphers.
|
void |
setSslVersions(java.lang.String version)
set ssl protocol versions.
|
java.lang.Object |
setStringProperty(java.lang.String propName,
java.lang.String propValue) |
void |
setTraceLevel(int traceLevel)
Method sets the traceLevel
|
void |
setUrl(java.lang.String url) |
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
|
void |
setUserId(java.lang.String userid) |
void |
setUUID(java.lang.String uuid)
Method sets the uuid
|
void |
setWaitIfBusy()
Method calls will wait if the connection is busy.
|
public Connection()
public Connection(Connection parent, boolean multiUser)
public Connection(Connection parent)
public Connection(java.lang.String urlString, java.lang.String userId, java.lang.String password, java.lang.String appServerInfo)
public Connection(java.lang.String urlString, java.lang.String userId, java.lang.String password, java.lang.String appServerInfo, boolean multiUser)
public Connection(java.lang.String userId, java.lang.String password, java.lang.String appServerInfo)
public Connection(java.lang.String userId, java.lang.String password, java.lang.String appServerInfo, boolean multiUser)
public SessionPool getSessionPool()
getSessionPool
in interface IPoolProps
public void addReference(SessionPool sessionPool)
addReference
in interface IPoolProps
public void releaseConnection() throws Open4GLException
releaseConnection
in interface IPoolProps
Open4GLException
public void close()
close
in interface java.lang.AutoCloseable
public void setLocalProperty(java.lang.String propName, java.lang.Object propValue)
setLocalProperty
in interface IPoolProps
public void setProperty(java.lang.String propName, java.lang.Object propValue)
setProperty
in interface IPoolProps
public java.lang.Object setStringProperty(java.lang.String propName, java.lang.String propValue)
setStringProperty
in interface IPoolProps
public java.lang.Object setIntProperty(java.lang.String propName, int propValue)
setIntProperty
in interface IPoolProps
public java.lang.Object setLongProperty(java.lang.String propName, long propValue)
setLongProperty
in interface IPoolProps
public java.lang.Object setBooleanProperty(java.lang.String propName, boolean propValue)
setBooleanProperty
in interface IPoolProps
public java.lang.Object getProperty_prev(java.lang.String propName)
public java.lang.Object getProperty(java.lang.String propName)
getProperty
in interface IPoolProps
public java.lang.String getStringProperty(java.lang.String propName)
getStringProperty
in interface IPoolProps
public int getIntProperty(java.lang.String propName)
getIntProperty
in interface IPoolProps
public long getLongProperty(java.lang.String propName)
getLongProperty
in interface IPoolProps
public boolean getBooleanProperty(java.lang.String propName)
getBooleanProperty
in interface IPoolProps
public void setProperties(java.util.Properties props)
@Deprecated public java.util.Hashtable getProperties()
IPoolProps.getAsProperties()
instead.
Hashtable
is an old java 1.1 style class and should no
longer be used.Hashtable
will not be reflected in the connection object.
Use the setter functions to affect changes in this object.public java.lang.String getUrl()
public void setUrl(java.lang.String url)
public java.lang.String getUserId()
public void setUserId(java.lang.String userid)
public java.lang.String getPassword()
public void setPassword(java.lang.String password)
public java.lang.String getAppServerInfo()
public void setAppServerInfo(java.lang.String appServerInfo)
public boolean getWaitIfBusy()
setWaitIfBusy()
,
setNoWaitIfBusy()
public void setWaitIfBusy()
setNoWaitIfBusy()
public void setNoWaitIfBusy()
setWaitIfBusy()
public java.lang.String getProxyHost()
public void setProxyHost(java.lang.String host) throws Open4GLException
host
- The host nameOpen4GLException
public int getProxyPort()
public void setProxyPort(int port) throws Open4GLException
port
- The port numberOpen4GLException
public java.lang.String getCertificateStore()
public 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
<file>:password
and/or
<directory>:password
. Password may have
the word 'null' in place of an actual password.Open4GLException
public boolean getNoHostVerify()
public void setNoHostVerify(boolean trueFalseState) throws Open4GLException
trueFalseState
- The boolean value that holds the new authentication
state.Open4GLException
public boolean getNoSslSessionReuse()
boolean
valuepublic void setNoSslSessionReuse(boolean trueFalseState) throws Open4GLException
trueFalseState
- a boolean
valueOpen4GLException
- if an error occurspublic void setServerName(java.lang.String servername)
servername
- is set the server name indiication .public java.lang.String getServerName()
public void setSslVersions(java.lang.String version)
version
- a String
valuepublic java.lang.String getSslVersions()
public void setSslCiphers(java.lang.String ciphers)
ciphers
- a String
valuepublic java.lang.String getSslCiphers()
public java.lang.String getProxyUserId()
public void setProxyUserId(java.lang.String userId) throws Open4GLException
userId
- The userId for authenticationOpen4GLException
public java.lang.String getProxyPassword()
public void setProxyPassword(java.lang.String pwd) throws Open4GLException
pwd
- The user-id password for authenticationOpen4GLException
public int getSessionModel()
public void setSessionModel(int model)
model
- The sessionModelpublic int getInitialConnections()
public void setInitialConnections(int nConnections)
nConnections
- number of connectionspublic int getMinConnections()
public void setMinConnections(int nMinConnections)
nMinConnections
- minimum number of connectionspublic int getMaxConnections()
public void setMaxConnections(int nMaxConnections)
nMaxConnections
- maximum number of connectionspublic int getIdleConnectionTimeout()
public void setIdleConnectionTimeout(int nSeconds)
nSeconds
- Idle Connection Timeoutpublic int getConnectionLifetime()
public void setConnectionLifetime(int nSeconds)
nSeconds
- connectionLifetimepublic int getNsClientMinPort()
public void setNsClientMinPort(int port)
port
- port numberpublic int getNsClientMaxPort()
public void setNsClientMaxPort(int port)
port
- port numberpublic int getNsClientPortRetry()
public void setNsClientPortRetry(int nRetries)
nRetries
- number of retriespublic int getNsClientPortRetryInterval()
public void setNsClientPortRetryInterval(int nSeconds)
nSeconds
- number of secondspublic int getNsClientPicklistSize()
public void setNsClientPicklistSize(int nPicklistSize)
nPicklistSize
- number of brokerspublic int getRequestWaitTimeout()
public void setRequestWaitTimeout(int nRqWaitSec)
nRqWaitSec
- number of secondspublic java.lang.String getUUID()
public void setUUID(java.lang.String uuid)
uuid
- the unique uuidpublic java.lang.String getLogfileName()
public void setLogfileName(java.lang.String logfileName)
logfileName
- the logfileNamepublic int getTraceLevel()
public void setTraceLevel(int traceLevel)
traceLevel
- the trace levelpublic java.lang.String getLogEntryTypes()
public void setLogEntryTypes(java.lang.String logEntryTypes)
logEntryTypes
- the log entry typespublic java.lang.String getAppServerKeepalive()
public void setAppServerKeepalive(java.lang.String keepAliveCap)
keepAliveCap
- the keep alive valuepublic int getClientASKActivityTimeout()
public void setClientASKActivityTimeout(int keepAliveActTimeout)
keepAliveActTimeout
- the client keep alive activity timeoutpublic int getClientASKResponseTimeout()
public void setClientASKResponseTimeout(int keepAliveRespTimeout)
keepAliveRespTimeout
- the client keep alive response timeoutpublic 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 boolean getDatasetNullInitials()
public void setPostponeRelationInfo(boolean value)
value
- True if wants to change default behavior and postpone building
the relational info until getChildRows() is called for a
particular ProDataObjectpublic boolean getPostponeRelationInfo()
public void setUseDeprecatedGetChanges(boolean value)
value
- True if you want to use the original/deprecated
ProChangeSummary.getChanges() functionality. It's defaulted to
False.public boolean getUseDeprecatedGetChanges()
public boolean getCompressionEnabled()
public int getCompressionLevel()
public int getCompressionThreshold()
public void setCompressionEnabled(boolean enabled)
enabled
- public void setCompressionThreshold(int threshold)
threshold
- public void setCompressionLevel(int level)
level
- public java.lang.String getRemoteMajorVersion()
public java.lang.String getRemoteMinorVersion()
public java.lang.String getRemoteMaintVersion()
public OEVersionInfo getRemoteVersionInfo()
public java.lang.String getLocalMajorVersion()
public java.lang.String getLocalMinorVersion()
public java.lang.String getLocalMaintVersion()
public OEVersionInfo getLocalVersionInfo()
public void setClientContextID(java.lang.String clientContextID)
clientContextID
- public java.lang.String getClientContextID()
public int getClientType()
public void setClientType(int clientType)
clientType
- public int getServerType()
public com.progress.auth.ClientPrincipal getClientPrincipal()
public void setClientPrincipal(com.progress.auth.ClientPrincipal clientPrincipal)
clientPrincipal
- public int getNetworkBufferSize()
public void setNetworkBufferSize(int bufferSize)
bufferSize
- public java.util.Properties getAsProperties()
getAsProperties
in interface IPoolProps