public class StorageReportHandler extends Object
Modifier and Type | Field and Description |
---|---|
static String |
COMPLETION_TIME_META |
static String |
ELAPSED_TIME_META |
static int |
maxRetries |
protected String |
storageSpace |
Constructor and Description |
---|
StorageReportHandler(ContentStoreManager storeMgr,
String storageSpace,
String reportFileNamePrefix,
String reportErrorLogFileName) |
Modifier and Type | Method and Description |
---|---|
void |
addToErrorLog(String errMsg) |
StorageReport |
getLatestStorageReport()
Returns the latest storage report or null if no reports exist
|
InputStream |
getLatestStorageReportStream()
Returns the latest storage report stream or null if no reports exist
|
StorageReport |
getStorageReport(String reportId)
Returns a specific storage report or null if the report does not exist.
|
StorageReportList |
getStorageReportList()
Retrieve a sorted list of all storage reports in XML format.
|
InputStream |
getStorageReportStream(String reportId)
Returns a specific storage report stream or null if the report does
not exist.
|
String |
storeReport(DuraStoreMetricsCollector metrics,
long completionTime,
long elapsedTime)
Stores a storage report in the primary storage provider,
returns the content ID of the new item.
|
public static final String COMPLETION_TIME_META
public static final String ELAPSED_TIME_META
public static final int maxRetries
protected String storageSpace
public StorageReportHandler(ContentStoreManager storeMgr, String storageSpace, String reportFileNamePrefix, String reportErrorLogFileName)
public InputStream getStorageReportStream(String reportId) throws ContentStoreException
reportId
- content ID of the report to retrieveContentStoreException
public StorageReport getStorageReport(String reportId) throws ContentStoreException
reportId
- content ID of the report to retrieveContentStoreException
public InputStream getLatestStorageReportStream() throws ContentStoreException
ContentStoreException
public StorageReport getLatestStorageReport() throws ContentStoreException
ContentStoreException
public StorageReportList getStorageReportList() throws ContentStoreException
ContentStoreException
public String storeReport(DuraStoreMetricsCollector metrics, long completionTime, long elapsedTime)
metrics
- storage reportcompletionTime
- time report completed (in millis)elapsedTime
- millis required to complete the reportpublic void addToErrorLog(String errMsg)
Copyright © 2009–2014 DuraSpace. All rights reserved.