public class QuotaStatsServiceImpl extends DefaultComponent implements QuotaStatsService
QuotaStatsService.| Modifier and Type | Field and Description |
|---|---|
static String |
QUOTA_STATS_UPDATERS_EP |
static String |
STATUS_INITIAL_COMPUTATION_PENDING |
static String |
STATUS_INITIAL_COMPUTATION_QUEUED |
| Constructor and Description |
|---|
QuotaStatsServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
activate(ComponentContext context)
Activates the component.
|
void |
computeInitialStatistics(String updaterName,
CoreSession session,
QuotaStatsInitialWork currentWorker)
Compute the initial statistics for the given @{code updaterName}.
|
String |
getProgressStatus(String updaterName)
Returns the progress status of
updaterName. |
List<QuotaStatsUpdater> |
getQuotaStatsUpdaters() |
QuotaStatsUpdater |
getQuotaStatsUpdaters(String updaterName) |
void |
launchInitialStatisticsComputation(String updaterName,
String repositoryName)
Launch an asynchronously initial computation for the given
updaterName on repositoryName. |
void |
registerContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor) |
void |
unregisterContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor) |
void |
updateStatistics(DocumentEventContext docCtx,
Event event)
Update the statistics for the given
docCtx and event. |
applicationStarted, deactivate, getAdapter, getApplicationStartedOrder, getLastModified, registerExtension, setLastModified, unregisterExtensionpublic static final String STATUS_INITIAL_COMPUTATION_QUEUED
public static final String STATUS_INITIAL_COMPUTATION_PENDING
public static final String QUOTA_STATS_UPDATERS_EP
public void activate(ComponentContext context) throws Exception
ComponentThis method is called by the runtime when a component is activated.
activate in interface Componentactivate in class DefaultComponentcontext - the runtime contextException - if an error occurs during activationpublic List<QuotaStatsUpdater> getQuotaStatsUpdaters()
getQuotaStatsUpdaters in interface QuotaStatsServicepublic QuotaStatsUpdater getQuotaStatsUpdaters(String updaterName)
public void updateStatistics(DocumentEventContext docCtx, Event event) throws ClientException
QuotaStatsServiceupdateStatistics in interface QuotaStatsServiceClientExceptionpublic void computeInitialStatistics(String updaterName, CoreSession session, QuotaStatsInitialWork currentWorker)
QuotaStatsServicecomputeInitialStatistics in interface QuotaStatsServicepublic void launchInitialStatisticsComputation(String updaterName, String repositoryName)
QuotaStatsServiceupdaterName on repositoryName.launchInitialStatisticsComputation in interface QuotaStatsServicepublic String getProgressStatus(String updaterName)
QuotaStatsServiceupdaterName.getProgressStatus in interface QuotaStatsServicepublic void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor) throws Exception
registerContribution in class DefaultComponentExceptionpublic void unregisterContribution(Object contribution, String extensionPoint, ComponentInstance contributor) throws Exception
unregisterContribution in class DefaultComponentExceptionCopyright © 2012 Nuxeo SA. All Rights Reserved.