- java.lang.Object
-
- org.duracloud.account.monitor.common.BaseMonitor
-
- org.duracloud.account.monitor.duplication.DuplicationMonitor
-
public class DuplicationMonitor extends BaseMonitor
This class manages the actual monitoring of content duplication across DuraCloud accounts with multiple storage providers.- Author:
- Bill Branan Date: 4/16/13
-
-
Field Summary
Fields Modifier and Type Field Description static StringALL_SPACES-
Fields inherited from class org.duracloud.account.monitor.common.BaseMonitor
log
-
-
Constructor Summary
Constructors Constructor Description DuplicationMonitor(Map<String,String> dupHosts)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcompareSpaces(String primaryStoreId, DuplicationInfo info)protected voidcountSpaces(String host, DuplicationInfo info, org.duracloud.client.ContentStore store, List<String> spaces, boolean primary)protected List<org.duracloud.client.ContentStore>getSecondaryStores(org.duracloud.client.ContentStoreManager storeManager, String primaryStoreId)protected List<String>getSpaces(String host, org.duracloud.client.ContentStore store)DuplicationReportmonitorDuplication()This method performs the duplication checks.-
Methods inherited from class org.duracloud.account.monitor.common.BaseMonitor
getRootCredential
-
-
-
-
Field Detail
-
ALL_SPACES
public static final String ALL_SPACES
- See Also:
- Constant Field Values
-
-
Method Detail
-
monitorDuplication
public DuplicationReport monitorDuplication()
This method performs the duplication checks. These checks compare the number of content items in identically named spaces.- Returns:
- DuplicationReport report
-
getSecondaryStores
protected List<org.duracloud.client.ContentStore> getSecondaryStores(org.duracloud.client.ContentStoreManager storeManager, String primaryStoreId) throws org.duracloud.error.ContentStoreException
- Throws:
org.duracloud.error.ContentStoreException
-
getSpaces
protected List<String> getSpaces(String host, org.duracloud.client.ContentStore store) throws org.duracloud.error.ContentStoreException
- Throws:
org.duracloud.error.ContentStoreException
-
countSpaces
protected void countSpaces(String host, DuplicationInfo info, org.duracloud.client.ContentStore store, List<String> spaces, boolean primary)
-
compareSpaces
protected void compareSpaces(String primaryStoreId, DuplicationInfo info)
-
-