Class MonitorsDriver

java.lang.Object
org.duracloud.account.monitor.MonitorsDriver
Direct Known Subclasses:
DuplicationMonitorDriver

public class MonitorsDriver extends Object
This class is the command-line driver for executing monitors for instance health, storage reporting, and duplication checks that are run across DuraCloud accounts managed by the Management Console that is defined by the configuration credentials.
Author:
Andrew Woods Date: 7/18/11
  • Constructor Details

    • MonitorsDriver

      public MonitorsDriver(Properties props)
  • Method Details

    • getRepoMgr

      public org.duracloud.account.db.repo.DuracloudRepoMgr getRepoMgr()
    • getGlobalConfigService

      public GlobalPropertiesConfigService getGlobalConfigService()
    • monitor

      public void monitor(MonitorsDriver.Monitor target)
      This method invokes the .run() method on the provided arg target.
      Parameters:
      target - to monitor
    • sendEmail

      protected void sendEmail(String subject, String body)
    • getProperty

      protected String getProperty(Properties props, String key)
    • main

      public static void main(String[] args)
      Main