org.apache.activemq.store.kahadb.scheduler
Class JobSchedulerStoreImpl
java.lang.Object
org.apache.activemq.util.ServiceSupport
org.apache.activemq.store.kahadb.scheduler.JobSchedulerStoreImpl
- All Implemented Interfaces:
- JobSchedulerStore, org.apache.activemq.Service
public class JobSchedulerStoreImpl
- extends ServiceSupport
- implements JobSchedulerStore
| Methods inherited from interface org.apache.activemq.Service |
start, stop |
CLOSED_STATE
public static final int CLOSED_STATE
- See Also:
- Constant Field Values
OPEN_STATE
public static final int OPEN_STATE
- See Also:
- Constant Field Values
journalSize
protected AtomicLong journalSize
JobSchedulerStoreImpl
public JobSchedulerStoreImpl()
getDirectory
public File getDirectory()
- Specified by:
getDirectory in interface JobSchedulerStore
setDirectory
public void setDirectory(File directory)
- Specified by:
setDirectory in interface JobSchedulerStore
size
public long size()
- Specified by:
size in interface JobSchedulerStore
getJobScheduler
public JobScheduler getJobScheduler(String name)
throws Exception
- Specified by:
getJobScheduler in interface JobSchedulerStore
- Throws:
Exception
removeJobScheduler
public boolean removeJobScheduler(String name)
throws Exception
- Specified by:
removeJobScheduler in interface JobSchedulerStore
- Throws:
Exception
doStart
protected void doStart()
throws Exception
- Specified by:
doStart in class ServiceSupport
- Throws:
Exception
doStop
protected void doStop(ServiceStopper stopper)
throws Exception
- Specified by:
doStop in class ServiceSupport
- Throws:
Exception
isFailIfDatabaseIsLocked
public boolean isFailIfDatabaseIsLocked()
setFailIfDatabaseIsLocked
public void setFailIfDatabaseIsLocked(boolean failIfDatabaseIsLocked)
getJournalMaxFileLength
public int getJournalMaxFileLength()
setJournalMaxFileLength
public void setJournalMaxFileLength(int journalMaxFileLength)
getJournalMaxWriteBatchSize
public int getJournalMaxWriteBatchSize()
setJournalMaxWriteBatchSize
public void setJournalMaxWriteBatchSize(int journalMaxWriteBatchSize)
isEnableIndexWriteAsync
public boolean isEnableIndexWriteAsync()
setEnableIndexWriteAsync
public void setEnableIndexWriteAsync(boolean enableIndexWriteAsync)
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2005-2013 The Apache Software Foundation. All Rights Reserved.