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, unregisterExtension
public 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
Component
This method is called by the runtime when a component is activated.
activate
in interface Component
activate
in class DefaultComponent
context
- the runtime contextException
- if an error occurs during activationpublic List<QuotaStatsUpdater> getQuotaStatsUpdaters()
getQuotaStatsUpdaters
in interface QuotaStatsService
public QuotaStatsUpdater getQuotaStatsUpdaters(String updaterName)
public void updateStatistics(DocumentEventContext docCtx, Event event) throws ClientException
QuotaStatsService
updateStatistics
in interface QuotaStatsService
ClientException
public void computeInitialStatistics(String updaterName, CoreSession session, QuotaStatsInitialWork currentWorker)
QuotaStatsService
computeInitialStatistics
in interface QuotaStatsService
public void launchInitialStatisticsComputation(String updaterName, String repositoryName)
QuotaStatsService
updaterName
on repositoryName
.launchInitialStatisticsComputation
in interface QuotaStatsService
public String getProgressStatus(String updaterName)
QuotaStatsService
updaterName
.getProgressStatus
in interface QuotaStatsService
public void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor) throws Exception
registerContribution
in class DefaultComponent
Exception
public void unregisterContribution(Object contribution, String extensionPoint, ComponentInstance contributor) throws Exception
unregisterContribution
in class DefaultComponent
Exception
Copyright © 2012 Nuxeo SA. All Rights Reserved.