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 classstatic classstatic classstatic classNested classes/interfaces inherited from class com.progress.open4gl.dynamicapi.ObjectPool
ObjectPool.ObjectHolder, ObjectPool.ObjectPoolStats -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intFields 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 TypeMethodDescriptionvoidaddReference(String logMsg) intvoidstatic SessionPoolcreatePool(String appName, IPoolProps properties, com.progress.common.ehnlog.IAppLogger log, int sessionMode, String requestID, String url, String userId, String password, String clientInfo) static SessionPoolcreatePool(String appName, IPoolProps properties, com.progress.common.ehnlog.IAppLogger log, String requestID) voiddeleteReference(String logMsg) voidgetSession(String sessionID) retrieve session by its sessionIDinstantiateClass(String className, int stateModel) booleanvoidintmaxBusy()voidreleaseSession(String sessionID) voidremoveSession(String sessionID) intrunPersistentProcedure(String procName, int stateModel) voidsetConnectionId(String connectionId) voidsetRequestId(String requestId) voidsetReturnValue(String returnValue) voidsetSSLSubjectName(String sslSubjectName) voidsetStreamingState(boolean value) voidsetStreamingState(int key, boolean value) voidshutdown()intsize()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:
findAvailableObjectin classObjectPool
-
makeObjectAvailable
- Specified by:
makeObjectAvailablein 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:
SystemErrorExceptionOpen4GLException
-
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:
SystemErrorExceptionOpen4GLException
-
cancelAllRequests
- Throws:
SystemErrorExceptionOpen4GLException
-
enumerate
- Throws:
SystemErrorExceptionOpen4GLException
-
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
-