Package com.sun.sgs.service

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


  DataService dataService = createDataService(serviceProps);
  WatchdogServiceImpl watchdog = new WatchdogServiceImpl(
      serviceProps, systemRegistry, txnProxy, dummyShutdownCtrl);
  watchdog.shutdown();
  watchdog.addRecoveryListener(new DummyRecoveryListener());
  dataService.shutdown();
    }

    @Test(expected = NullPointerException.class)
    public void testAddRecoveryListenerNullListener() throws Exception {
  watchdogService.addRecoveryListener(null);
View Full Code Here


           
  // The shutdown controller should be incremented as a result of the
  // failure being reported
  assertEquals(1, dummyShutdownCtrl.getShutdownCount());
  watchdogService.shutdown();
  dataService.shutdown();
    }

    /**
     * Check that a node can shutdown and report a failure when it detects
     * that the renew process from the watchdog service fails
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.