Package javax.management

Examples of javax.management.MBeanParameterInfo


                "The \"threshold\" state of the logger hierarchy.", true, true, false) };
    }

    protected MBeanOperationInfo[] createMBeanOperationInfo()
    {
        MBeanParameterInfo parameterInfo[] = new MBeanParameterInfo[1];
        parameterInfo[0] = new MBeanParameterInfo("loggerPattern", "java.lang.String",
                "Name of the Logger. Use * as wildcard");
        return new MBeanOperationInfo[]
        { new MBeanOperationInfo("addLoggerMBean", "Adds a MBean for a single Logger or "
                + "a group of Loggers", parameterInfo, "void", 1) };
    }
View Full Code Here


            for (int k = 0; k < params.length; ++k)
            {
               Class param = params[k];
               String paramName = description == null ? null : description.getOperationParameterName(method, k);
               String paramDescr = description == null ? null : description.getOperationParameterDescription(method, k);
               paramsInfo[k] = new MBeanParameterInfo(paramName, param.getName(), paramDescr);
            }
            MBeanOperationInfo info = new MBeanOperationInfo(method.getName(), descr, paramsInfo, method.getReturnType().getName(), MBeanOperationInfo.UNKNOWN);
            operations.add(info);
         }
      }
View Full Code Here

         for (int j = 0; j < params.length; ++j)
         {
            Class param = params[j];
            String paramName = descrs == null ? null : descrs.getConstructorParameterName(constructor, j);
            String paramDescr = descrs == null ? null : descrs.getConstructorParameterDescription(constructor, j);
            paramsInfo[j] = new MBeanParameterInfo(paramName, param.getName(), paramDescr);
         }

         String ctorName = constructor.getName();
         MBeanConstructorInfo info = new MBeanConstructorInfo(ctorName.substring(ctorName.lastIndexOf('.') + 1), descr, paramsInfo);
         constructors[i] = info;
View Full Code Here

            if (params.length != parameters.length) continue;

            String[] signature = new String[parameters.length];
            for (int j = 0; j < signature.length; ++j)
            {
               MBeanParameterInfo param = parameters[j];
               if (param == null)
                  signature[j] = null;
               else
                  signature[j] = param.getType();
            }

            if (Utils.arrayEquals(params, signature))
            {
               // Found the right operation
View Full Code Here

               if (signature.length == params.length)
               {
                  boolean match = true;
                  for (int j = 0; j < params.length; ++j)
                  {
                     MBeanParameterInfo param = params[j];
                     if (!signature[j].equals(param.getType()))
                     {
                        match = false;
                        break;
                     }
                  }
View Full Code Here

          MBeanParameterInfo[] signatures = null;
          if (parameterTypes != null && parameterTypes.length > 0) {
            signatures = new MBeanParameterInfo[parameterTypes.length];
            int i = 0;
            for (Class param : parameterTypes) {
              signatures[i] = new MBeanParameterInfo("args" + i,
                  param.getName(), "");
            }
          }

          ModelMBeanOperationInfo info = new ModelMBeanOperationInfo(
View Full Code Here

        }
        assertEquals(expectedValues, actualValues);

        // Grab invocation mbean operations
        MBeanParameterInfo[] invocationParameters1 = {
                new MBeanParameterInfo("excludeRegex", "java.lang.String", "\"\""),
                new MBeanParameterInfo("includeRegex", "java.lang.String", "\"\"")};
        MBeanParameterInfo[] invocationParameters2 = {
                new MBeanParameterInfo("p1", "int", "")};

        List<MBeanOperationInfo> expectedOperations = new ArrayList<MBeanOperationInfo>();
        expectedOperations.add(new MBeanOperationInfo(
                "FilterAttributes",
                "Filters the attributes that show up in the MBeanInfo.  The exclude is applied first, then any attributes that match the include are re-added.  It may be required to disconnect and reconnect the JMX console to force a refresh of the MBeanInfo",
View Full Code Here

            List gparameters = gOperationInfo.getParameterList();
            MBeanParameterInfo[] parameters = new MBeanParameterInfo[gparameters.size()];
            int p = 0;
            for (Iterator piterator = gparameters.iterator(); piterator.hasNext();) {
                String type = (String) piterator.next();
                parameters[p] = new MBeanParameterInfo("parameter" + p, type, "no description available");
                p++;
            }
            operations[o] = new MBeanOperationInfo(gOperationInfo.getName(), "no description available", parameters, "java.lang.Object", MBeanOperationInfo.UNKNOWN);
            o++;
        }
View Full Code Here

        // Return our cached information (if any)
        if (info != null)
            return (info);

        // Create and return a new information object
        info = new MBeanParameterInfo
            (getName(), getType(), getDescription());
        return (info);

    }
View Full Code Here

                "The \"threshold\" state of the logger hierarchy.", true, true, false) };
    }

    protected MBeanOperationInfo[] createMBeanOperationInfo()
    {
        MBeanParameterInfo parameterInfo[] = new MBeanParameterInfo[1];
        parameterInfo[0] = new MBeanParameterInfo("loggerPattern", "java.lang.String",
                "Name of the Logger. Use * as wildcard");
        return new MBeanOperationInfo[]
        { new MBeanOperationInfo("addLoggerMBean", "Adds a MBean for a single Logger or "
                + "a group of Loggers", parameterInfo, "void", 1) };
    }
View Full Code Here

TOP

Related Classes of javax.management.MBeanParameterInfo

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.