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

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


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

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

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

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

  try {
      watchdog =
                    new WatchdogServiceImpl(serviceProps, systemRegistry, null,
              dummyShutdownCtrl);
  } finally {
            if (watchdog != null) watchdog.shutdown();
        }
    }
   
    @Test(expected = NullPointerException.class)
    public void testConstructorNullShutdownCtrl() throws Exception {
View Full Code Here

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

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

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

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

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

    @Test(expected = IllegalArgumentException.class)
    public void testConstructorStartServerRenewIntervalTooSmall()
View Full Code Here

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

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

  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

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.