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:
ResourceManagerOverflowManagerIndexManagerStoreManagerResourceEvents| 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.ResourceScoresIndexManager.IIndexManagerCounters, IndexManager.IndexSegmentStatsStoreManager.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, tailSplitThresholdbuildTasks, concurrentBuildTaskCount, concurrentMergeTaskCount, staleLocatorCacheaccelerateOverflowThreshold, 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, shutdownNowbuildIndexSegment, disableWrites, enableWrites, getIndex, getIndexCacheCapacity, getIndexCacheSize, getIndexCounters, getIndexCounters, getIndexOnStore, getIndexPartitionGone, getIndexRetentionTime, getIndexSegmentCacheCapacity, getIndexSegmentCacheSize, getIndexSources, getIndexSources, getStaleLocatorCount, isDisabledWrites, listIndexPartitions, markAndGetDelta, setIndexPartitionGoneaddResource, 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, setReleaseTimecloseJournal, closeTx, closeUnisolatedIndex, deleteJournal, dropUnisolatedIndex, extendJournal, isolateIndex, openJournal, openTx, openUnisolatedIndexclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDataService, getDataServiceUUID, getFederationpublic 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()
IResourceManagerIResourceManager.getCounters in interface IResourceManagerpublic IConcurrencyManager getConcurrencyManager()
StoreManagergetConcurrencyManager in class StoreManagerpublic void setConcurrencyManager(IConcurrencyManager concurrencyManager)
setConcurrencyManager in class StoreManagerpublic int nextPartitionId(String scaleOutIndexName)
MetadataService for the specified scale-out index (RMI).nextPartitionId in interface IPartitionIdFactoryscaleOutIndexName - The name of the scale-out index.RuntimeException - if something goes wrong.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.