Package com.sun.sgs.test.util

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


    public void testNullCoordinator() throws Exception {
  properties.setProperty(ACCESS_COORDINATOR_PROPERTY,
             NullAccessCoordinator.class.getName());
  SgsTestNode node = new SgsTestNode(
      "TestKernelSetAccessCoordinator", null, properties);
  node.shutdown(false);
    }

    @Test
    public void testLockingAccessCoordinator() throws Exception {
  properties.setProperty(ACCESS_COORDINATOR_PROPERTY,
View Full Code Here

    public void testLockingAccessCoordinator() throws Exception {
  properties.setProperty(ACCESS_COORDINATOR_PROPERTY,
             LockingAccessCoordinator.class.getName());
  SgsTestNode node = new SgsTestNode(
      "TestKernelSetAccessCoordinator", null, properties);
  node.shutdown(false);
    }

    @Test
    public void testMyAccessCoordinator() throws Exception {
  properties.setProperty(ACCESS_COORDINATOR_PROPERTY,
View Full Code Here

    public void run() throws Exception {
        dataService.setBinding("a", new DummyManagedObject());
    }
      }, taskOwner);
  assertTrue(MyAccessCoordinator.getUsed());
  node.shutdown(false);
    }

    /* -- Other classes and methods -- */

    public abstract static class AbstractCoordinator
View Full Code Here

            } else {
                throw e;
            }
        } finally {
            if (newNode != null) {
                newNode.shutdown(false);
            }
        }
    }
}
View Full Code Here

  checkBindings(1);
  try {
      // Shutdown new node, and wait before checking if
      // session's persistent data has been cleaned up.
      SgsTestNode newNode = additionalNodes.get(newNodeHost);
      newNode.shutdown(false);
      Thread.sleep(WAIT_TIME);
      checkBindings(0);
      client.assertDisconnectedCallbackInvoked(false);
  } finally {
      client.disconnect();
View Full Code Here

            // and no notifications for failed nodes
            assertNull(listener.notificationMap.get(
                                NodesMXBean.NODE_FAILED_NOTIFICATION));
        } finally {
            if (node3 != null) {
                node3.shutdown(false);
            }
            // Shutdown takes a little while...need to detect that the
            // node is gone
            int renewTime = Integer.valueOf(serverNode.getServiceProperties().
                getProperty(
View Full Code Here

      joinUsers(channelName, someUsers);
      checkUsersJoined(channelName, someUsers);
      holdChannelServerMethodToNode(serverNode, "close");
      leaveAll(channelName);
      waitForHeldChannelServerMethodToNode(serverNode);
      coordinatorNode.shutdown(false);
      Thread.sleep(2000);
      checkUsersJoined(channelName, noUsers);
      for (DummyClient client : group.getClients()) {
    client.assertLeftChannel(channelName);
      }
View Full Code Here

        SgsTestNode node = null;
        try {
            node = new SgsTestNode("TestStartupContext", null, properties);
        } finally {
            if (node != null) {
                node.shutdown(false);
            }
        }
    }
   
    /**
 
View Full Code Here

                finderField.get(newNode.getNodeMappingService());
            Assert.assertNull(newDriver.getGraphBuilder());
            Assert.assertNull(newDriver.getGraphListener());
        } finally {
            if (newNode != null) {
                newNode.shutdown(false);
            }
        }
    }

    @Test
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.