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 java.util.concurrent.atomic.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) |
java.io.File |
getDirectory() |
JobScheduler |
getJobScheduler(java.lang.String name) |
int |
getJournalMaxFileLength() |
int |
getJournalMaxWriteBatchSize() |
void |
init() |
boolean |
isEnableIndexWriteAsync() |
boolean |
isFailIfDatabaseIsLocked() |
boolean |
removeJobScheduler(java.lang.String name) |
void |
setDirectory(java.io.File directory) |
void |
setEnableIndexWriteAsync(boolean enableIndexWriteAsync) |
void |
setFailIfDatabaseIsLocked(boolean failIfDatabaseIsLocked) |
void |
setJournalMaxFileLength(int journalMaxFileLength) |
void |
setJournalMaxWriteBatchSize(int journalMaxWriteBatchSize) |
long |
size() |
java.lang.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 java.util.concurrent.atomic.AtomicLong journalSize
public java.io.File getDirectory()
getDirectory in interface JobSchedulerStorepublic void setDirectory(java.io.File directory)
setDirectory in interface JobSchedulerStorepublic long size()
size in interface JobSchedulerStorepublic JobScheduler getJobScheduler(java.lang.String name) throws java.lang.Exception
getJobScheduler in interface JobSchedulerStorejava.lang.Exceptionpublic boolean removeJobScheduler(java.lang.String name)
throws java.lang.Exception
removeJobScheduler in interface JobSchedulerStorejava.lang.Exceptionprotected void doStart()
throws java.lang.Exception
doStart in class ServiceSupportjava.lang.Exceptionprotected void doStop(ServiceStopper stopper) throws java.lang.Exception
doStop in class ServiceSupportjava.lang.Exceptionpublic 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 java.lang.String toString()
toString in class java.lang.Objectpublic Locker createDefaultLocker() throws java.io.IOException
createDefaultLocker in interface Lockablejava.io.IOExceptionpublic void init()
throws java.lang.Exception
init in class LockableServiceSupportjava.lang.ExceptionCopyright © 2005-2016 Red Hat, Inc.. All Rights Reserved.