Package de.scoopgmbh.copper.monitoring.core.model

Examples of de.scoopgmbh.copper.monitoring.core.model.MonitoringDataStorageInfo


    showMonitoringData(dashboardResultModel);
    showDataStorage(dashboardResultModel);
  }

  private void showDataStorage(DashboardResultModel dashboardResultModel) {
    MonitoringDataStorageInfo storageInfo = dashboardResultModel.monitoringDataStorageInfo;
    boolean storageChanged = true;
    if(storageChanged) {
      DecimalFormat format = new DecimalFormat("#0.000");
      double deltatInS= (storageInfo.getMax().getTime()-storageInfo.getMin().getTime())/1000;
     
      size.setText(format.format(storageInfo.getSizeInMb())+" mb ("+format.format(storageInfo.getSizeInMb()/deltatInS*1000)+" kb/s)");
      location.setText(storageInfo.getPath());
      storageContentTable.getItems().clear();
      storageContentTable.getItems().addAll(storageInfo.getMonitoringDataStorageContentInfo());
     
      typeCol.setCellValueFactory(new PropertyValueFactory<MonitoringDataStorageContentInfo,String>("type"));
      countCol.setCellValueFactory(new PropertyValueFactory<MonitoringDataStorageContentInfo,Long>("count"));
    }
  }
View Full Code Here


          lSize += tf.limit;
        if (currentTarget != null)
          lSize += currentTarget.limit;
      }
    final double size = (lSize/1024.0d/1024.0d);
    return new MonitoringDataStorageInfo(size,targetPath.getAbsolutePath(),new ArrayList<MonitoringDataStorageContentInfo>(classToInfo.values()),getMinDate(),getMaxDate());
  }
View Full Code Here

TOP

Related Classes of de.scoopgmbh.copper.monitoring.core.model.MonitoringDataStorageInfo

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.