public class RepoUsageMonitor extends Object implements RepoUsageComponent.RestrictionObserver
Modifier and Type | Class and Description |
---|---|
static class |
RepoUsageMonitor.RepoUsageMonitorJob
The job that kicks off the usage monitoring.
|
Modifier and Type | Field and Description |
---|---|
static Long |
LOCK_TTL |
static org.alfresco.service.namespace.QName |
LOCK_USAGE |
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 |
setJobLockService(JobLockService jobLockService) |
void |
setRepoUsageComponent(RepoUsageComponent repoUsageComponent) |
void |
setScheduler(org.quartz.Scheduler scheduler) |
void |
setTransactionService(TransactionService transactionService) |
public static final Long LOCK_TTL
public static final org.alfresco.service.namespace.QName LOCK_USAGE
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 setJobLockService(JobLockService jobLockService)
jobLockService
- service to prevent duplicate work when updating usagespublic void init() throws org.quartz.SchedulerException
org.quartz.SchedulerException
public void checkUsages()
public void onChangeRestriction(RepoUsage restrictions)
onChangeRestriction
in interface RepoUsageComponent.RestrictionObserver
restrictions
- the new restrictionsCopyright © 2005–2017 Alfresco Software. All rights reserved.