Package org.apache.accumulo.tserver
Class TabletServerResourceManager
- java.lang.Object
-
- org.apache.accumulo.tserver.TabletServerResourceManager
-
public class TabletServerResourceManager extends Object
ResourceManager is responsible for managing the resources of all tablets within a tablet server.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
TabletServerResourceManager.AssignmentWatcher
Accepts some map which is tracking active assignment task(s) (running) and monitors them to ensure that the time the assignment(s) have been running don't exceed a threshold.class
TabletServerResourceManager.TabletResourceManager
-
Constructor Summary
Constructors Constructor Description TabletServerResourceManager(TabletServer tserver, VolumeManager fs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAssignment(KeyExtent extent, org.slf4j.Logger log, TabletServer.AssignmentHandler assignmentHandler)
void
addMetaDataAssignment(KeyExtent extent, org.slf4j.Logger log, TabletServer.AssignmentHandler assignmentHandler)
void
addMigration(KeyExtent tablet, Runnable migrationHandler)
void
close()
TabletServerResourceManager.TabletResourceManager
createTabletResourceManager(KeyExtent extent, AccumuloConfiguration conf)
void
executeMajorCompaction(KeyExtent tablet, Runnable compactionTask)
void
executeReadAhead(KeyExtent tablet, Runnable task)
void
executeSplit(KeyExtent tablet, Runnable splitTask)
LruBlockCache
getDataCache()
LruBlockCache
getIndexCache()
protected void
holdAllCommits(boolean holdAllCommits)
long
holdTime()
-
-
-
Constructor Detail
-
TabletServerResourceManager
public TabletServerResourceManager(TabletServer tserver, VolumeManager fs)
-
-
Method Detail
-
holdAllCommits
protected void holdAllCommits(boolean holdAllCommits)
-
holdTime
public long holdTime()
-
close
public void close()
-
createTabletResourceManager
public TabletServerResourceManager.TabletResourceManager createTabletResourceManager(KeyExtent extent, AccumuloConfiguration conf)
-
executeMajorCompaction
public void executeMajorCompaction(KeyExtent tablet, Runnable compactionTask)
-
addAssignment
public void addAssignment(KeyExtent extent, org.slf4j.Logger log, TabletServer.AssignmentHandler assignmentHandler)
-
addMetaDataAssignment
public void addMetaDataAssignment(KeyExtent extent, org.slf4j.Logger log, TabletServer.AssignmentHandler assignmentHandler)
-
getIndexCache
public LruBlockCache getIndexCache()
-
getDataCache
public LruBlockCache getDataCache()
-
-