Package org.jmanage.core.data

Examples of org.jmanage.core.data.MBeanData


        Set mbeans =
                serverConnection.queryNames(filterObjectName);
        ArrayList<MBeanData> mbeanDataList = new ArrayList<MBeanData>(mbeans.size());
        for(Iterator it=mbeans.iterator();it.hasNext(); ){
            ObjectName objName = (ObjectName)it.next();
            mbeanDataList.add(new MBeanData(objName.getDisplayName()));
        }
        return mbeanDataList;
    }
View Full Code Here


        }

        Map domainToObjectNameListMap = new TreeMap();
        ObjectNameTuple tuple = new ObjectNameTuple();
        for(Iterator it=mbeanDataList.iterator(); it.hasNext();){
            MBeanData mbeanData = (MBeanData)it.next();
            tuple.setObjectName(mbeanData.getName());
            String domain = tuple.getDomain();
            String name = tuple.getName();
            Set objectNameList = (Set)domainToObjectNameListMap.get(domain);
            if(objectNameList == null){
                objectNameList = new TreeSet();
View Full Code Here

            throws ServiceException{
        ServerConnection serverConnection = context.getServerConnection();
        List mbeans = queryMBeans(context, filter);
        List mbeanToAttributesList = new ArrayList();
        for(Iterator itr=mbeans.iterator(); itr.hasNext();){
            MBeanData mbeanData = (MBeanData)itr.next();
            ObjectName objName = new ObjectName(mbeanData.getName());
            try {
                ObjectInfo objInfo = serverConnection.getObjectInfo(objName);
                ObjectAttributeInfo[] objAttrInfo = objInfo.getAttributes();
                if(objAttrInfo!=null && objAttrInfo.length > 0){
                    if(dataTypes!=null && dataTypes.length > 0){
View Full Code Here

                ServiceUtils.getApplicationConfigByName(applicationName);
        List mbeanList = appConfig.getMBeans();
        ArrayList<MBeanData> mbeanDataList = new ArrayList<MBeanData>(mbeanList.size());
        for (Object mbeanConfig1 : mbeanList) {
            MBeanConfig mbeanConfig = (MBeanConfig) mbeanConfig1;
            mbeanDataList.add(new MBeanData(mbeanConfig.getObjectName(),
                    mbeanConfig.getName()));
        }
        return mbeanDataList;
    }
View Full Code Here

        if(mbeanList.size() > 0)
            Out.println();

        for(Iterator it=mbeanList.iterator(); it.hasNext(); ){
            MBeanData mbeanData = (MBeanData)it.next();
            Out.print(mbeanData.getName());
            if(mbeanData.getConfiguredName() != null){
                Out.println(" [" + mbeanData.getConfiguredName() + "]");
            }else{
                Out.println();
            }
        }
    }
View Full Code Here

                queryObjectName);

        Map<String, Set<String>> domainToObjectNameListMap = new TreeMap<String, Set<String>>();
        ObjectNameTuple tuple = new ObjectNameTuple();
        for(Iterator it=mbeanDataList.iterator(); it.hasNext();){
            MBeanData mbeanData = (MBeanData)it.next();
            tuple.setObjectName(mbeanData.getName());
            String domain = tuple.getDomain();
            String name = tuple.getName();
            Set<String> objectNameList = domainToObjectNameListMap.get(domain);
            if(objectNameList == null){
                objectNameList = new TreeSet<String>();
View Full Code Here

TOP

Related Classes of org.jmanage.core.data.MBeanData

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.