Package org.jmanage.core.management

Examples of org.jmanage.core.management.ObjectName


      if (mbeanName == null)
        return null;
        String mbeanName =
                ServiceUtils.resolveMBeanName(getApplicationConfig(),
                        this.mbeanName);
        return new ObjectName(mbeanName);
    }
View Full Code Here


            throws Exception {

        AttributeSelectionForm form = (AttributeSelectionForm)actionForm;
        String[] mbeans = form.getMbeans();
        ServerConnection serverConn = context.getServerConnection();
        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,
View Full Code Here

        return false;
    }

    protected void init(Map<String, String> properties) {
        try {
            objectName = new ObjectName(properties.get(MBEAN));
            attributeName = properties.get(ATTRIBUTE);
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
    }
View Full Code Here

  output.append("</table>");
    }

  protected void init(Map<String, String> properties) {
        try {
            objectName = new ObjectName(properties.get(MBEAN_PATTERN));
            attributes = properties.get(ATTRIBUTES);
            displayNames = properties.get(DISPLAY_NAMES);
            objectNameFilter = properties.get(OBJECT_NAME_FILTER);
        } catch (Exception e) {
            throw new RuntimeException(e);
View Full Code Here

    public void init(Map<String, String> properties) {
       
        this.properties = properties;
       
        try {
            objectName = new ObjectName(properties.get(MBEAN));
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
       
        operation = properties.get(OPERATION);
View Full Code Here

    }
   
    private Map<String, String> getData(WebContext webContext){
        Map<String, String> data = new HashMap<String, String>();
        ServerConnection serverConnection = webContext.getServerConnection();
        Object value = serverConnection.getAttribute(new ObjectName(mbean), attribute);
        if(value.getClass().isArray()){
            for(int i=0; i<Array.getLength(value); i++){
                Object id = Array.get(value, i);
                data.put(id.toString(), resolveId(serverConnection, id))
            }
View Full Code Here

        if(idResolverMBean != null){
            if(idResolverOperation != null){
                if(idType == null){
                    idType = id.getClass().getName();
                }
                Object output = connection.invoke(new ObjectName(idResolverMBean), idResolverOperation,
                        new Object[]{id}, new String[]{idType});
                if(idResolverName != null){
                    // if idResolverName is specified, output is a composite type
                    CompositeData compositeData = (CompositeData)output;
                    resolvedId = compositeData.get(idResolverName);
View Full Code Here

     *
     * @param properties
     */
    public void init(Map<String, String> properties) {
        try {
            objectName = new ObjectName(properties.get(MBEAN));
            attribute = properties.get(ATTRIBUTE);
            displayName = properties.get(DISPLAY_NAME);
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
View Full Code Here

        }
    }

    protected static ObjectName toJmanageObjectName(
            javax.management.ObjectName objectName){
        return new ObjectName(objectName.toString(),
                objectName.getCanonicalName());
    }
View Full Code Here

    public static ObjectName getObjectName(HttpServletRequest request){
        try {
            final String objectNameString =
                    request.getParameter(RequestParams.OBJECT_NAME);
            if(objectNameString != null){
                return new ObjectName(objectNameString);
            }else{
                return null;
            }
        } catch (MalformedObjectNameException e) {
            throw new RuntimeException(e);
View Full Code Here

TOP

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

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.