public class DefaultConfig extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
CLIENT_ADMIN
Name of the attribute that specifies a ClientAdmin object.
|
static String |
CLIENT_SYNCHRO_MESSAGE_CONNECTION
Name of the attribute that specifies a
ClientSynchroMessageConnection object. |
static String |
REQUEST_WAITING_TIME
Name of the attribute that specifies the timeout in
milliseconds for a client request to wait for its response.
|
static String |
SERVER_ADMIN
Name of the attribute that specifies a ServerAdmin object.
|
static String |
SERVER_MAX_THREADS
Name of the attribute that specifies the maximum number of
threads used at the server side for each client connection.
|
static String |
SERVER_MIN_THREADS
Name of the attribute that specifies the minimum number of
threads used at the server side for each client connection.
|
static String |
SERVER_REUSE_ADDRESS
Name of the attribute that specifies whether or not we set
ReuseAddress flag to a Server Socket.
|
static String |
SERVER_SIDE_CONNECTING_TIMEOUT
Name of the attribute that specifies the timeout in
milliseconds for a server to finish connecting with a new client.
|
static String |
SYNCHRO_MESSAGE_CONNECTION_SERVER
Name of the attribute that specifies a
SynchroMessageConnectionServer object. |
static String |
TIMEOUT_FOR_CONNECTED_STATE
Name of the attribute that specifies the timeout in
milliseconds for a client to wait for its state to become
connected.
|
static String |
TIMEOUT_RECONNECTION
Name of the attribute that specifies whether or not do reconnection if
the client heartbeat
gets an InterruptedIOException because of a request timeout.
|
| Constructor and Description |
|---|
DefaultConfig() |
| Modifier and Type | Method and Description |
|---|---|
static ClientAdmin |
getClientAdmin(Map env)
Returns an instance of ClientAdmin.
|
static ClientSynchroMessageConnection |
getClientSynchroMessageConnection(Map env)
Returns a
ClientSynchroMessageConnection object
specified in the Map object. |
static long |
getConnectingTimeout(Map env)
Returns the connecting timeout at server side for a new client, zero means no timeout.
|
static long |
getRequestTimeout(Map env)
Returns the timeout for a client request.
|
static ServerAdmin |
getServerAdmin(Map env)
Returns an instance of ServerAdmin.
|
static int |
getServerMaxThreads(Map env)
Returns the maximum number of threads used at server side for
each client connection.
|
static int |
getServerMinThreads(Map env)
Returns the minimum number of threads used at server side for
each client connection.
|
static boolean |
getServerReuseAddress(Map env)
Returns a value telling whether or not we set
ReuseAddress flag to a Server Socket.
|
static SynchroMessageConnectionServer |
getSynchroMessageConnectionServer(Map env)
Returns a
SynchroMessageConnectionServer object
specified in the Map object. |
static long |
getTimeoutForWaitConnectedState(Map env)
Returns the timeout in milliseconds for a client to wait for
its state to become connected.
|
static boolean |
getTimeoutReconnection(Map env)
Returns a value telling whether or not we do reconnection if the client
heartbeat gets an InterruptedIOException because of a request timeout.
|
public static final String SERVER_MAX_THREADS
Name of the attribute that specifies the maximum number of threads used at the server side for each client connection.
public static final String SERVER_MIN_THREADS
Name of the attribute that specifies the minimum number of threads used at the server side for each client connection.
public static final String REQUEST_WAITING_TIME
Name of the attribute that specifies the timeout in
milliseconds for a client request to wait for its response.
The default value is Long.MAX_VALUE.
public static final String SERVER_SIDE_CONNECTING_TIMEOUT
Name of the attribute that specifies the timeout in milliseconds for a server to finish connecting with a new client. Zero means no timeout. If a user-specified value is less than or equal to zero, or more than the max value, Zero will be used. The default value is zero.
public static final String SERVER_ADMIN
Name of the attribute that specifies a ServerAdmin object. The value associated with this attribute is ServerAdmin object
public static final String CLIENT_ADMIN
Name of the attribute that specifies a ClientAdmin object. The value associated with this attribute is ClientAdmin object
public static final String SYNCHRO_MESSAGE_CONNECTION_SERVER
Name of the attribute that specifies a
SynchroMessageConnectionServer object. The value
associated with this attribute is a
SynchroMessageConnectionServer object
public static final String CLIENT_SYNCHRO_MESSAGE_CONNECTION
Name of the attribute that specifies a
ClientSynchroMessageConnection object. The value
associated with this attribute is a
ClientSynchroMessageConnection object
public static final String TIMEOUT_FOR_CONNECTED_STATE
Name of the attribute that specifies the timeout in milliseconds for a client to wait for its state to become connected. The default value is 0.
public static final String SERVER_REUSE_ADDRESS
Name of the attribute that specifies whether or not we set ReuseAddress flag to a Server Socket. Its default value is false
public static final String TIMEOUT_RECONNECTION
Name of the attribute that specifies whether or not do reconnection if the client heartbeat gets an InterruptedIOException because of a request timeout. Its default value is false.
public static int getServerMaxThreads(Map env)
public static int getServerMinThreads(Map env)
public static long getRequestTimeout(Map env)
Long.MAX_VALUE.public static long getConnectingTimeout(Map env)
public static ServerAdmin getServerAdmin(Map env)
com.sun.jmx.remote.opt.security.AdminServer.public static ClientAdmin getClientAdmin(Map env)
com.sun.jmx.remote.opt.security.AdminClient.public static SynchroMessageConnectionServer getSynchroMessageConnectionServer(Map env)
SynchroMessageConnectionServer object
specified in the Map object. Returns null if it is
not specified in the map.public static ClientSynchroMessageConnection getClientSynchroMessageConnection(Map env)
ClientSynchroMessageConnection object
specified in the Map object. Returns null if it is
not specified in the map.public static long getTimeoutForWaitConnectedState(Map env)
public static boolean getServerReuseAddress(Map env)
public static boolean getTimeoutReconnection(Map env)
Copyright © 2019 Terracotta, Inc.. All rights reserved.