Examples of queryNames()


Examples of javax.management.j2ee.Management.queryNames()

      getLog().debug("+++ testJTAResource");
      Management jsr77MEJB = getManagementEJB();
      String domainName = jsr77MEJB.getDefaultDomain();
      ObjectName queryName = new ObjectName(domainName + ":" +
         J2EEManagedObject.TYPE + "=" + J2EETypeConstants.JTAResource + "," + "*");
      Set names = jsr77MEJB.queryNames(queryName, null);
      if (names.isEmpty())
      {
         fail("Could not find JSR-77 JTAResource '" + J2EETypeConstants.JTAResource + "'");
      }
      Iterator iter = names.iterator();
View Full Code Here

Examples of org.jboss.jmx.adaptor.rmi.RMIAdaptor.queryNames()

     
      initURLHandlers();
     
      InitialContext ctx = getInitialContext();
      RMIAdaptor rmiAdaptor = (RMIAdaptor)ctx.lookup("jmx/invoker/RMIAdaptor");
      Iterator it = rmiAdaptor.queryNames(null, null).iterator();

      while (it.hasNext())  
      {
         ObjectName objectName = (ObjectName)it.next();
         try
View Full Code Here

Examples of org.jboss.jmx.adaptor.rmi.RMIAdaptorExt.queryNames()

      Properties env = new Properties();
      env.setProperty(Context.PROVIDER_URL, jndiURL);
      InitialContext ctx = new InitialContext(env);
      RMIAdaptorExt server = (RMIAdaptorExt) ctx.lookup("jmx/invoker/RMIAdaptor");
      ObjectName all = new ObjectName("*:*");
      Set allNames = server.queryNames(all, null);
      ArrayList serverErrors = new ArrayList();
      Iterator names = allNames.iterator();
      int serviceCount = 0;
      while( names.hasNext() )
      {
View Full Code Here

Examples of org.jmanage.core.management.ServerConnection.queryNames()

    private String objectNameFilter;

    protected void drawInternal(DashboardContext context, StringBuffer output) {
  output.append("<table class=\"plaintext\" cellspacing=\"5\" style=\"border:1;border-style:solid;border-width:1px;border-color:#C0C0C0\">");
  ServerConnection connection = context.getWebContext().getServerConnection();
  Set<ObjectName> objects = connection.queryNames(objectName);
  StringTokenizer stAttributes = new StringTokenizer(attributes, "|");
  StringTokenizer stDispNames = new StringTokenizer(displayNames, "|");
  assert stAttributes.countTokens() == stDispNames.countTokens() : "Invalid component configuration";
  String[] attribs = new String[stAttributes.countTokens()];
  output.append("<tr>");
View Full Code Here

Examples of org.lilyproject.util.jmx.JmxLiaison.queryNames()

        // Using JMX, query the size of the queue of hlogs to be processed for each replication source
        JmxLiaison jmxLiaison = new JmxLiaison();
        jmxLiaison.connect(mode == Mode.EMBED);
        ObjectName replicationSources = new ObjectName("hadoop:service=Replication,name=ReplicationSource for *");
        Set<ObjectName> mbeans = jmxLiaison.queryNames(replicationSources);
        long tryUntil = System.currentTimeMillis() + timeout;
        nextMBean: for (ObjectName mbean : mbeans) {
            int logQSize = Integer.MAX_VALUE;
            while (logQSize > 0 && System.currentTimeMillis() < tryUntil) {
                logQSize = (Integer)jmxLiaison.getAttribute(mbean, "sizeOfLogQueue");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.