Class DuplicationMonitor

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 Details

  • Constructor Details

    • DuplicationMonitor

      public DuplicationMonitor(Map<String,String> dupHosts)
  • Method Details

    • 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)