public class MetaStorage extends Object implements DbCheckpointListener, ReadOnlyMetastorage, ReadWriteMetastorage
| Modifier and Type | Class and Description |
|---|---|
static class |
MetaStorage.FreeListImpl |
DbCheckpointListener.Context| Modifier and Type | Field and Description |
|---|---|
static int |
METASTORAGE_CACHE_ID |
static String |
METASTORAGE_CACHE_NAME |
| Constructor and Description |
|---|
MetaStorage(GridCacheSharedContext cctx,
DataRegion memPlc,
DataRegionMetricsImpl memMetrics) |
MetaStorage(GridCacheSharedContext cctx,
DataRegion dataRegion,
DataRegionMetricsImpl regionMetrics,
boolean readOnly) |
| Modifier and Type | Method and Description |
|---|---|
void |
applyUpdate(String key,
byte[] value) |
byte[] |
getData(String key) |
void |
init(IgniteCacheDatabaseSharedManager db) |
void |
onCheckpointBegin(DbCheckpointListener.Context ctx) |
PageMemory |
pageMemory() |
void |
putData(String key,
byte[] data) |
Serializable |
read(String key) |
Map<String,? extends Serializable> |
readForPredicate(IgnitePredicate<String> keyPred)
Read all keys matching provided predicate.
|
void |
remove(String key) |
void |
removeData(String key) |
void |
write(String key,
Serializable val) |
public static final String METASTORAGE_CACHE_NAME
public static final int METASTORAGE_CACHE_ID
public MetaStorage(GridCacheSharedContext cctx, DataRegion dataRegion, DataRegionMetricsImpl regionMetrics, boolean readOnly)
public MetaStorage(GridCacheSharedContext cctx, DataRegion memPlc, DataRegionMetricsImpl memMetrics)
public void init(IgniteCacheDatabaseSharedManager db) throws IgniteCheckedException
IgniteCheckedExceptionpublic Serializable read(String key) throws IgniteCheckedException
read in interface ReadOnlyMetastorageIgniteCheckedExceptionpublic Map<String,? extends Serializable> readForPredicate(IgnitePredicate<String> keyPred) throws IgniteCheckedException
readForPredicate in interface ReadOnlyMetastoragekeyPred - Key predicate.IgniteCheckedException - If failed.public void write(@NotNull
String key,
@NotNull
Serializable val)
throws IgniteCheckedException
write in interface ReadWriteMetastorageIgniteCheckedExceptionpublic void remove(@NotNull
String key)
throws IgniteCheckedException
remove in interface ReadWriteMetastorageIgniteCheckedExceptionpublic void putData(String key, byte[] data) throws IgniteCheckedException
IgniteCheckedExceptionpublic byte[] getData(String key) throws IgniteCheckedException
IgniteCheckedExceptionpublic void removeData(String key) throws IgniteCheckedException
IgniteCheckedExceptionpublic PageMemory pageMemory()
public void onCheckpointBegin(DbCheckpointListener.Context ctx) throws IgniteCheckedException
onCheckpointBegin in interface DbCheckpointListenerIgniteCheckedException - If failed.public void applyUpdate(String key, byte[] value) throws IgniteCheckedException
IgniteCheckedException
Follow @ApacheIgnite
Ignite Fabric : ver. 2.5.0 Release Date : May 23 2018