Package org.red5.server.session
Class SessionManager
java.lang.Object
org.red5.server.session.SessionManager
Manages sessions.
- Author:
- The Red5 Project, Paul Gregoire ([email protected])
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final classQuartz job to kill off old sessions -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static Stringprivate static final org.slf4j.Loggerprivate static Longstatic final Randomprivate static ISchedulingServiceprivate static ConcurrentMap<String,ISession> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringcreateHash(String str) static ISessionstatic ISessioncreateSession(String sessionId) static ISessiongetSession(String sessionId) static Stringvoidinit()static ISessionremoveSession(String sessionId) voidsetDestinationDirectory(String destinationDir) voidsetMaxLifetime(String maxLifetime) voidsetSchedulingService(ISchedulingService schedulingService)
-
Field Details
-
log
private static final org.slf4j.Logger log -
sessions
-
destinationDirectory
-
maxLifetime
-
schedulingService
-
rnd
-
-
Constructor Details
-
SessionManager
public SessionManager()
-
-
Method Details
-
init
public void init() -
getSessionId
-
createSession
-
createSession
-
getSession
-
removeSession
-
getDestinationDirectory
-
setDestinationDirectory
-
setMaxLifetime
-
setSchedulingService
-
createHash
-