Package com.sun.sgs.test.util

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


                        dataService.getServiceBinding(name);
                        fail("Expected NameNotBoundException");
                    } catch (NameNotBoundException nnbe) {}
                }
        }, taskOwner);
        node2.shutdown(false);
    }

    @Test
    public void testRunImmediateWithNewIdentity() throws Exception {
        txnScheduler.runTask(
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

    "com.sun.sgs.impl.service.watchdog.server.port",
    String.valueOf(SgsTestNode.getNextUniquePort()));
            node1 = new SgsTestNode(appName, null, null, props, false);
        } finally {
            if (node1 != null) {
                node1.shutdown(false);
            }
            if (node != null) {
                node.shutdown(true);
            }
        }
View Full Code Here

        // issue a shutdown; this shutdown runs in a seperate thread
        appNode.getWatchdogService().reportFailure(appNode.getNodeId(),
                appNode.getClass().getName());
        // issue another shutdown; set clean = false since we do not want this
        // test case to fail due to an error trying to delete a missing file
        appNode.shutdown(false);
    }
   
    /**
     * Check if a node shutdown can be issued from a component successfully
     */
 
View Full Code Here

            if (!(target instanceof BindException)) {
                fail("Expected BindException, got " + target);
            }
        } finally {
            if (node != null) {
                node.shutdown(false);
            }
        }
    }

    /** Test creating two single nodes at the same host and port  */
 
View Full Code Here

        } finally {
            if (node != null) {
                node.shutdown(true);
            }
            if (node1 != null) {
                node1.shutdown(true);
            }
        }
    }

    /** Test that an application node can be restarted on the same host
View Full Code Here

        } finally {
            if (node != null) {
                node.shutdown(false);
            }
            if (node1 != null) {
                node1.shutdown(false);
            }
        }
    }      
   
    /** Check that we can restart a single node system on the same
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.