public class StorageReportResource extends Object
Constructor and Description |
---|
StorageReportResource(String reportPrefix,
String errorLogName) |
Modifier and Type | Method and Description |
---|---|
String |
cancelStorageReport()
Cancels a storage report that is currently in process
|
String |
cancelStorageReportSchedule()
Cancels any existing storage report schedule.
|
void |
dispose()
Shuts down this resource
|
protected Date |
getDefaultScheduleStartDate() |
InputStream |
getLatestStorageReport()
Provides the xml stream of the lastest storage report or null if no
reports exist.
|
InputStream |
getStorageReport(String reportId)
Provides the xml stream of the specified storage report or null if the
report does not exist.
|
String |
getStorageReportInfo()
Provides information about the storage report.
|
String |
getStorageReportList()
Provides the xml stream of the list of storage reports, the list may
be empty
|
protected void |
initialize(ContentStoreManager storeMgr,
StorageReportHandler reportHander,
StorageReportBuilder reportBuilder,
StorageReportScheduler reportScheduler)
Initialization option for tests only.
|
void |
initialize(ContentStoreManager storeMgr,
String reportSpaceId) |
boolean |
isInitialized()
Indicates whether or not initialization has occurred.
|
String |
scheduleStorageReport(long startTime,
long frequency)
Schedules a series of storage reports to run.
|
String |
startStorageReport()
Starts a new storage report if one is not currently running.
|
public void initialize(ContentStoreManager storeMgr, String reportSpaceId)
protected Date getDefaultScheduleStartDate()
protected void initialize(ContentStoreManager storeMgr, StorageReportHandler reportHander, StorageReportBuilder reportBuilder, StorageReportScheduler reportScheduler)
public boolean isInitialized()
public InputStream getLatestStorageReport() throws ContentStoreException
ContentStoreException
public InputStream getStorageReport(String reportId) throws ContentStoreException
ContentStoreException
public String getStorageReportList() throws ContentStoreException
ContentStoreException
public String getStorageReportInfo()
public String startStorageReport()
public String scheduleStorageReport(long startTime, long frequency) throws InvalidScheduleException
startTime
- time to start the next storage reportfrequency
- time in milliseconds to wait between reportsInvalidScheduleException
- if the parameters do not create a
valid schedulepublic String cancelStorageReportSchedule()
public String cancelStorageReport()
public void dispose()
Copyright © 2009–2014 DuraSpace. All rights reserved.