java.lang.Object | |
↳ | com.sun.jmx.remote.util.EnvHelp |
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | BUFFER_SIZE_PROPERTY | Name of the attribute that specifies the size of a notification buffer for a connector server. |
|||||||||
String | CLIENT_CONNECTION_CHECK_PERIOD | Name of the attribute that specifies the period in millisecond for a client to check its connection. |
|||||||||
String | DEFAULT_HIDDEN_ATTRIBUTES | Default list of attributes not to show. | |||||||||
String | DEFAULT_ORB | ||||||||||
String | FETCH_TIMEOUT | Name of the attribute that specifies the timeout for a client to fetch notifications from its server. |
|||||||||
String | HIDDEN_ATTRIBUTES | The value of this attribute, if present, is a string specifying what other attributes should not appear in JMXConnectorServer.getAttributes(). | |||||||||
String | MAX_FETCH_NOTIFS | Name of the attribute that specifies the maximum number of notifications that a client will fetch from its server.. |
|||||||||
String | SERVER_CONNECTION_TIMEOUT | Name of the attribute that specifies the timeout to keep a server side connection after answering last client request. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Computes a boolean value from a string value retrieved from a
property in the given map.
| |||||||||||
Returns the cause field of a
Throwable object. | |||||||||||
Returns the client connection check period.
| |||||||||||
Returns the timeout for a client to fetch notifications.
| |||||||||||
Get an integer-valued attribute with name
name
from env . | |||||||||||
Returns the maximum notification number which a client will
fetch every time.
| |||||||||||
Returns the size of a notification buffer for a connector server.
| |||||||||||
Returns the server side connection timeout.
| |||||||||||
Initialize the cause field of a
Throwable object. | |||||||||||
Converts a map into a valid hash table, i.e.
| |||||||||||
Get the Connector Client default class loader.
| |||||||||||
Get the Connector Server default class loader.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Name of the attribute that specifies the size of a notification buffer for a connector server. The default value is 1000.
Name of the attribute that specifies the period in millisecond for a client to check its connection. The default value is 60000 milliseconds.
Default list of attributes not to show.
Name of the attribute that specifies the timeout for a
client to fetch notifications from its server. The value
associated with this attribute should be a Long
object. The default value is 60000 milliseconds.
The value of this attribute, if present, is a string specifying
what other attributes should not appear in
JMXConnectorServer.getAttributes(). It is a space-separated
list of attribute patterns, where each pattern is either an
attribute name, or an attribute prefix followed by a "*"
character. The "*" has no special significance anywhere except
at the end of a pattern. By default, this list is added to the
list defined by DEFAULT_HIDDEN_ATTRIBUTES
(which
uses the same format). If the value of this attribute begins
with an "=", then the remainder of the string defines the
complete list of attribute patterns.
Name of the attribute that specifies the maximum number of
notifications that a client will fetch from its server.. The
value associated with this attribute should be an
Integer
object. The default value is 1000.
Name of the attribute that specifies the timeout to keep a server side connection after answering last client request. The default value is 120000 milliseconds.
Computes a boolean value from a string value retrieved from a property in the given map.
env | the environment map. |
---|---|
prop | the name of the property in the environment map whose returned string value must be converted into a boolean value. |
false
if env.get(prop)
is null
false
if
((String)env.get(prop)).equalsIgnoreCase("false")
is true
true
if
((String)env.get(prop)).equalsIgnoreCase("true")
is true
IllegalArgumentException | if env is null or
env.get(prop) is not null and
((String)env.get(prop)).equalsIgnoreCase("false") and
((String)env.get(prop)).equalsIgnoreCase("true") are
false . |
---|---|
ClassCastException | if env.get(prop) cannot be cast
to String .
|
Returns the cause field of a Throwable
object.
The cause field can be got only if t has an
getCause()
method (JDK Version >= 1.4)
t | Throwable on which the cause must be set. |
---|
Returns the timeout for a client to fetch notifications.
Get an integer-valued attribute with name name
from env
. If env
is null, or does
not contain an entry for name
, return
defaultValue
. The value may be a Number, or it
may be a String that is parsable as a long. It must be at
least minValue
and at mostmaxValue
.
IllegalArgumentException | if env contains
an entry for name but it does not meet the
constraints above.
|
---|
Returns the maximum notification number which a client will fetch every time.
Returns the size of a notification buffer for a connector server. The default value is 1000.
Initialize the cause field of a Throwable
object.
throwable | The Throwable on which the cause is set. |
---|---|
cause | The cause to set on the supplied Throwable . |
Throwable
with the cause field initialized.
Converts a map into a valid hash table, i.e. it removes all the 'null' values from the map.
Get the Connector Client default class loader.
Returns:
jmx.remote.default.class.loader
, if any.
Usually a Connector Client will call
ClassLoader dcl = EnvHelp.resolveClientClassLoader(env);in its
connect(Map env)
method.IllegalArgumentException | if
jmx.remote.default.class.loader is specified
and is not an instance of ClassLoader .
|
---|
Get the Connector Server default class loader.
Returns:
jmx.remote.default.class.loader
, if any.
jmx.remote.default.class.loader.name
,
and registered in mbs if any.
env | Environment attributes. |
---|---|
mbs | The MBeanServer for which the connector server provides remote access. |
IllegalArgumentException | if one of the following is true:
|
---|---|
InstanceNotFoundException | if
jmx.remote.default.class.loader.name is specified
and the ClassLoader MBean is not found in mbs.
|