public class SessionPoolingManager extends Object
Constructor and Description |
---|
SessionPoolingManager() |
Modifier and Type | Method and Description |
---|---|
static void |
createSessionPoolingData(String runtimeID,
int hostID,
int min,
int max,
int pingTime,
String scriptFile,
JDesktopPane desktopPane,
boolean isEnabled)
Creates and initializes a pool.
|
static boolean |
deleteSessionPool(String rthi)
Deletes a RUNTIME.HOSTID session pool that is currently created.
|
static void |
dispose(ClientSessionManager csm,
boolean niceShutDown)
Disposes of the pools.
|
static boolean |
enableSessionPool(String rthi,
boolean enable)
Enables or disables a RUNTIME.HOSTID session pool that is currently created.
|
static SessionPoolingData |
getSessionPool(String rthi)
Gets a RUNTIME.HOSTID session pool that is currently created.
|
static Enumeration<SessionPoolingData> |
getSessionPools()
Gets the available sessions pools.
|
static DefaultSessionPoolingHandler |
grabSessionFromPool(String[] runtimeIDs,
int hostID)
Checks if there is a session pooling handler that can be used for this
client session.
|
protected static void |
initialize(IniFile ini,
JDesktopPane desktopPane)
Initializes the pool manager from the "server.ini" file.
|
public static Enumeration<SessionPoolingData> getSessionPools()
SessionPoolingData
objects.public static SessionPoolingData getSessionPool(String rthi)
public static boolean deleteSessionPool(String rthi)
The pool is "nicely" terminated.
public static boolean enableSessionPool(String rthi, boolean enable)
The pool is "nicely" terminated.
protected static void initialize(IniFile ini, JDesktopPane desktopPane)
ClientSessionManager
.
All elements in the section [SessionPool] with the syntax:
RUNTIMEID.HOSTID=enabled(0|1),min,max,pingTime,scriptFileare loaded and initialized. Failures in the section will only be displayed in the event log.
public static void dispose(ClientSessionManager csm, boolean niceShutDown)
niceShutDown
flag is true, all sessions should be stopped running
the Dispose script. Otherwise, the script is not run.public static void createSessionPoolingData(String runtimeID, int hostID, int min, int max, int pingTime, String scriptFile, JDesktopPane desktopPane, boolean isEnabled) throws Exception
If an error occurs in the script file, the calling party is responsible for logging the event.
Exception
- for fatal errors in the script file.public static DefaultSessionPoolingHandler grabSessionFromPool(String[] runtimeIDs, int hostID)
Phantom® and NetPhantom® are registered trademarks of Mindus SARL.
© © Mindus SARL, 2024. All rights reserved.