|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SipManager
A SipManager manages the Sip Sessions that are associated with a particular Container. Different Manager implementations may support value-added features such as the persistent storage of sip session data, as well as migrating sip sessions for distributable sip applications.
In order for a SipManager implementation to successfully operate
with a SipContext implementation that implements reloading, it
must obey the following constraints:
Lifecycle so that the Context can indicate
that a restart is required.
stop() to be followed by a call to
start() on the same SipManager instance.
| Method Summary | |
|---|---|
void |
dumpSipApplicationSessions()
|
void |
dumpSipSessions()
|
MobicentsSipApplicationSession |
findSipApplicationSession(javax.servlet.http.HttpSession httpSession)
Retrieves the sip application session holding the converged http session in parameter |
int |
getActiveSipApplicationSessions()
Returns the number of active sessions |
int |
getActiveSipSessions()
Returns the number of active sessions |
java.util.Iterator<MobicentsSipApplicationSession> |
getAllSipApplicationSessions()
|
java.util.Iterator<MobicentsSipSession> |
getAllSipSessions()
|
int |
getExpiredSipApplicationSessions()
Gets the number of sessions that have expired. |
int |
getExpiredSipSessions()
Gets the number of sessions that have expired. |
int |
getMaxActiveSipApplicationSessions()
Return the maximum number of active Sessions allowed, or -1 for no limit. |
int |
getMaxActiveSipSessions()
Return the maximum number of active Sessions allowed, or -1 for no limit. |
int |
getRejectedSipApplicationSessions()
Number of sip session creations that failed due to maxActiveSipSessions |
int |
getRejectedSipSessions()
Number of sip session creations that failed due to maxActiveSipSessions |
MobicentsSipApplicationSession |
getSipApplicationSession(SipApplicationSessionKey key,
boolean create)
Retrieve a sip application session from its key. |
int |
getSipApplicationSessionAverageAliveTime()
Gets the average time (in seconds) that expired sessions had been alive. |
int |
getSipApplicationSessionCounter()
Total sessions created by this manager. |
int |
getSipApplicationSessionMaxAliveTime()
Gets the longest time (in seconds) that an expired session had been alive. |
SipFactoryImpl |
getSipFactoryImpl()
|
MobicentsSipSession |
getSipSession(SipSessionKey key,
boolean create,
SipFactoryImpl sipFactoryImpl,
MobicentsSipApplicationSession MobicentsSipApplicationSession)
Retrieve a sip session from its key. |
int |
getSipSessionAverageAliveTime()
Gets the average time (in seconds) that expired sessions had been alive. |
int |
getSipSessionCounter()
Total sessions created by this manager. |
int |
getSipSessionMaxAliveTime()
Gets the longest time (in seconds) that an expired session had been alive. |
void |
removeAllSessions()
Remove the sip sessions and sip application sessions |
MobicentsSipApplicationSession |
removeSipApplicationSession(SipApplicationSessionKey key)
Removes a sip application session from the manager by its key |
MobicentsSipSession |
removeSipSession(SipSessionKey key)
Removes a sip session from the manager by its key |
void |
setExpiredSipApplicationSessions(int expiredSipApplicationSessions)
Sets the number of sessions that have expired. |
void |
setExpiredSipSessions(int expiredSipSessions)
Sets the number of sessions that have expired. |
void |
setMaxActiveSipApplicationSessions(int max)
Set the maximum number of actives Sip Application Sessions allowed, or -1 for no limit. |
void |
setMaxActiveSipSessions(int max)
Set the maximum number of actives Sip Sessions allowed, or -1 for no limit. |
void |
setRejectedSipApplicationSessions(int rejectedSipApplicationSessions)
|
void |
setRejectedSipSessions(int rejectedSipSessions)
|
void |
setSipApplicationSessionAverageAliveTime(int sipApplicationSessionAverageAliveTime)
Sets the average time (in seconds) that expired sessions had been alive. |
void |
setSipApplicationSessionCounter(int sipApplicationSessionCounter)
|
void |
setSipApplicationSessionMaxAliveTime(int sipApplicationSessionMaxAliveTime)
Sets the longest time (in seconds) that an expired session had been alive. |
void |
setSipFactoryImpl(SipFactoryImpl sipFactoryImpl)
|
void |
setSipSessionAverageAliveTime(int sipSessionAverageAliveTime)
Sets the average time (in seconds) that expired sessions had been alive. |
void |
setSipSessionCounter(int sipSessionCounter)
|
void |
setSipSessionMaxAliveTime(int sipSessionMaxAliveTime)
Sets the longest time (in seconds) that an expired session had been alive. |
| Methods inherited from interface org.apache.catalina.Manager |
|---|
add, addPropertyChangeListener, backgroundProcess, createEmptySession, createSession, createSession, findSession, findSessions, getActiveSessions, getContainer, getDistributable, getExpiredSessions, getInfo, getMaxActive, getMaxInactiveInterval, getRejectedSessions, getSessionAverageAliveTime, getSessionCounter, getSessionIdLength, getSessionMaxAliveTime, load, remove, removePropertyChangeListener, setContainer, setDistributable, setExpiredSessions, setMaxActive, setMaxInactiveInterval, setRejectedSessions, setSessionAverageAliveTime, setSessionCounter, setSessionIdLength, setSessionMaxAliveTime, unload |
| Method Detail |
|---|
MobicentsSipSession removeSipSession(SipSessionKey key)
key - the identifier for this session
MobicentsSipApplicationSession removeSipApplicationSession(SipApplicationSessionKey key)
key - the identifier for this session
MobicentsSipApplicationSession getSipApplicationSession(SipApplicationSessionKey key,
boolean create)
key - the key identifying the sip application session to retrievecreate - if set to true, if no session has been found one will be created
MobicentsSipSession getSipSession(SipSessionKey key,
boolean create,
SipFactoryImpl sipFactoryImpl,
MobicentsSipApplicationSession MobicentsSipApplicationSession)
key - the key identifying the sip session to retrievecreate - if set to true, if no session has been found one will be createdsipFactoryImpl - needed only for sip session creation.MobicentsSipApplicationSession - to associate the SipSession with if create is set to true, if false it won't be used
java.lang.IllegalArgumentException - if create is set to true and sip Factory is nullMobicentsSipApplicationSession findSipApplicationSession(javax.servlet.http.HttpSession httpSession)
convergedHttpSession - the converged session to look up
void removeAllSessions()
void setSipFactoryImpl(SipFactoryImpl sipFactoryImpl)
SipFactoryImpl getSipFactoryImpl()
void dumpSipSessions()
void dumpSipApplicationSessions()
java.util.Iterator<MobicentsSipSession> getAllSipSessions()
java.util.Iterator<MobicentsSipApplicationSession> getAllSipApplicationSessions()
int getMaxActiveSipSessions()
void setMaxActiveSipSessions(int max)
max - The new maximum number of sip sessionsint getMaxActiveSipApplicationSessions()
void setMaxActiveSipApplicationSessions(int max)
max - The new maximum number of sip application sessionsint getRejectedSipSessions()
void setRejectedSipSessions(int rejectedSipSessions)
int getRejectedSipApplicationSessions()
void setRejectedSipApplicationSessions(int rejectedSipApplicationSessions)
void setSipSessionCounter(int sipSessionCounter)
int getSipSessionCounter()
int getActiveSipSessions()
int getSipSessionMaxAliveTime()
void setSipSessionMaxAliveTime(int sipSessionMaxAliveTime)
sessionMaxAliveTime - Longest time (in seconds) that an expired
session had been alive.int getSipSessionAverageAliveTime()
void setSipSessionAverageAliveTime(int sipSessionAverageAliveTime)
sessionAverageAliveTime - Average time (in seconds) that expired
sessions had been alive.void setSipApplicationSessionCounter(int sipApplicationSessionCounter)
int getSipApplicationSessionCounter()
int getActiveSipApplicationSessions()
int getSipApplicationSessionMaxAliveTime()
void setSipApplicationSessionMaxAliveTime(int sipApplicationSessionMaxAliveTime)
sessionMaxAliveTime - Longest time (in seconds) that an expired
session had been alive.int getSipApplicationSessionAverageAliveTime()
void setSipApplicationSessionAverageAliveTime(int sipApplicationSessionAverageAliveTime)
sessionAverageAliveTime - Average time (in seconds) that expired
sessions had been alive.int getExpiredSipSessions()
void setExpiredSipSessions(int expiredSipSessions)
expiredSessions - Number of sessions that have expiredint getExpiredSipApplicationSessions()
void setExpiredSipApplicationSessions(int expiredSipApplicationSessions)
expiredSessions - Number of sessions that have expired
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||