public class LogAggregationScheduleManager extends Object implements org.springframework.context.ApplicationContextAware
Constructor and Description |
---|
LogAggregationScheduleManager() |
Modifier and Type | Method and Description |
---|---|
static LogAggregationScheduleManager |
getInstance() |
org.quartz.Scheduler |
getScheduler() |
SystemMetadataEntryListener |
getSystemMetadataEntryListener() |
void |
init()
Called by Spring to bootstrap log aggregation it will set up default intervals between job executions for
Membernode harvesting it will initialize Quartz it will schedule membernodes for harvesting
it also adds a listener for changes in the hazelcast Nodes map and hz partitioner Change in hzNodes or migration
of partitions may entail rebalancing of quartz jobs
|
void |
scheduleHarvest()
will perform the initial calculation or the recalculation of the scheduler.
|
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
setScheduler(org.quartz.Scheduler scheduler) |
void |
setSystemMetadataEntryListener(SystemMetadataEntryListener systemMetadataEntryListener) |
public void init()
public void scheduleHarvest() throws org.quartz.SchedulerException, org.dataone.service.exceptions.NotImplemented, org.dataone.service.exceptions.ServiceFailure
org.quartz.SchedulerException
org.dataone.service.exceptions.NotImplemented
org.dataone.service.exceptions.ServiceFailure
public org.quartz.Scheduler getScheduler()
public void setScheduler(org.quartz.Scheduler scheduler)
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
org.springframework.beans.BeansException
public SystemMetadataEntryListener getSystemMetadataEntryListener()
public void setSystemMetadataEntryListener(SystemMetadataEntryListener systemMetadataEntryListener)
public static LogAggregationScheduleManager getInstance() throws Exception
Exception
Copyright © 2019. All rights reserved.