APISonar


com.sun.jmx.defaults.JmxProperties.MISC_LOGGER.log

> com > sun > jmx > defaults > JmxProperties > MISC_LOGGER > log
com APIs sun APIs jmx APIs defaults APIs JmxProperties APIs MISC_LOGGER APIs log APIs

Example 1
private static String mBeanServerId(MBeanServer mbs) {
        try {
            return (String) mbs.getAttribute(MBeanServerDelegate.DELEGATE_NAME,
                    "MBeanServerId");
        } catch (JMException e) {
            JmxProperties.MISC_LOGGER.log(Level.TRACE,
                    "Ignoring exception while getting MBeanServerId: "+e);
            return null;
        }
    }
Example 2
public synchronized String getMBeanServerId() {
        if (mbeanServerId == null) {
            String localHost;
            try {
                localHost = java.net.InetAddress.getLocalHost().getHostName();
            } catch (java.net.UnknownHostException e) {
                JmxProperties.MISC_LOGGER.log(Level.TRACE,
                        "Can't get local host name, " +
                        "using \"localhost\" instead. Cause is: "+e);
                localHost = "localhost";
            }
            mbeanServerId = localHost + "_" + stamp;
        }
        return mbeanServerId;
    }