- 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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMonitorsDriver.MonitorThis enum defines the types of monitors available through this driver.
-
Constructor Summary
Constructors Constructor Description MonitorsDriver(Properties props)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.duracloud.account.db.util.GlobalPropertiesConfigServicegetGlobalConfigService()protected StringgetProperty(Properties props, String key)org.duracloud.account.db.repo.DuracloudRepoMgrgetRepoMgr()static voidmain(String[] args)Mainvoidmonitor(MonitorsDriver.Monitor target)This method invokes the .run() method on the provided arg target.protected voidsendEmail(String subject, String body)
-
-
-
Constructor Detail
-
MonitorsDriver
public MonitorsDriver(Properties props)
-
-
Method Detail
-
getRepoMgr
public org.duracloud.account.db.repo.DuracloudRepoMgr getRepoMgr()
-
getGlobalConfigService
public org.duracloud.account.db.util.GlobalPropertiesConfigService getGlobalConfigService()
-
monitor
public void monitor(MonitorsDriver.Monitor target)
This method invokes the .run() method on the provided arg target.- Parameters:
target- to monitor
-
getProperty
protected String getProperty(Properties props, String key)
-
main
public static void main(String[] args)
Main
-
-