Examples of JGDIProxy


Examples of com.sun.grid.jgdi.management.JGDIProxy

            url = new JMXServiceURL(String.format("service:jmx:rmi:///jndi/rmi://%s:%d/jmxrmi", host, port));
        } catch (MalformedURLException ex) {
            throw new IllegalStateException("Invalid JMX url", ex);
        }

        return new JGDIProxy(url, credentials);
    }
View Full Code Here

Examples of com.sun.grid.jgdi.management.JGDIProxy

                JGDIProxy.setupSSL(host, port, caTop, keyStore, kspw.getPassword());
                kspw.clearPassword();
                kspw = null;
            }
            Object credentials = new String[]{username, userpw};
            JGDIProxy jgdiProxy = JGDIFactory.newJMXInstance(host, port, credentials);

            jgdi = JMXJGDIBridge.newInstance(jgdiProxy);
        }
View Full Code Here

Examples of com.sun.grid.jgdi.management.JGDIProxy

    public void run() throws Exception {

        log.info("connecting");
       
        JGDIProxy jgdiProxy = JGDIFactory.newJMXInstance(master, port, credentials);

        Set<EventTypeEnum> subscription = new HashSet<EventTypeEnum>(4);

       
        subscription.add(EventTypeEnum.ExecHostList);
        subscription.add(EventTypeEnum.ExecHostAdd);
        subscription.add(EventTypeEnum.ExecHostDel);
        subscription.add(EventTypeEnum.ExecHostMod);
       
        log.info("addEventListener");

        jgdiProxy.addEventListener(this);
       
        log.info("setSubscription");
       
        jgdiProxy.getProxy().setSubscription(subscription);

        log.info("connected");
       
        lock.lock();
        try {
            cond.await();
        } finally {
            lock.unlock();
        }
        log.info("disconnecting");
        jgdiProxy.close();
        log.info("disconnected");

    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.