public class IgniteCacheDatabaseSharedManager extends GridCacheSharedManagerAdapter implements IgniteChangeGlobalStateSupport
| Modifier and Type | Field and Description |
|---|---|
protected MemoryPolicy |
dfltMemPlc |
protected Map<String,MemoryMetrics> |
memMetricsMap |
protected Map<String,MemoryPolicy> |
memPlcMap |
cctx, log| Constructor and Description |
|---|
IgniteCacheDatabaseSharedManager() |
context, isStopping, kernalStartInfo, kernalStopInfo, log, onDisconnected, onKernalStart, onKernalStart0, onKernalStop, onKernalStop0, printMemoryStats, start, startInfo, stop, stopInfo, toStringprotected Map<String,MemoryPolicy> memPlcMap
protected Map<String,MemoryMetrics> memMetricsMap
protected MemoryPolicy dfltMemPlc
protected void start0()
throws IgniteCheckedException
start0 in class GridCacheSharedManagerAdapterIgniteCheckedException - If failed.public void init()
throws IgniteCheckedException
IgniteCheckedException - If failed.protected void initPageMemoryDataStructures(MemoryConfiguration dbCfg) throws IgniteCheckedException
dbCfg - Database config.IgniteCheckedExceptionpublic int pageSize()
protected void initPageMemoryPolicies(MemoryConfiguration memCfg)
memCfg - Database config.protected void checkPolicyEvictionProperties(MemoryPolicyConfiguration plcCfg, MemoryConfiguration dbCfg) throws IgniteCheckedException
plcCfg - MemoryPolicyConfiguration to validate.dbCfg - Memory configuration.IgniteCheckedException - If config is invalid.public void dumpStatistics(IgniteLogger log)
log - Logger.public void initDataBase()
throws IgniteCheckedException
IgniteCheckedException - If failed.public Collection<MemoryPolicy> memoryPolicies()
policies.public Collection<MemoryMetrics> memoryMetrics()
public MemoryPolicy memoryPolicy(String memPlcName) throws IgniteCheckedException
memPlcName - Memory policy name.MemoryPolicy instance associated with a given MemoryPolicyConfiguration.IgniteCheckedException - in case of request for unknown MemoryPolicy.public FreeList freeList(String memPlcName)
memPlcName - MemoryPolicyConfiguration name.FreeList instance associated with a given MemoryPolicyConfiguration.public ReuseList reuseList(String memPlcName)
memPlcName - MemoryPolicyConfiguration name.ReuseList instance associated with a given MemoryPolicyConfiguration.protected void stop0(boolean cancel)
stop0 in class GridCacheSharedManagerAdaptercancel - Cancel flag.public boolean persistenceEnabled()
public void lock()
throws IgniteCheckedException
IgniteCheckedExceptionpublic void unLock()
public void checkpointReadLock()
public void checkpointReadUnlock()
@Nullable public IgniteInternalFuture wakeupForCheckpoint(String reason)
public void waitForCheckpoint(String reason) throws IgniteCheckedException
IgniteCheckedException - If failed.@Nullable public IgniteInternalFuture wakeupForSnapshot(long snapshotId, UUID snapshotNodeId, Collection<String> cacheNames)
public void beforeExchange(GridDhtPartitionsExchangeFuture discoEvt) throws IgniteCheckedException
discoEvt - Before exchange for the given discovery event.IgniteCheckedExceptionpublic void beforeCachesStop()
throws IgniteCheckedException
IgniteCheckedException - If failed.public void onCacheStop(GridCacheContext cctx)
cctx - Stopped cache context.@Nullable public IgniteInternalFuture startLocalSnapshotCreation(StartFullSnapshotAckDiscoveryMessage snapshotMsg, ClusterNode initiator, String msg) throws IgniteCheckedException
snapshotMsg - Snapshot message.initiator - Initiator node.msg - message to lognull if snapshot is not available.IgniteCheckedException - If failed.@Nullable public IgniteInternalFuture indexRebuildFuture(int cacheId)
public void ensureFreeSpace(MemoryPolicy memPlc) throws IgniteCheckedException
memPlc - Memory policy.IgniteCheckedException@Nullable protected File buildAllocPath(MemoryPolicyConfiguration plc)
plc - MemoryPolicyConfiguration.protected PageMemory createPageMemory(DirectMemoryProvider memProvider, MemoryConfiguration memCfg, MemoryPolicyConfiguration memPlcCfg, MemoryMetricsImpl memMetrics)
memProvider - Memory provider.memCfg - Memory configuartion.memPlcCfg - Memory policy configuration.memMetrics - MemoryMetrics to collect memory usage metrics.protected File buildPath(String path, String consId)
path - Path to the working directory.consId - Consistent ID of the local node.public void onActivate(GridKernalContext kctx) throws IgniteCheckedException
onActivate in interface IgniteChangeGlobalStateSupportkctx - Kernal context.IgniteCheckedException - If failed.public void onDeActivate(GridKernalContext kctx) throws IgniteCheckedException
onDeActivate in interface IgniteChangeGlobalStateSupportkctx - Kernal context.IgniteCheckedException - If failed.public String systemMemoryPolicyName()
Follow @ApacheIgnite
Ignite Fabric : ver. 2.0.0 Release Date : April 30 2017