public class DuplicationMonitor extends BaseMonitor
| Modifier and Type | Field and Description |
|---|---|
static String |
ALL_SPACES |
acctRepo, imageRepo, instanceRepo, log| Constructor and Description |
|---|
DuplicationMonitor(org.duracloud.account.db.repo.DuracloudAccountRepo acctRepo,
org.duracloud.account.db.repo.DuracloudInstanceRepo instanceRepo,
org.duracloud.account.db.repo.DuracloudServerImageRepo imageRepo,
Map<String,String> dupHosts) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
compareSpaces(String primaryStoreId,
DuplicationInfo info) |
protected void |
countSpaces(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) |
DuplicationReport |
monitorDuplication()
This method performs the duplication checks.
|
findServerImage, getAccount, getDuracloudInstances, getRootCredential, initpublic static final String ALL_SPACES
public DuplicationReport monitorDuplication()
protected List<org.duracloud.client.ContentStore> getSecondaryStores(org.duracloud.client.ContentStoreManager storeManager, String primaryStoreId) throws org.duracloud.error.ContentStoreException
org.duracloud.error.ContentStoreExceptionprotected List<String> getSpaces(String host, org.duracloud.client.ContentStore store) throws org.duracloud.error.ContentStoreException
org.duracloud.error.ContentStoreExceptionprotected void countSpaces(String host, DuplicationInfo info, org.duracloud.client.ContentStore store, List<String> spaces, boolean primary)
protected void compareSpaces(String primaryStoreId, DuplicationInfo info)
Copyright © 2009–2015 DuraSpace. All rights reserved.