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, wait
addGlobalSession, addSession, checkSession, createSession, dumpSessions, getSessionExpiryMap, removeSession, setOwner, setSessionClosing, shutdown, touchSession
protected 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 SessionTracker
public 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
SessionTracker
checkGlobalSession
in interface SessionTracker
KeeperException.SessionExpiredException
KeeperException.SessionMovedException
Copyright © 2008–2019 The Apache Software Foundation. All rights reserved.