test_class.declarator: executor
test_class.original_string: TestExecutor executor;
test_class.type: TestExecutor
test_class.var_name: executor
test_class.file: agent/core/src/test/java/org/jolokia/backend/executor/AbstractMBeanServerExecutorTest.java
test_class.identifier: AbstractMBeanServerExecutorTest
test_case.body: @Test
      public void eachObjectName() throws MalformedObjectNameException, MBeanException, IOException, ReflectionException, NotCompliantMBeanException, InstanceAlreadyExistsException {
          for (final ObjectName name : new ObjectName[] { new ObjectName("test:type=one"), new ObjectName("test:type=two") }) {
              executor.each(name,new MBeanServerExecutor.MBeanEachCallback() {
                  public void callback(MBeanServerConnection pConn, ObjectName pName) throws ReflectionException, InstanceNotFoundException, IOException, MBeanException {
                  assertEquals(pName,name);
                      checkHiddenMBeans(pConn,pName);
                  }
              });
          }
      }
test_case.class_method_signature: AbstractMBeanServerExecutorTest.eachObjectName()
test_case.full_signature: @Test public void eachObjectName()
test_case.identifier: eachObjectName
test_case.invocations: each assertEquals checkHiddenMBeans
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void eachObjectName()
focal_class.declarator: lastMBeanRegistrationChange
focal_class.modifier: private
focal_class.original_string: private long lastMBeanRegistrationChange;
focal_class.type: long
focal_class.var_name: lastMBeanRegistrationChange
focal_class.file: agent/core/src/main/java/org/jolokia/backend/executor/AbstractMBeanServerExecutor.java
focal_class.identifier: AbstractMBeanServerExecutor
focal_class.interfaces: implements MBeanServerExecutor, NotificationListener
focal_class.class_method_signature: AbstractMBeanServerExecutor.getMBeanServers()
focal_class.full_signature: protected abstract Set<MBeanServerConnection> getMBeanServers()
focal_class.identifier: getMBeanServers
focal_class.modifiers: protected abstract
focal_class.parameters: ()
focal_class.return: Set<MBeanServerConnection>
focal_class.signature: Set<MBeanServerConnection> getMBeanServers()
focal_class.class_method_signature: AbstractMBeanServerExecutor.getJolokiaMBeanServer()
focal_class.full_signature: protected MBeanServerConnection getJolokiaMBeanServer()
focal_class.identifier: getJolokiaMBeanServer
focal_class.modifiers: protected
focal_class.parameters: ()
focal_class.return: MBeanServerConnection
focal_class.signature: MBeanServerConnection getJolokiaMBeanServer()
focal_class.class_method_signature: AbstractMBeanServerExecutor.each(ObjectName pObjectName, MBeanEachCallback pCallback)
focal_class.full_signature: public void each(ObjectName pObjectName, MBeanEachCallback pCallback)
focal_class.identifier: each
focal_class.modifiers: public
focal_class.parameters: (ObjectName pObjectName, MBeanEachCallback pCallback)
focal_class.return: void
focal_class.signature: void each(ObjectName pObjectName, MBeanEachCallback pCallback)
focal_class.class_method_signature: AbstractMBeanServerExecutor.call(ObjectName pObjectName, MBeanAction<T> pMBeanAction, Object ... pExtraArgs)
focal_class.full_signature: public T call(ObjectName pObjectName, MBeanAction<T> pMBeanAction, Object ... pExtraArgs)
focal_class.identifier: call
focal_class.modifiers: public
focal_class.parameters: (ObjectName pObjectName, MBeanAction<T> pMBeanAction, Object ... pExtraArgs)
focal_class.return: T
focal_class.signature: T call(ObjectName pObjectName, MBeanAction<T> pMBeanAction, Object ... pExtraArgs)
focal_class.class_method_signature: AbstractMBeanServerExecutor.queryNames(ObjectName pObjectName)
focal_class.full_signature: public Set<ObjectName> queryNames(ObjectName pObjectName)
focal_class.identifier: queryNames
focal_class.modifiers: public
focal_class.parameters: (ObjectName pObjectName)
focal_class.return: Set<ObjectName>
focal_class.signature: Set<ObjectName> queryNames(ObjectName pObjectName)
focal_class.class_method_signature: AbstractMBeanServerExecutor.registerForMBeanNotifications()
focal_class.full_signature: protected void registerForMBeanNotifications()
focal_class.identifier: registerForMBeanNotifications
focal_class.modifiers: protected
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void registerForMBeanNotifications()
focal_class.class_method_signature: AbstractMBeanServerExecutor.unregisterFromMBeanNotifications()
focal_class.full_signature: public void unregisterFromMBeanNotifications()
focal_class.identifier: unregisterFromMBeanNotifications
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void unregisterFromMBeanNotifications()
focal_class.class_method_signature: AbstractMBeanServerExecutor.handleNotification(Notification pNotification, Object pHandback)
focal_class.full_signature: public void handleNotification(Notification pNotification, Object pHandback)
focal_class.identifier: handleNotification
focal_class.modifiers: public
focal_class.parameters: (Notification pNotification, Object pHandback)
focal_class.return: void
focal_class.signature: void handleNotification(Notification pNotification, Object pHandback)
focal_class.class_method_signature: AbstractMBeanServerExecutor.hasMBeansListChangedSince(long pTimestamp)
focal_class.full_signature: public boolean hasMBeansListChangedSince(long pTimestamp)
focal_class.identifier: hasMBeansListChangedSince
focal_class.modifiers: public
focal_class.parameters: (long pTimestamp)
focal_class.return: boolean
focal_class.signature: boolean hasMBeansListChangedSince(long pTimestamp)
focal_class.class_method_signature: AbstractMBeanServerExecutor.updateErrorMsg(StringBuilder pErrors, Exception exp)
focal_class.full_signature: private Exception updateErrorMsg(StringBuilder pErrors, Exception exp)
focal_class.identifier: updateErrorMsg
focal_class.modifiers: private
focal_class.parameters: (StringBuilder pErrors, Exception exp)
focal_class.return: Exception
focal_class.signature: Exception updateErrorMsg(StringBuilder pErrors, Exception exp)
focal_method.body: public void each(ObjectName pObjectName, MBeanEachCallback pCallback) throws IOException, ReflectionException, MBeanException {
          try {
              Set<ObjectName> visited = new HashSet<ObjectName>();
              for (MBeanServerConnection server : getMBeanServers()) {
                  // Query for a full name is the same as a direct lookup
                  for (ObjectName nameObject : server.queryNames(pObjectName, null)) {
                      // Don't add if already visited previously
                      if (!visited.contains(nameObject)) {
                          pCallback.callback(server, nameObject);
                          visited.add(nameObject);
                      }
                  }
              }
          } catch (InstanceNotFoundException exp) {
              // Well, should not happen, since we do a query before and the returned value are supposed to exist
              // on the mbean-server. But, who knows ...
              throw new IllegalArgumentException("Cannot find MBean " +
                                                 (pObjectName != null ? "(MBean " + pObjectName + ")" : "") + ": " + exp,exp);
          }
      }
focal_method.class_method_signature: AbstractMBeanServerExecutor.each(ObjectName pObjectName, MBeanEachCallback pCallback)
focal_method.full_signature: public void each(ObjectName pObjectName, MBeanEachCallback pCallback)
focal_method.identifier: each
focal_method.invocations: getMBeanServers queryNames contains callback add
focal_method.modifiers: public
focal_method.parameters: (ObjectName pObjectName, MBeanEachCallback pCallback)
focal_method.return: void
focal_method.signature: void each(ObjectName pObjectName, MBeanEachCallback pCallback)