public class SALSessions
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
void |
clearSessions()
Clear all the expired sessions
|
java.util.List<Endpoint> |
getChildEndpoints(SessionInformation information)
Returns endpoint sequence related to the given session
|
static SALSessions |
getInstance() |
SessionInformation |
getSession(java.lang.String sessionID)
return the endpoint for the given session.
|
void |
initialize(boolean isClusteringEnable,
org.apache.axis2.context.ConfigurationContext cc)
Initialize SALSessions instance
|
boolean |
isInitialized() |
void |
registerChildren(Endpoint endpoint,
java.util.List<Endpoint> endpoints)
This method only use in a clustered environment.
|
void |
removeSession(java.lang.String sessionId)
Removes the endpoint for the given session.
|
void |
removeSessionsOfMember(org.apache.axis2.clustering.Member member)
Updates sessions corresponds to a particular member from the
establishedSessions |
void |
reset() |
void |
updateSession(MessageContext synCtx,
SessionCookie cookie)
Update or establish a session
|
void |
updateSession(MessageContext synCtx,
java.lang.String sessionID)
Update or establish a session
|
public static SALSessions getInstance()
public void initialize(boolean isClusteringEnable, org.apache.axis2.context.ConfigurationContext cc)
isClusteringEnable
- is this a clustered environmentcc
- Axis config contextpublic void registerChildren(Endpoint endpoint, java.util.List<Endpoint> endpoints)
endpoint
- Root endpoint nameendpoints
- childrenpublic void updateSession(MessageContext synCtx, java.lang.String sessionID)
synCtx
- Synapse MessageContextsessionID
- session idpublic void updateSession(MessageContext synCtx, SessionCookie cookie)
synCtx
- Synapse MessageContextsessionID
- session idpublic SessionInformation getSession(java.lang.String sessionID)
sessionID
- The session identifierpublic java.util.List<Endpoint> getChildEndpoints(SessionInformation information)
information
- Session informationpublic void removeSession(java.lang.String sessionId)
sessionId
- The session identifierpublic void clearSessions()
public boolean isInitialized()
public void reset()
public void removeSessionsOfMember(org.apache.axis2.clustering.Member member)
establishedSessions
member
- subjected Member
Copyright © 2005-2020 Apache Software Foundation. All Rights Reserved.