public abstract class ResourceManager extends OverflowManager implements IPartitionIdFactory
ResourceManager
has broad responsibility for journal files, index
segment files, maintaining index views during overflow processing, and
managing the transparent decomposition of scale-out indices and the
distribution of the key-range index partitions for those scale-out indices.
This class is implemented in several layers:
ResourceManager
OverflowManager
IndexManager
StoreManager
ResourceEvents
Modifier and Type | Class and Description |
---|---|
static interface |
ResourceManager.IResourceManagerCounters
Interface defines and documents the counters and counter namespaces for
the
ResourceManager . |
static interface |
ResourceManager.Options
ResourceManager options. |
OverflowManager.IIndexPartitionTaskCounters, OverflowManager.IOverflowManagerCounters, OverflowManager.ResourceScores
IndexManager.IIndexManagerCounters, IndexManager.IndexSegmentStats
StoreManager.IStoreManagerCounters, StoreManager.ManagedJournal
Modifier and Type | Field and Description |
---|---|
protected static org.apache.log4j.Logger |
log
Logger.
|
accelerateSplitThreshold, asyncOverflowEnabled, buildServiceCorePoolSize, compactingMerge, compactingMergeWithAfterAction, copyIndexThreshold, forceOverflow, joinsEnabled, maximumBuildSegmentBytes, maximumJournalsPerView, maximumMovePercentOfSplit, maximumMoves, maximumMovesPerTarget, maximumOptionalMergesPerOverflow, maximumSegmentsPerView, mergeServiceCorePoolSize, minimumActiveIndexPartitions, movePercentCpuTimeThreshold, nominalShardSize, overflowAllowed, overflowCancelledWhenJournalFull, overflowCounters, overflowTasksConcurrent, overflowThreshold, overflowTimeout, percentOfJoinThreshold, percentOfSplitThreshold, scatterSplitEnabled, serviceName, shardOverextensionLimit, tailSplitThreshold
buildTasks, concurrentBuildTaskCount, concurrentMergeTaskCount, staleLocatorCache
accelerateOverflowThreshold, bytesDeleted, bytesUnderManagement, dataDir, indexCacheLock, journalBytesUnderManagement, journalDeleteCount, journalReopenCount, journalsDir, lastCommitTimePreserved, lastOverflowTime, liveJournalRef, maximumJournalSizeAtOverflow, purgeResourcesMillis, segmentBytesUnderManagement, segmentsDir, segmentStoreDeleteCount, segmentStoreReopenCount, storeCache, tmpDir
Constructor and Description |
---|
ResourceManager(Properties properties)
(Re-)open the
ResourceManager . |
Modifier and Type | Method and Description |
---|---|
IConcurrencyManager |
getConcurrencyManager()
The object used to control access to the index resources.
|
CounterSet |
getCounters()
Statistics about the
IResourceManager . |
int |
nextPartitionId(String scaleOutIndexName)
Requests a new index partition identifier from the
MetadataService for the specified scale-out index (RMI). |
void |
setConcurrencyManager(IConcurrencyManager concurrencyManager) |
doSynchronousOverflow, getAsynchronousOverflowCount, getHostCounter, getOverflowCounters, getServiceCounter, getSynchronousOverflowCount, isOverflowAllowed, isOverflowEnabled, overflow, shouldOverflow, shutdown, shutdownNow
buildIndexSegment, disableWrites, enableWrites, getIndex, getIndexCacheCapacity, getIndexCacheSize, getIndexCounters, getIndexCounters, getIndexOnStore, getIndexPartitionGone, getIndexRetentionTime, getIndexSegmentCacheCapacity, getIndexSegmentCacheSize, getIndexSources, getIndexSources, getStaleLocatorCount, isDisabledWrites, listIndexPartitions, markAndGetDelta, setIndexPartitionGone
addResource, assertNotOpen, assertOpen, assertRunning, awaitRunning, deleteResource, deleteResources, getBytesUnderManagement, getCommitTimeStrictlyGreaterThan, getDataDir, getDataDirFreeSpace, getIndexSegmentFile, getIndexSegmentFile, getJournal, getJournalBytesUnderManagement, getLiveJournal, getManagedJournalCount, getManagedSegmentCount, getProperties, getReleaseTime, getResourceService, getResourcesForTimestamp, getSegmentBytesUnderManagement, getStoreCacheSize, getStoreCounters, getTempDirFreeSpace, getTmpDir, isOpen, isRunning, isStarting, isTransient, munge, newFileFilter, nextTimestamp, openStore, overrideJournalExtent, purgeOldResources, purgeOldResources, retentionSetAdd, retentionSetRemove, setReleaseTime
closeJournal, closeTx, closeUnisolatedIndex, deleteJournal, dropUnisolatedIndex, extendJournal, isolateIndex, openJournal, openTx, openUnisolatedIndex
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDataService, getDataServiceUUID, getFederation
public ResourceManager(Properties properties)
ResourceManager
.
Note: You MUST use setConcurrencyManager(IConcurrencyManager)
after calling this constructor (the parameter can not be passed in since
there is a circular dependency between the IConcurrencyManager
and ManagedJournal#getLocalTransactionManager()
.
properties
- See ResourceManager.Options
.DataService.start()
public CounterSet getCounters()
IResourceManager
IResourceManager
.getCounters
in interface IResourceManager
public IConcurrencyManager getConcurrencyManager()
StoreManager
getConcurrencyManager
in class StoreManager
public void setConcurrencyManager(IConcurrencyManager concurrencyManager)
setConcurrencyManager
in class StoreManager
public int nextPartitionId(String scaleOutIndexName)
MetadataService
for the specified scale-out index (RMI).nextPartitionId
in interface IPartitionIdFactory
scaleOutIndexName
- The name of the scale-out index.RuntimeException
- if something goes wrong.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.