public class JobSchedulerStoreImpl extends LockableServiceSupport implements JobSchedulerStore
| Modifier and Type | Class and Description |
|---|---|
protected class |
JobSchedulerStoreImpl.MetaData |
| Modifier and Type | Field and Description |
|---|---|
static int |
CLOSED_STATE |
protected AtomicLong |
journalSize |
static int |
OPEN_STATE |
brokerService| Constructor and Description |
|---|
JobSchedulerStoreImpl() |
| Modifier and Type | Method and Description |
|---|---|
Locker |
createDefaultLocker() |
protected void |
doStart() |
protected void |
doStop(ServiceStopper stopper) |
File |
getDirectory() |
JobScheduler |
getJobScheduler(String name) |
int |
getJournalMaxFileLength() |
int |
getJournalMaxWriteBatchSize() |
void |
init() |
boolean |
isEnableIndexWriteAsync() |
boolean |
isFailIfDatabaseIsLocked() |
boolean |
removeJobScheduler(String name) |
void |
setDirectory(File directory) |
void |
setEnableIndexWriteAsync(boolean enableIndexWriteAsync) |
void |
setFailIfDatabaseIsLocked(boolean failIfDatabaseIsLocked) |
void |
setJournalMaxFileLength(int journalMaxFileLength) |
void |
setJournalMaxWriteBatchSize(int journalMaxWriteBatchSize) |
long |
size() |
String |
toString() |
getBrokerService, getLocker, getLockKeepAlivePeriod, getScheduledThreadPoolExecutor, isUseLock, keepLockAlive, postStop, preStart, setBrokerService, setLocker, setLockKeepAlivePeriod, setUseLock, stopBrokeraddServiceListener, dispose, isStarted, isStopped, isStopping, removeServiceListener, start, stoppublic static final int CLOSED_STATE
public static final int OPEN_STATE
protected AtomicLong journalSize
public File getDirectory()
getDirectory in interface JobSchedulerStorepublic void setDirectory(File directory)
setDirectory in interface JobSchedulerStorepublic long size()
size in interface JobSchedulerStorepublic JobScheduler getJobScheduler(String name) throws Exception
getJobScheduler in interface JobSchedulerStoreExceptionpublic boolean removeJobScheduler(String name) throws Exception
removeJobScheduler in interface JobSchedulerStoreExceptionprotected void doStart()
throws Exception
doStart in class ServiceSupportExceptionprotected void doStop(ServiceStopper stopper) throws Exception
doStop in class ServiceSupportExceptionpublic boolean isFailIfDatabaseIsLocked()
public void setFailIfDatabaseIsLocked(boolean failIfDatabaseIsLocked)
public int getJournalMaxFileLength()
public void setJournalMaxFileLength(int journalMaxFileLength)
public int getJournalMaxWriteBatchSize()
public void setJournalMaxWriteBatchSize(int journalMaxWriteBatchSize)
public boolean isEnableIndexWriteAsync()
public void setEnableIndexWriteAsync(boolean enableIndexWriteAsync)
public Locker createDefaultLocker() throws IOException
createDefaultLocker in interface LockableIOExceptionpublic void init()
throws Exception
init in class LockableServiceSupportExceptionCopyright © 2005-2014 The Apache Software Foundation. All Rights Reserved.