public class InMemoryJobSchedulerStore extends org.apache.activemq.util.ServiceSupport implements JobSchedulerStore
| Constructor and Description |
|---|
InMemoryJobSchedulerStore() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doStart() |
protected void |
doStop(org.apache.activemq.util.ServiceStopper stopper) |
File |
getDirectory()
Gets the location where the Job Scheduler will write the persistent data used
to preserve and recover scheduled Jobs.
|
JobScheduler |
getJobScheduler(String name)
Returns the JobScheduler instance identified by the given name.
|
boolean |
removeJobScheduler(String name)
Removes the named JobScheduler if it exists, purging all scheduled messages
assigned to it.
|
void |
setDirectory(File directory)
Sets the directory where persistent store data will be written.
|
long |
size()
The size of the current store on disk if the store utilizes a disk based store
mechanism.
|
addServiceListener, dispose, isStarted, isStopped, isStopping, postStop, preStart, removeServiceListener, start, stoppublic InMemoryJobSchedulerStore()
protected void doStop(org.apache.activemq.util.ServiceStopper stopper) throws Exception
doStop in class org.apache.activemq.util.ServiceSupportExceptionprotected void doStart() throws Exception
doStart in class org.apache.activemq.util.ServiceSupportExceptionpublic JobScheduler getJobScheduler(String name) throws Exception
JobSchedulerStoregetJobScheduler in interface JobSchedulerStorename - the name of the JobScheduler instance to lookup.Exception - if an error occurs while loading the named scheduler.public boolean removeJobScheduler(String name) throws Exception
JobSchedulerStoreremoveJobScheduler in interface JobSchedulerStorename - the name of the scheduler instance to remove.Exception - if an error occurs while removing the scheduler.public long size()
JobSchedulerStoresize in interface JobSchedulerStorepublic File getDirectory()
JobSchedulerStoregetDirectory in interface JobSchedulerStorepublic void setDirectory(File directory)
JobSchedulerStoresetDirectory in interface JobSchedulerStoredirectory - The directory where the job scheduler store is to be located.Copyright © 2005–2020 The Apache Software Foundation. All rights reserved.