Package com.sun.sgs.impl.service.watchdog

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


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

    @Test public void testConstructedVersion() throws Exception {
  txnScheduler.runTask(new TestAbstractKernelRunnable() {
View Full Code Here


  WatchdogServiceImpl watchdog =
      new WatchdogServiceImpl(
    SgsTestNode.getDefaultProperties(
        "TestWatchdogServiceImpl", null, null),
    systemRegistry, txnProxy, dummyShutdownCtrl)
  watchdog.shutdown();
    }

    @Test(expected = IllegalStateException.class)
    public void testConstructorWithMajorVersionMismatch()
  throws Exception
View Full Code Here

                    checkHealth(watchdog, Health.RED);
                }
            }, taskOwner);

  } finally {
      watchdog.shutdown();
      dataService.shutdown();
  }
    }

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

    public void testGetLocalNodeHealthServiceShuttingDown() throws Exception {
  WatchdogServiceImpl watchdog = new WatchdogServiceImpl(
      SgsTestNode.getDefaultProperties(
    "TestWatchdogServiceImpl", null, null),
      systemRegistry, txnProxy, dummyShutdownCtrl);
  watchdog.shutdown();
  watchdog.getLocalNodeHealth();
    }

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

                    }
                }
            }, taskOwner);
     
  } finally {
      watchdog.shutdown();
      dataService.shutdown();
  }
    }

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

    public void testIsLocalNodeAliveServiceShuttingDown() throws Exception {
  WatchdogServiceImpl watchdog = new WatchdogServiceImpl(
      SgsTestNode.getDefaultProperties(
    "TestWatchdogServiceImpl", null, null),
      systemRegistry, txnProxy, dummyShutdownCtrl);
  watchdog.shutdown();
  watchdog.isLocalNodeAlive();
    }

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

         "to return false");
      }
     
  } finally {
      dataService.shutdown();
      watchdog.shutdown();
  }
    }

    @Test(expected = IllegalStateException.class)
    public void testIsLocalNodeAliveNonTransactionalServiceShuttingDown()
View Full Code Here

    {
  WatchdogServiceImpl watchdog = new WatchdogServiceImpl(
      SgsTestNode.getDefaultProperties(
    "TestWatchdogServiceImpl", null, null),
      systemRegistry, txnProxy, dummyShutdownCtrl);
  watchdog.shutdown();
  watchdog.isLocalNodeAliveNonTransactional();
    }

    @Test public void testIsLocalNodeAliveNonTransactionalNoTransaction() {
  assertTrue(watchdogService.isLocalNodeAliveNonTransactional());
View Full Code Here

    public void testGetNodesServiceShuttingDown() throws Exception {
  final WatchdogServiceImpl watchdog = new WatchdogServiceImpl(
      SgsTestNode.getDefaultProperties(
    "TestWatchdogServiceImpl", null, null),
      systemRegistry, txnProxy, dummyShutdownCtrl);
  watchdog.shutdown();

        txnScheduler.runTask(new TestAbstractKernelRunnable() {
                public void run() throws Exception {
        watchdog.getNodes();
                }
View Full Code Here

    public void testGetNodeServiceShuttingDown() throws Exception {
  final WatchdogServiceImpl watchdog = new WatchdogServiceImpl(
      SgsTestNode.getDefaultProperties(
    "TestWatchdogServiceImpl", null, null),
      systemRegistry, txnProxy, dummyShutdownCtrl);
  watchdog.shutdown();
        txnScheduler.runTask(new TestAbstractKernelRunnable() {
                public void run() throws Exception {
        watchdog.getNode(0);
                }
            }, taskOwner);
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.