public abstract class UpgradeableSessionTracker extends Object implements SessionTracker
SessionTracker.Session, SessionTracker.SessionExpirer| Modifier and Type | Field and Description | 
|---|---|
protected LocalSessionTracker | 
localSessionTracker  | 
| Constructor and Description | 
|---|
UpgradeableSessionTracker()  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
checkGlobalSession(long sessionId,
                  Object owner)
Strictly check that a given session is a global session or not 
 | 
void | 
createLocalSessionTracker(SessionTracker.SessionExpirer expirer,
                         int tickTime,
                         long id,
                         ZooKeeperServerListener listener)  | 
abstract boolean | 
isGlobalSession(long sessionId)  | 
boolean | 
isLocalSession(long sessionId)  | 
boolean | 
isTrackingSession(long sessionId)  | 
void | 
start()  | 
int | 
upgradeSession(long sessionId)
Upgrades the session to a global session. 
 | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddGlobalSession, addSession, checkSession, createSession, dumpSessions, getSessionExpiryMap, removeSession, setOwner, setSessionClosing, shutdown, touchSessionprotected LocalSessionTracker localSessionTracker
public void start()
public void createLocalSessionTracker(SessionTracker.SessionExpirer expirer, int tickTime, long id, ZooKeeperServerListener listener)
public boolean isTrackingSession(long sessionId)
isTrackingSession in interface SessionTrackerpublic boolean isLocalSession(long sessionId)
public abstract boolean isGlobalSession(long sessionId)
public int upgradeSession(long sessionId)
sessionId - public void checkGlobalSession(long sessionId,
                               Object owner)
                        throws KeeperException.SessionExpiredException,
                               KeeperException.SessionMovedException
SessionTrackercheckGlobalSession in interface SessionTrackerKeeperException.SessionExpiredExceptionKeeperException.SessionMovedExceptionCopyright © 2008–2021 The Apache Software Foundation. All rights reserved.