Package com.ericsson.ssa.sip

Examples of com.ericsson.ssa.sip.SipSessionManager


    /**
     * Destroys this converged context.
     */
    public void destroy() throws Exception {
        super.destroy();
        SipSessionManager sipSessMgr = getSipSessionManager();
        if (sipSessMgr != null) {
            sipSessMgr.release();
            sipSessMgr = null;
        }
        sipSessionManager = null; // required to release sessionmanager.
        lifecycle = null; // required to release servletdispatcher.
        pipeline = null; // required to release servletdispatcher.
View Full Code Here


        // Purge any expired HTTP sessions from both the active cache and
        // the persistent store (if any)
        super.backgroundProcess();

        SipSessionManager sipSessMgr = getSipSessionManager();
        if (sipSessMgr != null && count == 0) {
            if (sipSessMgr instanceof PersistentSipSessionManagerBase) {
                // Remove any expired SIP artifacts from their respective
                // persistent stores.
                // There is no need to remove them from any of the active
View Full Code Here

     * Sets the SIP session manager for this converged context
     *
     * @param sipSessionManager The new SIP session manager
     */
    public void setSipSessionManager(SipSessionManager sipSessionManager) {
        SipSessionManager oldSipSessionManager;

        try {
            writeLock.lock();
            oldSipSessionManager = this.sipSessionManager;

View Full Code Here

        Iterator<PathNode> iter = getCaller2CalleePath();

        if (iter != null) {
            while (iter.hasNext()) {
                PathNode node = iter.next();
                SipSessionManager mgr = node.getSipSessionManager();
                // The following may throw RemoteLockException
                if (mgr != null) {
                    mgr.findSipSession(node.getSipSessionId());
                }
            }
        }
    }
View Full Code Here

     */
    public ServletTimer createTimer(SipApplicationSession appSession,
        long delay, boolean isPersistent, Serializable info) {

        SipApplicationSessionImpl as = (SipApplicationSessionImpl) appSession;
        SipSessionManager ssm = as.getSipSessionManager();

        if ((null == ssm) || (as.isValid() == false)) {
            throw new IllegalStateException("Invalid SipApplicationSession");
        }

View Full Code Here

            throw new IllegalArgumentException(
                "Period should be greater than 0");
        }

        SipApplicationSessionImpl as = (SipApplicationSessionImpl) appSession;
        SipSessionManager ssm = as.getSipSessionManager();

        if ((null == ssm) || (as.isValid() == false)) {
            throw new IllegalStateException("Invalid SipApplicationSession");
        }
View Full Code Here

    @Override
    protected SipApplicationSessionImpl getPFieldAppSession() {
        SipApplicationSessionImpl sas = null;

        try {
            SipSessionManager ssm = getSipSessionManager();
            if(ssm != null) {
                sas = ssm.findSipApplicationSession(sasId);
            }
        } catch (RemoteLockException e) {
            throw new RemoteLockRuntimeException(e);
        }
View Full Code Here

    }

    @Override
    protected synchronized TimerListener getPFieldListener() {
        if (!listenerLookedUp.getAndSet(true)) {
            SipSessionManager sipSessionManager = getSipSessionManager();

            if (sipSessionManager != null) {
                ConvergedContext ctx = sipSessionManager.getContext();

                if (ctx != null) {
                    SipApplicationListeners appListeners = ctx.getSipApplicationListeners();

                    if (appListeners != null) {
View Full Code Here

     */
    @Override
    public void cancel(boolean mayInterruptIfRunning,
                       boolean removeFromParentSAS) {
        super.cancel(mayInterruptIfRunning, removeFromParentSAS);
        SipSessionManager ssm = getSipSessionManager();
        if(ssm != null) {
            ssm.removeServletTimer(this);
        }
        if(removeFromParentSAS && !timeoutInProgress) {
            IWRHandler.getInstance().handle(this);
        }
    }
View Full Code Here

     * (non-Javadoc)
     * @see com.ericsson.ssa.sip.LifeCycle#activate()
     */
    public boolean activate() {
        // Add to active cache
        SipSessionManager mgr = getSipSessionManager();

        if (mgr != null) {
            ServletTimer st = mgr.addServletTimer(this);

            if (st != null) {
                // While this thread has been in the process of loading the
                // requested ServletTimer, and is now trying to activate it,
                // another thread has also loaded the same ServletTimer, and
View Full Code Here

TOP

Related Classes of com.ericsson.ssa.sip.SipSessionManager

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.