Package org.jmanage.core.management

Examples of org.jmanage.core.management.ObjectInfo


        ObjectName objectName = null;
        Map<String, List> mbeanAttributesListMap = new TreeMap<String, List>();
        MBeanService mbeanService = ServiceFactory.getMBeanService();
        for(int i=0; i<mbeans.length;i++){
            objectName = new ObjectName(mbeans[i]);
            ObjectInfo objInfo = serverConn.getObjectInfo(objectName);
            ObjectAttributeInfo[] objAttrInfo = objInfo.getAttributes();
            List objAttrInfoList = mbeanService.filterAttributes(
                    Utils.getServiceContext(context),
                    objectName,
                    objAttrInfo,
                    form.getDataTypes());
View Full Code Here


            usage();
            return false;
        }

        MBeanService service = ServiceFactory.getMBeanService();
        ObjectInfo objectInfo =
                service.getMBeanInfo(context.getServiceContext(
                        expression.getAppName(), expression.getMBeanName()));
        printObjectInfo(objectInfo);
        return true;
    }
View Full Code Here

        Document doc = new Document();
        Element rootElement = new Element("mbeans");
        doc.setRootElement(rootElement);
        /* mbeans */
        for(ObjectName objName:objectNames){
           ObjectInfo objInfo = connection.getObjectInfo(objName);
           Element mbeanElement = new Element("mbean");
           mbeanElement.setAttribute("name", objInfo.getObjectName().toString());
           mbeanElement.setAttribute("description", objInfo.getDescription());
           /* attributes */
           for(ObjectAttributeInfo attrInfo:objInfo.getAttributes()){
               Element attrElement = new Element("attribute");
               attrElement.setAttribute("name", attrInfo.getName());
               attrElement.setAttribute("description", attrInfo.getDescription());
               mbeanElement.addContent(attrElement);
           }
           /* operations */
           for(ObjectOperationInfo oprInfo:objInfo.getOperations()){
               Element oprElement = new Element("operation");
               oprElement.setAttribute("name", oprInfo.getName());
               oprElement.setAttribute("description", oprInfo.getDescription());
               /*parameters*/
               for(ObjectParameterInfo paramInfo: oprInfo.getSignature()){
View Full Code Here

    private static Logger logger = Loggers.getLogger(Repository.class);
    private static Map<ObjectName, ObjectInfo> mbeanToObjectInfoMap = new HashMap<ObjectName, ObjectInfo>();
   
    public static ObjectInfo applyMetaData(ObjectInfo objInfo, ServerConnection connection){
        ObjectInfo metaObjectInfo = mbeanToObjectInfoMap.get(objInfo.getObjectName());
        if(metaObjectInfo != null){
            objInfo.applyMetaData(metaObjectInfo,
                    new ExpressionProcessor(connection, objInfo.getObjectName()));
        }
        return objInfo;
View Full Code Here

            List mbeans =
                config.getRootElement().getChildren();
           
            for(Iterator it= mbeans.iterator(); it.hasNext();){
                Element mbean = (Element)it.next();
                ObjectInfo objInfo = getObjectInfo(mbean);
                ObjectInfo oldObjInfo =
                    mbeanToObjectInfoMap.put(objInfo.getObjectName(), objInfo);
                if(oldObjInfo != null){
                    logger.warning("Duplicate mbean found: " + oldObjInfo.getObjectName().toString());
                }
            }
  }
    }
View Full Code Here

    private static ObjectInfo getObjectInfo(Element mbean){
        ObjectName objectName = new ObjectName(mbean.getAttributeValue("name"));
        String description = mbean.getAttributeValue("description");
        ObjectAttributeInfo[] attributes = getObjectAttributeInfo(mbean);
        ObjectOperationInfo[] operations = getObjectOperationInfo(mbean);
        return new ObjectInfo(objectName, null, description,
                attributes, null, operations, null);
    }
View Full Code Here

TOP

Related Classes of org.jmanage.core.management.ObjectInfo

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.