< prev index next >

src/java.management/share/classes/com/sun/jmx/remote/util/EnvHelp.java

Print this page

        

*** 53,82 **** import javax.management.remote.JMXConnectorServer; public class EnvHelp { /** ! * <p>Name of the attribute that specifies a default class loader * object. ! * The value associated with this attribute is a ClassLoader object</p> */ private static final String DEFAULT_CLASS_LOADER = JMXConnectorFactory.DEFAULT_CLASS_LOADER; /** ! * <p>Name of the attribute that specifies a default class loader * ObjectName. ! * The value associated with this attribute is an ObjectName object</p> */ private static final String DEFAULT_CLASS_LOADER_NAME = JMXConnectorServerFactory.DEFAULT_CLASS_LOADER_NAME; /** * Get the Connector Server default class loader. * <p> * Returns: - * <p> * <ul> * <li> * The ClassLoader object found in <var>env</var> for * <code>jmx.remote.default.class.loader</code>, if any. * </li> --- 53,81 ---- import javax.management.remote.JMXConnectorServer; public class EnvHelp { /** ! * Name of the attribute that specifies a default class loader * object. ! * The value associated with this attribute is a ClassLoader object. */ private static final String DEFAULT_CLASS_LOADER = JMXConnectorFactory.DEFAULT_CLASS_LOADER; /** ! * Name of the attribute that specifies a default class loader * ObjectName. ! * The value associated with this attribute is an ObjectName object. */ private static final String DEFAULT_CLASS_LOADER_NAME = JMXConnectorServerFactory.DEFAULT_CLASS_LOADER_NAME; /** * Get the Connector Server default class loader. * <p> * Returns: * <ul> * <li> * The ClassLoader object found in <var>env</var> for * <code>jmx.remote.default.class.loader</code>, if any. * </li>
*** 112,121 **** --- 111,121 ---- * </li> * <li>or * <code>jmx.remote.default.class.loader.name</code> is specified * but <var>mbs</var> is null. * </li> + * </ul> * @exception InstanceNotFoundException if * <code>jmx.remote.default.class.loader.name</code> is specified * and the ClassLoader MBean is not found in <var>mbs</var>. */ public static ClassLoader resolveServerClassLoader(Map<String, ?> env,
*** 170,180 **** /** * Get the Connector Client default class loader. * <p> * Returns: - * <p> * <ul> * <li> * The ClassLoader object found in <var>env</var> for * <code>jmx.remote.default.class.loader</code>, if any. * </li> --- 170,179 ----
*** 230,240 **** } /** * Returns the cause field of a {@code Throwable} object. * The cause field can be got only if <var>t</var> has an ! * {@link Throwable#getCause()} method (JDK Version >= 1.4) * @param t {@code Throwable} on which the cause must be set. * @return the cause if getCause() succeeded and the got value is not * null, otherwise return the <var>t</var>. */ public static Throwable getCause(Throwable t) { --- 229,239 ---- } /** * Returns the cause field of a {@code Throwable} object. * The cause field can be got only if <var>t</var> has an ! * {@link Throwable#getCause()} method (JDK Version {@literal >=} 1.4) * @param t {@code Throwable} on which the cause must be set. * @return the cause if getCause() succeeded and the got value is not * null, otherwise return the <var>t</var>. */ public static Throwable getCause(Throwable t) {
*** 252,262 **** return (ret != null) ? ret: t; } /** ! * <p>Name of the attribute that specifies the size of a notification * buffer for a connector server. The default value is 1000. */ public static final String BUFFER_SIZE_PROPERTY = "jmx.remote.x.notification.buffer.size"; --- 251,261 ---- return (ret != null) ? ret: t; } /** ! * Name of the attribute that specifies the size of a notification * buffer for a connector server. The default value is 1000. */ public static final String BUFFER_SIZE_PROPERTY = "jmx.remote.x.notification.buffer.size";
*** 314,327 **** return queueSize; } /** ! * <p>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 ! * <code>Integer</code> object. The default value is 1000.</p> */ public static final String MAX_FETCH_NOTIFS = "jmx.remote.x.notification.fetch.max"; /** --- 313,326 ---- return queueSize; } /** ! * 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 ! * {@code Integer} object. The default value is 1000. */ public static final String MAX_FETCH_NOTIFS = "jmx.remote.x.notification.fetch.max"; /**
*** 332,345 **** return (int) getIntegerAttribute(env, MAX_FETCH_NOTIFS, 1000, 1, Integer.MAX_VALUE); } /** ! * <p>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 <code>Long</code> ! * object. The default value is 60000 milliseconds.</p> */ public static final String FETCH_TIMEOUT = "jmx.remote.x.notification.fetch.timeout"; /** --- 331,344 ---- return (int) getIntegerAttribute(env, MAX_FETCH_NOTIFS, 1000, 1, Integer.MAX_VALUE); } /** ! * 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 <code>Long</code> ! * object. The default value is 60000 milliseconds. */ public static final String FETCH_TIMEOUT = "jmx.remote.x.notification.fetch.timeout"; /**
*** 349,363 **** return getIntegerAttribute(env, FETCH_TIMEOUT, 60000L, 0, Long.MAX_VALUE); } /** ! * <p>Name of the attribute that specifies an object that will check * accesses to add/removeNotificationListener and also attempts to * receive notifications. The value associated with this attribute * should be a <code>NotificationAccessController</code> object. ! * The default value is null.</p> * This field is not public because of its com.sun dependency. */ public static final String NOTIF_ACCESS_CONTROLLER = "com.sun.jmx.remote.notification.access.controller"; --- 348,363 ---- return getIntegerAttribute(env, FETCH_TIMEOUT, 60000L, 0, Long.MAX_VALUE); } /** ! * Name of the attribute that specifies an object that will check * accesses to add/removeNotificationListener and also attempts to * receive notifications. The value associated with this attribute * should be a <code>NotificationAccessController</code> object. ! * The default value is null. ! * <p> * This field is not public because of its com.sun dependency. */ public static final String NOTIF_ACCESS_CONTROLLER = "com.sun.jmx.remote.notification.access.controller";
*** 628,640 **** hiddenStrings.add(s); } } /** ! * <p>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.</p> */ public static final String SERVER_CONNECTION_TIMEOUT = "jmx.remote.x.server.connection.timeout"; /** --- 628,640 ---- hiddenStrings.add(s); } } /** ! * 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. */ public static final String SERVER_CONNECTION_TIMEOUT = "jmx.remote.x.server.connection.timeout"; /**
*** 644,656 **** return getIntegerAttribute(env, SERVER_CONNECTION_TIMEOUT, 120000L, 0, Long.MAX_VALUE); } /** ! * <p>Name of the attribute that specifies the period in * millisecond for a client to check its connection. The default ! * value is 60000 milliseconds.</p> */ public static final String CLIENT_CONNECTION_CHECK_PERIOD = "jmx.remote.x.client.connection.check.period"; /** --- 644,656 ---- return getIntegerAttribute(env, SERVER_CONNECTION_TIMEOUT, 120000L, 0, Long.MAX_VALUE); } /** ! * Name of the attribute that specifies the period in * millisecond for a client to check its connection. The default ! * value is 60000 milliseconds. */ public static final String CLIENT_CONNECTION_CHECK_PERIOD = "jmx.remote.x.client.connection.check.period"; /**
*** 739,755 **** if (i.next() == null) i.remove(); return new Hashtable<K, V>(m); } /** ! * <p>Name of the attribute that specifies whether a connector server * should not prevent the VM from exiting */ public static final String JMX_SERVER_DAEMON = "jmx.remote.x.daemon"; /** ! * Returns true if {@value SERVER_DAEMON} is specified in the {@code env} * as a key and its value is a String and it is equal to true ignoring case. * * @param env * @return */ --- 739,755 ---- if (i.next() == null) i.remove(); return new Hashtable<K, V>(m); } /** ! * Name of the attribute that specifies whether a connector server * should not prevent the VM from exiting */ public static final String JMX_SERVER_DAEMON = "jmx.remote.x.daemon"; /** ! * Returns true if {@value JMX_SERVER_DAEMON} is specified in the {@code env} * as a key and its value is a String and it is equal to true ignoring case. * * @param env * @return */
< prev index next >