Examples of monitor()


Examples of org.apache.s4.comm.file.StaticProcessMonitor.monitor()

        String address = null;
        address = "localhost:2181";
        StaticProcessMonitor monitor = new StaticProcessMonitor(address,
                                                                "taskmanagerTest",
                                                                ClusterType.S4);
        monitor.monitor();
        System.out.println(monitor.getDestinationList());
        System.out.println(monitor.getDestinationMap());
    }

    private static void testZkProcessMonitor(String[] args) {
View Full Code Here

Examples of org.jboss.forge.addon.maven.resources.MavenModelResource.monitor()

      {
         MavenModelResource pom = getModelResource();
         if (!pom.createNewFile())
            throw new IllegalStateException("Could not create POM file.");
         pom.setContents(createDefaultPOM());
         monitor = pom.monitor();
         listenerRegistration = monitor.addResourceListener(new ResourceListener()
         {
            @Override
            public void processEvent(ResourceEvent event)
            {
View Full Code Here

Examples of org.jboss.forge.addon.maven.resources.MavenPomResource.monitor()

      {
         MavenPomResource pom = getPomResource();
         if (!pom.createNewFile())
            throw new IllegalStateException("Could not create POM file.");
         pom.setContents(createDefaultPOM());
         monitor = pom.monitor();
         listenerRegistration = monitor.addResourceListener(new ResourceListener()
         {
            @Override
            public void processEvent(ResourceEvent event)
            {
View Full Code Here

Examples of org.jboss.forge.addon.resource.DirectoryResource.monitor()

      }
      // If under a transaction, don't start monitoring
      DirectoryResource rootDirectory = project.getRoot().reify(DirectoryResource.class);
      if (rootDirectory != null && rootDirectory.getUnderlyingResourceObject().exists())
      {
         final ResourceMonitor monitor = rootDirectory.monitor();
         ListenerRegistration<ResourceListener> registration = monitor.addResourceListener(new ResourceListener()
         {
            @Override
            public void processEvent(ResourceEvent event)
            {
View Full Code Here

Examples of org.jboss.forge.addon.resource.DirectoryResource.monitor()

      }
      // If under a transaction, don't start monitoring
      DirectoryResource rootDirectory = project.getRootDirectory();
      if (rootDirectory.getUnderlyingResourceObject().exists())
      {
         final ResourceMonitor monitor = rootDirectory.monitor();
         ListenerRegistration<ResourceListener> registration = monitor.addResourceListener(new ResourceListener()
         {
            @Override
            public void processEvent(ResourceEvent event)
            {
View Full Code Here

Examples of org.jboss.test.cluster.ejb3.stateful.nested.base.std.NestedBeanMonitor.monitor()

     
      // Reset the parent to initialize all the beans
      parent.reset();
     
      // Monitor the parent
      monitor.monitor(parent);
     
      // Reset the parent to clean things up
      parent.reset();
      parentInv++;
      nestedInv++;
View Full Code Here

Examples of org.jboss.test.cluster.ejb3.stateful.nested.base.std.NestedBeanMonitor.monitor()

     
      // Reset the parent to initialize all the beans
      parent.reset();
     
      // Monitor the parent
      monitor.monitor(parent);
     
      // Reset the parent to clean things up
      parent.reset();
      parentInv++;
      nestedInv++;
View Full Code Here

Examples of org.jboss.test.cluster.ejb3.stateful.nested.base.xpc.NestedXPCMonitor.monitor()

     
      // Reset the parent to initialize all the beans
      cart.reset();
     
      // Monitor the parent
      monitor.monitor(cart);
     
      // Reset the parent to clean things up
      cart.reset();
     
      BeanSet result = new BeanSet();
View Full Code Here

Examples of org.jboss.test.cluster.ejb3.stateful.nested.base.xpc.NestedXPCMonitor.monitor()

      InitialContext[] ctxs = new InitialContext[2];
      ctxs[0] = getInitialContext(1);
      ctxs[1] = getInitialContext(0);
      monitor = runner.getXPCMonitor(ctxs, newId);     
     
      monitor.monitor(parent);
     
      Assert.assertTrue("Parent and remote nested do not share ref",
                        monitor.compareTopToNested(id));
      Assert.assertTrue("Parent and local nested do share ref",
                         monitor.compareTopToLocalNested(id));
View Full Code Here

Examples of org.jboss.test.cluster.ejb3.stateful.nested.base.xpc.NestedXPCMonitor.monitor()

         ctxs[1] = ctxs[0];
         ctxs[0] = ctx;
        
         monitor = runner.getXPCMonitor(ctxs, newId);     
        
         monitor.monitor(parent);
        
         Assert.assertTrue("Parent and remote nested do not share ref",
                           monitor.compareTopToNested(id));
         Assert.assertTrue("Parent and local nested do share ref",
                            monitor.compareTopToLocalNested(id));
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.