Class 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
    • Constructor Detail

      • DuplicationMonitor

        public DuplicationMonitor​(Map<String,​String> dupHosts)
    • 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)