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 Location
getLastUpdateLocation()
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.int
getState()
Gets the state flag of this meta data instance.void
setLastUpdateLocation(Location location)
Updates the value of the last successful update.void
setPage(Page<T> page)
Sets the Page instance used to load and store the KahaDBMetaData instance.void
setState(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:KahaDBMetaData
Gets the Page in the store PageFile where the KahaDBMetaData instance is stored.- Specified by:
getPage
in interfaceKahaDBMetaData<T>
- Returns:
- the Page to use to start access the KahaDBMetaData instance.
-
getState
public int getState()
Description copied from interface:KahaDBMetaData
Gets the state flag of this meta data instance.- Specified by:
getState
in interfaceKahaDBMetaData<T>
- Returns:
- the current state value for this instance.
-
getLastUpdateLocation
public Location getLastUpdateLocation()
Description copied from interface:KahaDBMetaData
Returns the Journal Location value that indicates that last recorded update that was successfully performed for this KahaDB store implementation.- Specified by:
getLastUpdateLocation
in interfaceKahaDBMetaData<T>
- Returns:
- the location of the last successful update location.
-
setPage
public void setPage(Page<T> page)
Description copied from interface:KahaDBMetaData
Sets the Page instance used to load and store the KahaDBMetaData instance.- Specified by:
setPage
in interfaceKahaDBMetaData<T>
- Parameters:
page
- the new Page value to use.
-
setState
public void setState(int value)
Description copied from interface:KahaDBMetaData
Sets the current value of the state flag.- Specified by:
setState
in interfaceKahaDBMetaData<T>
- Parameters:
value
- the new value to assign to the state flag.
-
setLastUpdateLocation
public void setLastUpdateLocation(Location location)
Description copied from interface:KahaDBMetaData
Updates the value of the last successful update.- Specified by:
setLastUpdateLocation
in interfaceKahaDBMetaData<T>
- Parameters:
location
- the new value to assign the last update location field.
-
-