Package org.apache.activemq.store.kahadb
Class AbstractKahaDBMetaData<T>
java.lang.Object
org.apache.activemq.store.kahadb.AbstractKahaDBMetaData<T>
- All Implemented Interfaces:
KahaDBMetaData<T>
- Direct Known Subclasses:
JobSchedulerKahaDBMetaData
-
Field Summary
Fields inherited from interface org.apache.activemq.store.kahadb.KahaDBMetaData
CLOSED_STATE, OPEN_STATE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the Journal Location value that indicates that last recorded update that was successfully performed for this KahaDB store implementation.getPage()Gets the Page in the store PageFile where the KahaDBMetaData instance is stored.intgetState()Gets the state flag of this meta data instance.voidsetLastUpdateLocation(Location location) Updates the value of the last successful update.voidSets the Page instance used to load and store the KahaDBMetaData instance.voidsetState(int value) Sets the current value of the state flag.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.activemq.store.kahadb.KahaDBMetaData
initialize, load, read, write
-
Constructor Details
-
AbstractKahaDBMetaData
public AbstractKahaDBMetaData()
-
-
Method Details
-
getPage
Description copied from interface:KahaDBMetaDataGets the Page in the store PageFile where the KahaDBMetaData instance is stored.- Specified by:
getPagein interfaceKahaDBMetaData<T>- Returns:
- the Page to use to start access the KahaDBMetaData instance.
-
getState
public int getState()Description copied from interface:KahaDBMetaDataGets the state flag of this meta data instance.- Specified by:
getStatein interfaceKahaDBMetaData<T>- Returns:
- the current state value for this instance.
-
getLastUpdateLocation
Description copied from interface:KahaDBMetaDataReturns the Journal Location value that indicates that last recorded update that was successfully performed for this KahaDB store implementation.- Specified by:
getLastUpdateLocationin interfaceKahaDBMetaData<T>- Returns:
- the location of the last successful update location.
-
setPage
Description copied from interface:KahaDBMetaDataSets the Page instance used to load and store the KahaDBMetaData instance.- Specified by:
setPagein interfaceKahaDBMetaData<T>- Parameters:
page- the new Page value to use.
-
setState
public void setState(int value) Description copied from interface:KahaDBMetaDataSets the current value of the state flag.- Specified by:
setStatein interfaceKahaDBMetaData<T>- Parameters:
value- the new value to assign to the state flag.
-
setLastUpdateLocation
Description copied from interface:KahaDBMetaDataUpdates the value of the last successful update.- Specified by:
setLastUpdateLocationin interfaceKahaDBMetaData<T>- Parameters:
location- the new value to assign the last update location field.
-