Package com.progress.open4gl.dynamicapi
Class SessionPool
java.lang.Object
com.progress.open4gl.dynamicapi.ObjectPool
com.progress.open4gl.dynamicapi.SessionPool
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
static class
static class
Nested classes/interfaces inherited from class com.progress.open4gl.dynamicapi.ObjectPool
ObjectPool.ObjectHolder, ObjectPool.ObjectPoolStats
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
Fields inherited from class com.progress.open4gl.dynamicapi.ObjectPool
CHECK_NO_WAIT, WAIT_FOREVER
-
Constructor Summary
ConstructorsConstructorDescriptionSessionPool
(String appName, IPoolProps properties, com.progress.common.ehnlog.IAppLogger log, String poolName, int sessionMode, String requestID, String url, String userId, String password, String clientInfo) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addReference
(String logMsg) int
void
static SessionPool
createPool
(String appName, IPoolProps properties, com.progress.common.ehnlog.IAppLogger log, int sessionMode, String requestID, String url, String userId, String password, String clientInfo) static SessionPool
createPool
(String appName, IPoolProps properties, com.progress.common.ehnlog.IAppLogger log, String requestID) void
deleteReference
(String logMsg) void
getSession
(String sessionID) retrieve session by its sessionIDinstantiateClass
(String className, int stateModel) boolean
void
int
maxBusy()
void
releaseSession
(String sessionID) void
removeSession
(String sessionID) int
runPersistentProcedure
(String procName, int stateModel) void
setConnectionId
(String connectionId) void
setRequestId
(String requestId) void
setReturnValue
(String returnValue) void
setSSLSubjectName
(String sslSubjectName) void
setStreamingState
(boolean value) void
setStreamingState
(int key, boolean value) void
shutdown()
int
size()
toString()
Methods inherited from class com.progress.open4gl.dynamicapi.ObjectPool
cancelAllWaiters, getSummaryStats, release, reserve
-
Field Details
-
STATE_INIT
public static final int STATE_INIT- See Also:
-
STATE_AVAILABLE
public static final int STATE_AVAILABLE- See Also:
-
STATE_BUSY
public static final int STATE_BUSY- See Also:
-
STATE_DONE
public static final int STATE_DONE- See Also:
-
-
Constructor Details
-
SessionPool
public SessionPool(String appName, IPoolProps properties, com.progress.common.ehnlog.IAppLogger log, String poolName, int sessionMode, String requestID, String url, String userId, String password, String clientInfo) throws ConnectException, Open4GLException, SystemErrorException
-
-
Method Details
-
createPool
public static SessionPool createPool(String appName, IPoolProps properties, com.progress.common.ehnlog.IAppLogger log, String requestID) throws ConnectException, Open4GLException, SystemErrorException -
createPool
public static SessionPool createPool(String appName, IPoolProps properties, com.progress.common.ehnlog.IAppLogger log, int sessionMode, String requestID, String url, String userId, String password, String clientInfo) throws ConnectException, Open4GLException, SystemErrorException -
findAvailableObject
- Specified by:
findAvailableObject
in classObjectPool
-
makeObjectAvailable
- Specified by:
makeObjectAvailable
in classObjectPool
-
getSession
retrieve session by its sessionID- Parameters:
sessionID
- id of session to retrieve- Returns:
- a session
- Throws:
SessionPool.SessionPoolException
- if session is not in session table
-
createSession
-
reserveSession
-
removeSession
public void removeSession(String sessionID) throws SessionPool.SessionPoolException, Open4GLException -
releaseSession
public void releaseSession(String sessionID) throws SessionPool.SessionPoolException, Open4GLException -
addReference
-
deleteReference
- Throws:
SystemErrorException
Open4GLException
-
instantiateClass
public StatelessProc instantiateClass(String className, int stateModel) throws Open4GLException, RunTime4GLException, SystemErrorException -
runPersistentProcedure
public StatelessProc runPersistentProcedure(String procName, int stateModel) throws Open4GLException, RunTime4GLException, SystemErrorException -
size
public int size() -
toString
-
maxBusy
public int maxBusy() -
resetMaxBusy
public int resetMaxBusy() -
availableSessions
public int availableSessions() -
shutdown
- Throws:
SystemErrorException
Open4GLException
-
cancelAllRequests
- Throws:
SystemErrorException
Open4GLException
-
enumerate
- Throws:
SystemErrorException
Open4GLException
-
getConnectionId
-
setConnectionId
-
getRequestId
-
setRequestId
-
getReturnValue
-
setReturnValue
-
isStreaming
public boolean isStreaming() -
setStreamingState
public void setStreamingState(boolean value) -
setStreamingState
public void setStreamingState(int key, boolean value) -
getSSLSubjectName
-
setSSLSubjectName
-