Package models.monitor

Examples of models.monitor.MonitorProvider$Jsonable


 
 
  @Override
  public void doJob() throws Exception {
    models.utils.LogUtils.printLogNormal("Logging JVM Stats");
    MonitorProvider mp = MonitorProvider.getInstance();
    PerformUsage perf = mp.getJVMMemoryUsage();
   
    // get disk usage
    mp.getFreeDiskspace();
   
    log.info(perf.toString());
    if(perf.memoryUsagePercent >= THRESHOLD_PERCENT) {
      log.info("========= Live Threads List=============");
      log.info(mp.getThreadUsage().toString());
      log.info("========================================");
      log.info("========================JVM Thread Dump====================");
      ThreadInfo[] threadDump = mp.getThreadDump();
      for(ThreadInfo threadInfo : threadDump) {
        log.info(threadInfo.toString());
      }
      log.info("===========================================================");
    }
View Full Code Here


       //do stuff
      //ConfUtils.updateServerInstancePrefix();
      AgentDataProvider adp = AgentDataProvider.getInstance();
      adp.updateConfigFromAllFiles();
     
      MonitorProvider mp= MonitorProvider.getInstance();
      mp.getJVMMemoryUsage();
      mp.getFreeDiskspace();
     
    }   
View Full Code Here

   
    int totalCommandCountInAgentCommandMetadatas = adp
        .getTotalCommandCountInAgentCommandMetadatas();
   
    int runningJobCount = ActorConfig.runningJobCount.get();
    MonitorProvider mp= MonitorProvider.getInstance();
    PerformUsage performaUsage = mp.currentJvmPerformUsage;
    DiskUsage diskUsage = mp.currentDiskUsage;
     

    HashMap<String, String> metricMap = new HashMap<String, String>();
View Full Code Here

TOP

Related Classes of models.monitor.MonitorProvider$Jsonable

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.