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
public abstract class AbstractKahaDBMetaData<T> extends Object implements KahaDBMetaData<T>
-
-
Field Summary
-
Fields inherited from interface org.apache.activemq.store.kahadb.KahaDBMetaData
CLOSED_STATE, OPEN_STATE
-
-
Constructor Summary
Constructors Constructor Description AbstractKahaDBMetaData()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LocationgetLastUpdateLocation()Returns the Journal Location value that indicates that last recorded update that was successfully performed for this KahaDB store implementation.Page<T>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.voidsetPage(Page<T> page)Sets 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, wait
-
Methods inherited from interface org.apache.activemq.store.kahadb.KahaDBMetaData
initialize, load, read, write
-
-
-
-
Method Detail
-
getPage
public Page<T> 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
public Location 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
public void setPage(Page<T> page)
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
public void setLastUpdateLocation(Location location)
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.
-
-