Package javax.management

Examples of javax.management.MBeanInfo


       
        MBeanAttributeInfo[] attribs =
        new MBeanAttributeInfo[alAttributes.size()];
        alAttributes.toArray(attribs);
       
        return new MBeanInfo(
        dClassName,
        dDescription,
        attribs,
        dConstructors,
        dOperations,
View Full Code Here


    MBeanAttributeInfo[] attribs =
      new MBeanAttributeInfo[alAttributes.size()];
    alAttributes.toArray(attribs);

    MBeanInfo mb =
      new MBeanInfo(
        dClassName,
        dDescription,
        attribs,
        dConstructors,
        dOperations,
View Full Code Here

        al.addAll(alBasicAttributes);
        al.addAll(alMbeanAttributes);
        al.toArray(attribs);
        al = null;
       
        MBeanInfo mb =
        new MBeanInfo(
        dClassName,
        dDescription,
        attribs,
        dConstructors,
        dOperations,
View Full Code Here

    if (objectNames == null)
      return null;
    List<ObjectName> l = new ArrayList<ObjectName>();
    for (ObjectName objectName : objectNames)
    {
      MBeanInfo mBeanInfo = connection.getMBeanInfo(objectName);
      if (!"org.eclipse.jetty.webapp.WebAppContext".equals(mBeanInfo.getClassName())
          && !"org.eclipse.jetty.server.handler.ContextHandler".equals(mBeanInfo.getClassName()))
        l.add(objectName)
    }
    return l.toArray(new ObjectName[0]);
  }
View Full Code Here

    if (objectNames == null)
      return null;
    List<ObjectName> l = new ArrayList<ObjectName>();
    for (ObjectName objectName : objectNames)
    {
      MBeanInfo mBeanInfo = connection.getMBeanInfo(objectName);
      if ("org.eclipse.jetty.webapp.WebAppContext".equals(mBeanInfo.getClassName())
          || "org.eclipse.jetty.server.handler.ContextHandler".equals(mBeanInfo.getClassName()))
        l.add(objectName)
    }
    return l.toArray(new ObjectName[0]);
  }
View Full Code Here

  {
    _connection = connection;
    _request = request;
    _objectName = objectName;

    MBeanInfo info = _connection.getMBeanInfo(_objectName);
    for (int i = 0; i < info.getOperations().length; i++)
    {
      MBeanOperationInfo operation = info.getOperations()[i];
      if ("handle".equals(operation.getName()))
      {
        MBeanParameterInfo[] signatures =  operation.getSignature();
        if (signatures.length == 1 && signatures[0].getType().equals(HANDLE[0]))
        {
View Full Code Here

    }
  }
 
  public void print(Writer out) throws Exception
  {
    MBeanInfo info = _connection.getMBeanInfo(_objectName);
    boolean foundSimple = false;
    boolean foundComplex = false;
    for (int i = 0; i < info.getOperations().length; i++)
    {
      MBeanOperationInfo operation = info.getOperations()[i];
      if ("print".equals(operation.getName()))
      {
        MBeanParameterInfo[] signatures =  operation.getSignature();
        if (signatures.length == 1 && signatures[0].getType().equals(SIMPLE_SIGNATURE[0]))
          foundSimple = true;
View Full Code Here

  }
 
  private PageImpl getDynamicPage(ObjectName objectName) throws Exception
  {
    String name = objectName.getKeyProperty("page");
    MBeanInfo info = _connection.getMBeanInfo(objectName);
    String title = null;
    String menuTitle = null;
    for (int i = 0; i < info.getAttributes().length; i++)
    {
      MBeanAttributeInfo attr = info.getAttributes()[i];
      if ("Title".equals(attr.getName()) && attr.isReadable())
        title = (String) _connection.getAttribute(objectName, attr.getName());
      if ("MenuTitle".equals(attr.getName()) && attr.isReadable())
        menuTitle = (String) _connection.getAttribute(objectName, attr.getName());
View Full Code Here

    return page;
  }
 
  private void addDynamicSubPages(ObjectName objectName, PageImpl page) throws Exception
  {
    MBeanInfo info = _connection.getMBeanInfo(objectName);

    for (int i = 0; i < info.getAttributes().length; i++)
    {
      MBeanAttributeInfo attr = info.getAttributes()[i];
      if ("SubPages".equals(attr.getName()) && attr.isReadable())
      {
        ObjectName[] subPages = (ObjectName[]) _connection.getAttribute(objectName, attr.getName());
        if (subPages != null)
        {
View Full Code Here

  }

  @Override
  public MBeanInfo getMBeanInfo()
  {
    MBeanInfo mBeanInfo = super.getMBeanInfo();
    MBeanNotificationInfo[] notifications = getNb().getNotificationInfo() ;
   
    return new MBeanInfo(mBeanInfo.getClassName(),
        mBeanInfo.getDescription(), mBeanInfo.getAttributes(),
        mBeanInfo.getConstructors(), mBeanInfo.getOperations(),
        notifications);
  }
View Full Code Here

TOP

Related Classes of javax.management.MBeanInfo

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.