public class RepoUsageMonitor extends java.lang.Object implements RepoUsageComponent.RestrictionObserver
| Modifier and Type | Class and Description |
|---|---|
static class |
RepoUsageMonitor.RepoUsageMonitorJob
The job that kicks off the usage monitoring.
|
| Constructor and Description |
|---|
RepoUsageMonitor() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkUsages()
Performs the physical checking of usages.
|
void |
init()
Check that all properties are properly set
|
void |
onChangeRestriction(RepoUsage restrictions)
Checks the current status, logs messages and sets a read-write veto, if necessary
|
void |
setRepoUsageComponent(RepoUsageComponent repoUsageComponent) |
void |
setScheduler(org.quartz.Scheduler scheduler) |
void |
setTransactionService(TransactionService transactionService) |
public void setScheduler(org.quartz.Scheduler scheduler)
scheduler - Timed updatespublic void setTransactionService(TransactionService transactionService)
transactionService - service that tells if the server is read-only or notpublic void setRepoUsageComponent(RepoUsageComponent repoUsageComponent)
repoUsageComponent - provides data on usagespublic void init()
throws org.quartz.SchedulerException
org.quartz.SchedulerExceptionpublic void checkUsages()
public void onChangeRestriction(RepoUsage restrictions)
onChangeRestriction in interface RepoUsageComponent.RestrictionObserverrestrictions - the new restrictionsCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.