Examples of shutdown()


Examples of com.sun.sgs.impl.service.nodemap.affinity.dlpa.LabelPropagationServer.shutdown()

        for (int i = 0; i < WARMUP_RUNS; i++) {
            Set<RelocatingAffinityGroup> groups = server.findAffinityGroups();
        }
        if (server != null) {
            server.shutdown();
        }
    }

    @Test
    public void testDistZach() throws Exception {
View Full Code Here

Examples of com.sun.sgs.impl.service.nodemap.affinity.single.SingleLabelPropagation.shutdown()

           new SingleLabelPropagation(new ZachBuilder(), collector, props);

        for (int i = 0; i < WARMUP_RUNS; i++) {
            lpa.findAffinityGroups();
        }
        lpa.shutdown();
    }

    @Test
    public void testZachary() throws Exception {
        AffinityGraphBuilder builder = new ZachBuilder();
View Full Code Here

Examples of com.sun.sgs.impl.service.watchdog.WatchdogServiceImpl.shutdown()

      dataService = createDataService(serviceProps);
            watchdog = new WatchdogServiceImpl(
    serviceProps, systemRegistry, txnProxy, dummyShutdownCtrl)
        } finally {
      if (dataService != null) dataService.shutdown();
            if (watchdog != null) watchdog.shutdown();
        }
    }

    @Test(expected = NullPointerException.class)
    public void testConstructorNullProperties() throws Exception {
View Full Code Here

Examples of com.sun.sgs.nio.channels.AsynchronousChannelGroup.shutdown()

                ops,
                TimeUnit.NANOSECONDS.toSeconds(elapsed),
                TimeUnit.SECONDS.toNanos(ops) / elapsed
            );

        group.shutdown();
        log.info("Awaiting group termination");       
        if (! group.awaitTermination(5, TimeUnit.SECONDS)) {
            log.warning("Forcing group termination");
            group.shutdownNow();
            if (! group.awaitTermination(5, TimeUnit.SECONDS)) {
View Full Code Here

Examples of com.sun.sgs.service.DataService.shutdown()

        try {
      dataService = createDataService(serviceProps);
            watchdog = new WatchdogServiceImpl(
    serviceProps, systemRegistry, txnProxy, dummyShutdownCtrl)
        } finally {
      if (dataService != null) dataService.shutdown();
            if (watchdog != null) watchdog.shutdown();
        }
    }

    @Test(expected = NullPointerException.class)
View Full Code Here

Examples of com.sun.sgs.service.Node.shutdown()

            }, taskOwner);
        }
        // shutdown nodes...
  if (additionalNodes != null) {
            for (SgsTestNode node : additionalNodes) {
                node.shutdown(false);
            }
            additionalNodes = null;
        }

  // wait for all nodes to fail...
View Full Code Here

Examples of com.sun.sgs.service.NodeMappingService.shutdown()

            listener.waitForNotification();
           
            // no old node
            checkIdAdded(listener, id, null);
        } finally {
            if (nodemap != null) { nodemap.shutdown(); }
        }
    }
   
    /* -- Test Service -- */
    @Test
View Full Code Here

Examples of com.sun.sgs.service.store.DataStore.shutdown()

        }
        Properties props = createProperties(
            StandardProperties.APP_NAME, "Foo",
            StandardProperties.APP_ROOT, rootDir);
        DataStore testStore = createDataStore(props);
        testStore.shutdown();
    }

    @Test
    public void testConstructorNoDirectoryNorRoot() throws Exception {
  Properties props = new Properties();
View Full Code Here

Examples of com.sun.sgs.test.util.SgsTestNode.shutdown()

            }
            if (node2 != null) {
                node2.shutdown(false);
            }
            if (node3 != null) {
                node3.shutdown(false);
            }
        }
    }

View Full Code Here

Examples of com.taobao.metamorphosis.client.MessageSessionFactory.shutdown()

            Message msg = it.next();
            System.out.println("message body:" + new String(msg.getData()));
        }

        browser.shutdown();
        sessionFactory.shutdown();
    }
}
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.