Module com.fasterxml.classmate
Class DuplicationMonitor
java.lang.Object
org.duracloud.account.monitor.common.BaseMonitor
org.duracloud.account.monitor.duplication.DuplicationMonitor
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
FieldsFields inherited from class org.duracloud.account.monitor.common.BaseMonitor
log -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected 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) This method performs the duplication checks.Methods inherited from class org.duracloud.account.monitor.common.BaseMonitor
getRootCredential
-
Field Details
-
ALL_SPACES
- See Also:
-
-
Constructor Details
-
DuplicationMonitor
-
-
Method Details
-
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
-