Package com.sun.sgs.service.Node

Examples of com.sun.sgs.service.Node.Health


                             final Health expected)
        throws Exception
    {
        txnScheduler.runTask(new TestAbstractKernelRunnable() {
            public void run() throws Exception {
                Health health = watchdog.getLocalNodeHealth();

                if (health == null) {
                    fail("Expected WatchdogService.getLocalNodeHealth() " +
                          "to return non-null health");
                }
                if (!health.equals(expected)) {
                    fail("Expected WatchdogService.getLocalNodeHealth() " +
                          "to return: " + expected +
                          ", instead received: " + health);
                }
            }
View Full Code Here


                             final Health expected)
        throws Exception
    {
        txnScheduler.runTask(new TestAbstractKernelRunnable() {
            public void run() throws Exception {
                Health health = watchdog.getLocalNodeHealth();

                if (health == null) {
                    fail("Expected WatchdogService.getLocalNodeHealth() " +
                          "to return non-null health");
                }
                if (!health.equals(expected)) {
                    fail("Expected WatchdogService.getLocalNodeHealth() " +
                          "to return: " + expected +
                          ", instead received: " + health);
                }
            }
View Full Code Here

TOP

Related Classes of com.sun.sgs.service.Node.Health

Copyright © 2018 www.massapicom. 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.