Package javax.management

Examples of javax.management.MBeanOperationInfo


                ai.setWriteable( mai.isWritable());
                                               
                mbean.addAttribute(ai);
            }

            MBeanOperationInfo opInfo[]=mbi.getOperations();
            for( int i=0; i<opInfo.length; i++ ) {
                MBeanOperationInfo moi=opInfo[i];
                OperationInfo op=new OperationInfo();

                op.setName(moi.getName());
                op.setReturnType(moi.getReturnType());
               
                MBeanParameterInfo parms[]=moi.getSignature();
                for(int j=0; j<parms.length; j++ ) {
                    ParameterInfo pi=new ParameterInfo();
                    pi.setType(parms[i].getType());
                    pi.setName(parms[i].getName());
                    op.addParameter(pi);
View Full Code Here


  if (operationName == null) {
      throw new RuntimeOperationsException(new IllegalArgumentException(
      "Null Operation name passed to invoke()"));
  }

  MBeanOperationInfo op = getOperationInfo(operationName, signature);
  Method m = null;
  Object ret = null;

  if (op == null)  {
      /*
 
View Full Code Here

  if (ops == null)  {
      return (null);
  }

  for (int i = 0; i < ops.length; ++i)  {
      MBeanOperationInfo oneOp = ops[i];

      if (oneOp.getName().equals(operationName))  {
    if (operationSignatureOK(oneOp, signature))  {
        return (oneOp);
    }
      }
  }
View Full Code Here

            Class returnClass = method.getReturnType();
            _methods.put(signature, method);
            if (convert)
                _convert.add(signature);

            return new MBeanOperationInfo(method_name, description, pInfo, returnClass.isPrimitive() ? TypeUtil.toName(returnClass) : (returnClass.getName()), impact);
        }
        catch (Exception e)
        {
            Log.warn("Operation '"+signature+"'", e);
            throw new IllegalArgumentException(e.toString());
View Full Code Here

        String name = m.getName().substring(3);
        setter.put(name, m);
        attr.add(name);
      } else {
        methods.put(m.getName(), m);
        operations.add(new MBeanOperationInfo("", m));
      }
    }
   
    for (String name : attr) {
      Method g = getter.get(name);
View Full Code Here

            String name = m.getName().substring(3);
            setter.put(name, m);
            attr.add(name);
          } else {
            methods.put(m.getName(), m);
            operations.add(new MBeanOperationInfo(anno.descrition(), m));
          }
        }
      }
     
      ifc = ifc.getSuperclass();
View Full Code Here

            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++;
        }

        MBeanNotificationInfo[] notifications = new MBeanNotificationInfo[1];
        notifications[0] = new MBeanNotificationInfo(NotificationType.TYPES, "javax.management.Notification", "J2EE Notifications");
View Full Code Here

        { notification };
    }

    protected MBeanOperationInfo[] createMBeanOperationInfo()
    {
        MBeanOperationInfo operation = new MBeanOperationInfo("operation", "",
                new MBeanParameterInfo[0], "String", 0);
        return new MBeanOperationInfo[]
        { operation };
    }
View Full Code Here

         MBeanOperationInfo[] operations = new MBeanOperationInfo[ops.size()];
         int i = 0;
         for (Method m : ops.values())
         {
            operations[i++] = new MBeanOperationInfo(m.toString(), m);
         }
         MBeanAttributeInfo[] attrs = attributes.values().toArray(new MBeanAttributeInfo[attributes.size()]);

         mbeanInfo = new MBeanInfo(target.getClass().getName(), target.getClass().getName(),
                 attrs, null, operations, null);
View Full Code Here

   public synchronized MBeanInfo getMBeanInfo() {
      //the client doesn't know about IspnMBeanOperationInfo so we need to convert first
      MBeanOperationInfo[] operationInfoForClient = new MBeanOperationInfo[opInfos.length];
      for (int i = 0; i < opInfos.length; i++) {
         IspnMBeanOperationInfo current = opInfos[i];
         operationInfoForClient[i] = new MBeanOperationInfo(current.getOperationName(), current.getDescription(),
                                                            current.getSignature(), current.getReturnType(), MBeanOperationInfo.UNKNOWN);
      }
      return new MBeanInfo(getObject().getClass().getCanonicalName(), mBeanMetadata.getDescription(), attInfos, null, operationInfoForClient, null);
   }
View Full Code Here

TOP

Related Classes of javax.management.MBeanOperationInfo

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.