com.sun.jmx.remote.generic
Class DefaultConfig

java.lang.Object
  extended by com.sun.jmx.remote.generic.DefaultConfig

public class DefaultConfig
extends Object


Field Summary
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 Summary
DefaultConfig()
           
 
Method Summary
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SERVER_MAX_THREADS

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.

See Also:
Constant Field Values

SERVER_MIN_THREADS

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.

See Also:
Constant Field Values

REQUEST_WAITING_TIME

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.

See Also:
Constant Field Values

SERVER_SIDE_CONNECTING_TIMEOUT

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.

See Also:
Constant Field Values

SERVER_ADMIN

public static final String SERVER_ADMIN

Name of the attribute that specifies a ServerAdmin object. The value associated with this attribute is ServerAdmin object

See Also:
Constant Field Values

CLIENT_ADMIN

public static final String CLIENT_ADMIN

Name of the attribute that specifies a ClientAdmin object. The value associated with this attribute is ClientAdmin object

See Also:
Constant Field Values

SYNCHRO_MESSAGE_CONNECTION_SERVER

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

See Also:
Constant Field Values

CLIENT_SYNCHRO_MESSAGE_CONNECTION

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

See Also:
Constant Field Values

TIMEOUT_FOR_CONNECTED_STATE

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.

See Also:
Constant Field Values

SERVER_REUSE_ADDRESS

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

See Also:
Constant Field Values

TIMEOUT_RECONNECTION

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.

See Also:
Constant Field Values
Constructor Detail

DefaultConfig

public DefaultConfig()
Method Detail

getServerMaxThreads

public static int getServerMaxThreads(Map env)
Returns the maximum number of threads used at server side for each client connection. Its default value is 10.


getServerMinThreads

public static int getServerMinThreads(Map env)
Returns the minimum number of threads used at server side for each client connection. Its default value is 1.


getRequestTimeout

public static long getRequestTimeout(Map env)
Returns the timeout for a client request. Its default value is Long.MAX_VALUE.


getConnectingTimeout

public static long getConnectingTimeout(Map env)
Returns the connecting timeout at server side for a new client, zero means no timeout. If a user-specified value is less than zero, zero will be used. The default value is 0.


getServerAdmin

public static ServerAdmin getServerAdmin(Map env)
Returns an instance of ServerAdmin. Its default value is a com.sun.jmx.remote.opt.security.AdminServer.


getClientAdmin

public static ClientAdmin getClientAdmin(Map env)
Returns an instance of ClientAdmin. Its default value is a com.sun.jmx.remote.opt.security.AdminClient.


getSynchroMessageConnectionServer

public static SynchroMessageConnectionServer getSynchroMessageConnectionServer(Map env)
Returns a SynchroMessageConnectionServer object specified in the Map object. Returns null if it is not specified in the map.


getClientSynchroMessageConnection

public static ClientSynchroMessageConnection getClientSynchroMessageConnection(Map env)
Returns a ClientSynchroMessageConnection object specified in the Map object. Returns null if it is not specified in the map.


getTimeoutForWaitConnectedState

public static long getTimeoutForWaitConnectedState(Map env)
Returns the timeout in milliseconds for a client to wait for its state to become connected. The default timeout is 1 second.


getServerReuseAddress

public static boolean getServerReuseAddress(Map env)
Returns a value telling whether or not we set ReuseAddress flag to a Server Socket. Its default value is false.


getTimeoutReconnection

public 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. Its default value is false.



Copyright © 2014 Terracotta, Inc.. All rights reserved.