|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.adventnet.cli.CLIResourceManager
This class is to manage System-wide resources associated with the CLI APIs within the same Java Virtual Machine (JVM). This would allow control of parameters such as the system-wide default number of connections that can be opened at any given instant, default value of connection keepAlive timeout, and other parameters.
| Method Summary | |
void |
closeAllConnections()
Closes all the connections associated with the multiplexed (non-dedicated) session in the connection pool. |
int |
getAliveConnectionsCount()
Gets the total number of connections that have been established |
static CLIResourceManager |
getInstance()
Gets an instance of the CLIResourceManager. |
int |
getKeepAliveTimeout()
Gets the keepAlive timeout in seconds. |
int |
getMaxConnections()
Gets the maximum number of CLI Connections that can exist for any session opened. |
int |
getSystemWideMaxConnections()
Gets the maximum number of connections System Wide that can exist at any given instant. |
boolean |
isSetPooling()
Gets the pooling Flag common to CLI sessions. |
void |
setKeepAliveTimeout(int timeout)
Sets the keepAlive timeout in seconds. |
void |
setMaxConnections(int connections)
Sets the maximum number of CLI Connections that can exist per device for any session opened. |
void |
setPooling(boolean poolFlag)
Enables/Disables the pooling/sharing of the CLITransport Providers among CLI sessions. |
void |
setSystemWideMaxConnections(int connections)
Sets the maximum number of connections System Wide that can exist at any given instant of time. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Method Detail |
public static CLIResourceManager getInstance()
CLISession.CLISession(CLIProtocolOptions cliProtOpt),
CLISession.CLISession(CLIProtocolOptions cliProtOpt, boolean enablePooling)public void setSystemWideMaxConnections(int connections)
connections - number of maximum allowed connections System Wide.
When a negative value is given, it is not accepted.public int getSystemWideMaxConnections()
public int getAliveConnectionsCount()
public void setKeepAliveTimeout(int timeout)
timeout - the time-out value (in seconds).public int getKeepAliveTimeout()
public void setMaxConnections(int connections)
connections - number of maximum allowed connections. Negative
values are not accepted.public int getMaxConnections()
public void setPooling(boolean poolFlag)
poolFlag - boolean to indicate whether pooling is enabled or disabled.public boolean isSetPooling()
public void closeAllConnections()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||