public interface JobSchedulerStore extends Service
Modifier and Type | Method and Description |
---|---|
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.
|
File getDirectory()
void setDirectory(File directory)
directory
- The directory where the job scheduler store is to be located.long size()
JobScheduler getJobScheduler(String name) throws Exception
name
- the name of the JobScheduler instance to lookup.Exception
- if an error occurs while loading the named scheduler.boolean removeJobScheduler(String name) throws Exception
name
- the name of the scheduler instance to remove.Exception
- if an error occurs while removing the scheduler.Copyright © 2005–2019 The Apache Software Foundation. All rights reserved.