Package net.jini.lookup.entry.jmx

Examples of net.jini.lookup.entry.jmx.JMXProperty


            JMXConnectionUtil.createJMXConnection();
            String jmxServiceURL = System.getProperty(Constants.JMX_SERVICE_URL);
            if(jmxServiceURL!=null) {
                entries = new Entry[2];
                entries[0] = new JMXProtocolType(JMXProtocolType.RMI);
                entries[1] = new JMXProperty(Constants.JMX_SERVICE_URL, jmxServiceURL);
            }
        } catch (Exception e) {
            logger.warn("Could not create JMX Connection, JMX monitoring not available", e);
        }
        return(entries);
View Full Code Here


     */
    public static String getJMXConnection(final Entry[] attributes) {
        String jmxConn = null;
        for (Entry attribute : attributes) {
            if (attribute instanceof JMXProperty) {
                JMXProperty jmxProp = ((JMXProperty) attribute);
                if (jmxProp.name != null &&
                    jmxProp.name.equals(Constants.JMX_SERVICE_URL)) {
                    jmxConn = jmxProp.value;
                    break;
                }
View Full Code Here

                boolean canceled = false;
                if(tok.countTokens()==1) {
                    ServiceItem[] items =
                        instance.getServiceFinder().find(null,
                                        new Entry[] {new JMXProtocolType(),
                                                     new JMXProperty()});
                    if(items.length==0)
                        return("No service instances with JMXProtocolType " +
                               "and JMXProperty " +
                               "entries discovered\n");
                    if(items.length==1) {
View Full Code Here

TOP

Related Classes of net.jini.lookup.entry.jmx.JMXProperty

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.