Package org.ngrinder.perftest.service.monitor

Examples of org.ngrinder.perftest.service.monitor.MonitorClientService


  @Test
  public void testGetProperSizedStatusString() {
    File tempRepo = new File(System.getProperty("java.io.tmpdir"), "test-repo");
    tempRepo.mkdir();
    tempRepo.deleteOnExit();
    MonitorClientService client = new MonitorClientService("127.0.0.1", 13243);
    client.init();
    Map<String, SystemDataModel> rtnMap = new HashMap<String, SystemDataModel>();

    Random random = new Random();
    for (int i = 0; i < 80; i++) {
      client.update();
      SystemInfo info = client.getSystemInfo();
      if (info == null) {
        return;
      }
      info.setCustomValues(random.nextInt() + "," + random.nextInt());
      SystemDataModel data1 = new SystemDataModel(info, "3.1.2");
View Full Code Here


    for (final String target : targetHostIP) {
      scheduledTaskService.runAsync(new Runnable() {
        @Override
        public void run() {
          LOGGER.info("Start JVM monitoring for IP:{}", target);
          MonitorClientService client = new MonitorClientService(target, MonitorCollectorPlugin.this.port);
          client.init();
          if (client.isConnected()) {
            File testReportDir = singleConsole.getReportPath();
            File dataFile = null;
            try {
              dataFile = new File(testReportDir, MONITOR_FILE_PREFIX + target + ".data");
              FileWriter fileWriter = new FileWriter(dataFile, false);
View Full Code Here

TOP

Related Classes of org.ngrinder.perftest.service.monitor.MonitorClientService

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.