Package org.apache.accumulo.server.mem
Class LowMemoryDetector
- java.lang.Object
-
- org.apache.accumulo.server.mem.LowMemoryDetector
-
public class LowMemoryDetector extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceLowMemoryDetector.Actionstatic classLowMemoryDetector.DetectionScope
-
Constructor Summary
Constructors Constructor Description LowMemoryDetector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetIntervalMillis(AccumuloConfiguration conf)booleanisRunningLowOnMemory()booleanisRunningLowOnMemory(ServerContext context, LowMemoryDetector.DetectionScope scope, Supplier<Boolean> isUserTable, LowMemoryDetector.Action action)voidlogGCInfo(AccumuloConfiguration conf)
-
-
-
Method Detail
-
getIntervalMillis
public long getIntervalMillis(AccumuloConfiguration conf)
-
isRunningLowOnMemory
public boolean isRunningLowOnMemory()
-
isRunningLowOnMemory
public boolean isRunningLowOnMemory(ServerContext context, LowMemoryDetector.DetectionScope scope, Supplier<Boolean> isUserTable, LowMemoryDetector.Action action)
- Parameters:
context- server contextscope- whether this is being checked in the context of scan or compact codeisUserTable- boolean set true if the table being scanned / compacted is a user table. No action is taken for system tables.action- Action to perform when this method returns true- Returns:
- true if server running low on memory
-
logGCInfo
public void logGCInfo(AccumuloConfiguration conf)
-
-