Package com.sun.enterprise.ee.admin.mbeanapi

Examples of com.sun.enterprise.ee.admin.mbeanapi.ClusterConfigMBean


    /**
        Get the server names in a cluster.
     */
    private Set<String> getInstanceNames( final String clusterName ) throws MBeanException {
        final ObjectName clusterObjectName = getClusterObjectName(clusterName);
        final ClusterConfigMBean clusterConfig = ClusterConfigMBean.class.cast(
            MBeanServerInvocationHandler.newProxyInstance( getMBeanServer(), clusterObjectName, ClusterConfigMBean.class, false ) );
   
        try{
            return GSetUtil.newSet( clusterConfig.listServerInstancesAsString(false) );
        } catch (final InstanceException e ) {
            throw new MBeanException(e);
        }
    }
View Full Code Here

TOP

Related Classes of com.sun.enterprise.ee.admin.mbeanapi.ClusterConfigMBean

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.