Examples of startMonitoring()


Examples of net.sf.katta.node.monitor.JmxMonitor.startMonitoring()

  @Test
  public void testGetCpu() throws Exception {
    JmxMonitor monitor = new JmxMonitor();
    String nodeId = "someId";
    InteractionProtocol protocol = mock(InteractionProtocol.class);
    monitor.startMonitoring(nodeId, protocol);
    Thread.sleep(1200);
    verify(protocol, atLeastOnce()).setMetric(eq(nodeId), (MetricsRecord) anyObject());
  }
}
View Full Code Here

Examples of org.apache.airavata.ws.monitor.Monitor.startMonitoring()

                            }
                        }
                        log.info("No of events: " + eventDataRepo.getEvents().size());
                    }
                });
        experimentMonitor.startMonitoring();
        experimentMonitor.waitForCompletion();
    }

}
View Full Code Here

Examples of org.apache.airavata.ws.monitor.Monitor.startMonitoring()

                RunWorkflow.getGatewayName(), RunWorkflow.getUserName(), passwordCallback);
        MonitorListener monitorListener = new MonitorListener();
        Monitor experimentMonitor = airavataAPI.getExecutionManager().getExperimentMonitor(experimentId,
                monitorListener);
        log.info("Started the Workflow monitor");
        experimentMonitor.startMonitoring();
    }
}
View Full Code Here

Examples of org.apache.airavata.ws.monitor.Monitor.startMonitoring()

                            }
                        }
                        log.info("No of events: " + eventDataRepo.getEvents().size());
                    }
                });
        experimentMonitor.startMonitoring();
        experimentMonitor.waitForCompletion();
    }

}
View Full Code Here

Examples of org.apache.airavata.ws.monitor.Monitor.startMonitoring()

        if (eventData.getType()==EventType.WORKFLOW_TERMINATED){
          getMonitor().stopMonitoring();
        }
      }
    });
    experimentMonitor.startMonitoring();
    try {
      WorkflowExecutionStatus workflowInstanceStatus = getClient().getProvenanceManager().getWorkflowInstanceStatus(experimentId, experimentId);
      if (workflowInstanceStatus.getExecutionStatus()==State.FINISHED || workflowInstanceStatus.getExecutionStatus()==State.FAILED){
        experimentMonitor.stopMonitoring();
        return;
View Full Code Here

Examples of org.apache.airavata.ws.monitor.Monitor.startMonitoring()

                            }
                        }
                        log.info("No of events: " + eventDataRepo.getEvents().size());
                    }
                });
        experimentMonitor.startMonitoring();
        experimentMonitor.waitForCompletion();
    }

}
View Full Code Here

Examples of org.apache.airavata.ws.monitor.Monitor.startMonitoring()

        if (eventData.getType()==EventType.WORKFLOW_TERMINATED){
          getMonitor().stopMonitoring();
        }
      }
    });
    experimentMonitor.startMonitoring();
    try {
      WorkflowExecutionStatus workflowInstanceStatus = getClient().getProvenanceManager().getWorkflowInstanceStatus(experimentId, experimentId);
      if (workflowInstanceStatus.getExecutionStatus()==State.FINISHED || workflowInstanceStatus.getExecutionStatus()==State.FAILED){
        experimentMonitor.stopMonitoring();
        return;
View Full Code Here

Examples of org.apache.airavata.ws.monitor.Monitor.startMonitoring()

                            }
                        }
                        log.info("No of events: " + eventDataRepo.getEvents().size());
                    }
                });
        experimentMonitor.startMonitoring();
        experimentMonitor.waitForCompletion();
    }

  public void setRegistryURL(String registryURL) {
    this.registryURL = registryURL;
View Full Code Here

Examples of org.apache.airavata.ws.monitor.Monitor.startMonitoring()

                            }
                        }
                        log.info("No of events: " + eventDataRepo.getEvents().size());
                    }
                });
        experimentMonitor.startMonitoring();
        experimentMonitor.waitForCompletion();
    }

  public void setRegistryURL(String registryURL) {
    this.registryURL = registryURL;
View Full Code Here

Examples of org.apache.airavata.ws.monitor.Monitor.startMonitoring()

        if (eventData.getType()==EventType.WORKFLOW_TERMINATED){
          getMonitor().stopMonitoring();
        }
      }
    });
    experimentMonitor.startMonitoring();
    try {
      WorkflowExecutionStatus workflowInstanceStatus = getClient().getProvenanceManager().getWorkflowInstanceStatus(experimentId, experimentId);
      if (workflowInstanceStatus.getExecutionStatus()==State.FINISHED || workflowInstanceStatus.getExecutionStatus()==State.FAILED){
        experimentMonitor.stopMonitoring();
        return;
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.