Examples of HealthMonitor


Examples of com.hazelcast.util.HealthMonitor

        HealthMonitorLevel healthLevel = HealthMonitorLevel.valueOf(node.getGroupProperties().HEALTH_MONITORING_LEVEL.getString());
        if(healthLevel!=HealthMonitorLevel.OFF){
            logger.finest("Starting health monitor");
            int delaySeconds = node.getGroupProperties().HEALTH_MONITORING_DELAY_SECONDS.getInteger();
            new HealthMonitor(this,healthLevel,delaySeconds).start();
        }
    }
View Full Code Here

Examples of com.hazelcast.util.HealthMonitor

        String healthMonitorLevelString = node.getGroupProperties().HEALTH_MONITORING_LEVEL.getString();
        HealthMonitorLevel healthLevel = HealthMonitorLevel.valueOf(healthMonitorLevelString);
        if (healthLevel != HealthMonitorLevel.OFF) {
            logger.finest("Starting health monitor");
            int delaySeconds = node.getGroupProperties().HEALTH_MONITORING_DELAY_SECONDS.getInteger();
            new HealthMonitor(this, healthLevel, delaySeconds).start();
        }
    }
View Full Code Here

Examples of com.hazelcast.util.HealthMonitor

        String healthMonitorLevelString = node.getGroupProperties().HEALTH_MONITORING_LEVEL.getString();
        HealthMonitorLevel healthLevel = HealthMonitorLevel.valueOf(healthMonitorLevelString);
        if (healthLevel != HealthMonitorLevel.OFF) {
            logger.finest("Starting health monitor");
            int delaySeconds = node.getGroupProperties().HEALTH_MONITORING_DELAY_SECONDS.getInteger();
            new HealthMonitor(this, healthLevel, delaySeconds).start();
        }
    }
View Full Code Here

Examples of org.apache.oodt.pcs.webcomponents.health.HealthMonitor

    String fmUrlStr = app.getFmUrlStr();
    String wmUrlStr = app.getWmUrlStr();
    String rmUrlStr = app.getRmUrlStr();
    String crawlerConfFilePath = app.getCrawlerConfFilePath();
    String statesFilePath = app.getStatesFilePath();
    add(new HealthMonitor("health_monitor", fmUrlStr, wmUrlStr, rmUrlStr,
        crawlerConfFilePath, statesFilePath, ProductBrowserPage.class,
        WorkflowInstanceViewerPage.class));
  }
View Full Code Here

Examples of org.jclouds.rackspace.cloudloadbalancers.v1.domain.HealthMonitor

   public void testCreateAndGetHealthMonitor() throws Exception {
      api.getHealthMonitorApiForZoneAndLoadBalancer(zone, lb.getId()).createOrUpdate(
            HealthMonitorApiExpectTest.getConnectHealthMonitor());
      assertTrue(awaitAvailable(api.getLoadBalancerApiForZone(zone)).apply(lb));
     
      HealthMonitor healthMonitor =
            api.getHealthMonitorApiForZoneAndLoadBalancer(zone, lb.getId()).get();

      assertEquals(healthMonitor, HealthMonitorApiExpectTest.getConnectHealthMonitor());
   }
View Full Code Here

Examples of org.jclouds.rackspace.cloudloadbalancers.v1.domain.HealthMonitor

   @Test(dependsOnMethods = "testCreateAndGetHealthMonitor")
   public void testRemoveAndGetHealthMonitor() throws Exception {
      assertTrue(api.getHealthMonitorApiForZoneAndLoadBalancer(zone, lb.getId()).delete());
      assertTrue(awaitAvailable(api.getLoadBalancerApiForZone(zone)).apply(lb));
     
      HealthMonitor healthMonitor =
            api.getHealthMonitorApiForZoneAndLoadBalancer(zone, lb.getId()).get();
     
      assertNull(healthMonitor);
   }
View Full Code Here

Examples of org.jclouds.rackspace.cloudloadbalancers.v1.domain.HealthMonitor

            responseWithAccess,
            authenticatedGET().endpoint(endpoint).build(),
            HttpResponse.builder().statusCode(OK.getStatusCode()).payload(payloadFromResource("/healthmonitor-get.json")).build()
      ).getHealthMonitorApiForZoneAndLoadBalancer("DFW", 2000);

      HealthMonitor healthMonitor = api.get();
      assertEquals(healthMonitor, getConnectHealthMonitor());
   }
View Full Code Here

Examples of org.jclouds.rackspace.cloudloadbalancers.v1.domain.HealthMonitor

            responseWithAccess,
            authenticatedGET().endpoint(endpoint).build(),
            HttpResponse.builder().statusCode(OK.getStatusCode()).payload(payloadFromResource("/healthmonitor-get-deleted.json")).build()
      ).getHealthMonitorApiForZoneAndLoadBalancer("DFW", 2000);

      HealthMonitor healthMonitor = api.get();
      assertNull(healthMonitor);
   }
View Full Code Here

Examples of org.jclouds.rackspace.cloudloadbalancers.v1.domain.HealthMonitor

      .path("/foobar")
      .build();
   }

   public static HealthMonitor getConnectHealthMonitor() {
      HealthMonitor healthMonitor = HealthMonitor.builder()
            .type(HealthMonitor.Type.CONNECT)
            .delay(3599)
            .timeout(30)
            .attemptsBeforeDeactivation(2)
            .build();
View Full Code Here

Examples of org.jclouds.rackspace.cloudloadbalancers.v1.domain.HealthMonitor

      return healthMonitor;
   }

   public static HealthMonitor getHTTPHealthMonitor() {
      HealthMonitor healthMonitor = HealthMonitor.builder()
            .type(HealthMonitor.Type.HTTP)
            .delay(3599)
            .timeout(30)
            .attemptsBeforeDeactivation(2)
            .path("/foobar")
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.