Examples of CollectorHandler


Examples of org.apache.hama.monitor.Federator.CollectorHandler

          .groomServerStatusKeySet()) {
        final String groom = status.getGroomName();
        final String jvmPath = Monitor.MONITOR_ROOT_PATH + groom
            + "/metrics/jvm";
        final Act act = new Act(new ZKCollector(zk, "jvm", "Jvm metrics.",
            jvmPath), new CollectorHandler() {
          @Override
          public void handle(@SuppressWarnings("rawtypes") Future future) {
            try {
              MetricsRecord record = (MetricsRecord) future.get();
              if (null != record) {
View Full Code Here

Examples of org.apache.hama.monitor.Federator.CollectorHandler

          .groomServerStatusKeySet()) {
        final String groom = status.getGroomName();
        final String jvmPath = Monitor.MONITOR_ROOT_PATH + groom
            + "/metrics/jvm";
        final Act act = new Act(new ZKCollector(zk, "jvm", "Jvm metrics.",
            jvmPath), new CollectorHandler() {
          @Override
          public void handle(@SuppressWarnings("rawtypes")
          Future future) {
            try {
              MetricsRecord record = (MetricsRecord) future.get();
View Full Code Here

Examples of org.apache.hama.monitor.Federator.CollectorHandler

  public void testExecutionFlow() throws Exception {
    LOG.info("Value before submitted: " + expected);
    final AtomicInteger finalResult = new AtomicInteger(0);
    final Act act = new Act(new DummyCollector(expected),
        new CollectorHandler() {
          @Override
          public void handle(@SuppressWarnings("rawtypes")
          Future future) {
            try {
              finalResult.set(((Integer) future.get()).intValue());
View Full Code Here

Examples of org.apache.hama.monitor.Federator.CollectorHandler

  public void testExecutionFlow() throws Exception {
    LOG.info("Value before submitted: " + expected);
    final AtomicInteger finalResult = new AtomicInteger(0);
    final Act act = new Act(new DummyCollector(expected),
        new CollectorHandler() {
          @Override
          public void handle(@SuppressWarnings("rawtypes") Future future) {
            try {
              finalResult.set(((Integer) future.get()).intValue());
              LOG.info("Value after submitted: " + finalResult);
View Full Code Here

Examples of org.apache.hama.monitor.Federator.CollectorHandler

          .groomServerStatusKeySet()) {
        final String groom = status.getGroomName();
        final String jvmPath = Monitor.MONITOR_ROOT_PATH + groom
            + "/metrics/jvm";
        final Act act = new Act(new ZKCollector(zk, "jvm", "Jvm metrics.",
            jvmPath), new CollectorHandler() {
          @Override
          public void handle(@SuppressWarnings("rawtypes") Future future) {
            try {
              MetricsRecord record = (MetricsRecord) future.get();
              if (null != record) {
View Full Code Here

Examples of org.apache.hama.monitor.Federator.CollectorHandler

          .groomServerStatusKeySet()) {
        final String groom = status.getGroomName();
        final String jvmPath = Monitor.MONITOR_ROOT_PATH + groom
            + "/metrics/jvm";
        final Act act = new Act(new ZKCollector(zk, "jvm", "Jvm metrics.",
            jvmPath), new CollectorHandler() {
          @Override
          public void handle(@SuppressWarnings("rawtypes")
          Future future) {
            try {
              MetricsRecord record = (MetricsRecord) future.get();
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.