Class SessionManager
- java.lang.Object
-
- org.apache.accumulo.tserver.session.SessionManager
-
public class SessionManager extends Object
-
-
Constructor Summary
Constructors Constructor Description SessionManager(AccumuloConfiguration conf)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longcreateSession(Session session, boolean reserve)List<ActiveScan>getActiveScans()Map<TableId,MapCounter<ScanRunState>>getActiveScansPerTable()longgetMaxIdleTime()SessiongetSession(long sessionId)voidremoveIfNotAccessed(long sessionId, long delay)SessionremoveSession(long sessionId)SessionremoveSession(long sessionId, boolean unreserve)SessionreserveSession(long sessionId)while a session is reserved, it cannot be canceled or removedSessionreserveSession(long sessionId, boolean wait)voidunreserveSession(long sessionId)voidunreserveSession(Session session)
-
-
-
Constructor Detail
-
SessionManager
public SessionManager(AccumuloConfiguration conf)
-
-
Method Detail
-
createSession
public long createSession(Session session, boolean reserve)
-
getMaxIdleTime
public long getMaxIdleTime()
-
reserveSession
public Session reserveSession(long sessionId)
while a session is reserved, it cannot be canceled or removed
-
reserveSession
public Session reserveSession(long sessionId, boolean wait)
-
unreserveSession
public void unreserveSession(Session session)
-
unreserveSession
public void unreserveSession(long sessionId)
-
getSession
public Session getSession(long sessionId)
-
removeSession
public Session removeSession(long sessionId)
-
removeSession
public Session removeSession(long sessionId, boolean unreserve)
-
removeIfNotAccessed
public void removeIfNotAccessed(long sessionId, long delay)
-
getActiveScansPerTable
public Map<TableId,MapCounter<ScanRunState>> getActiveScansPerTable()
-
getActiveScans
public List<ActiveScan> getActiveScans()
-
-