Package com.ericsson.ssa.sip.timer

Examples of com.ericsson.ssa.sip.timer.ServletTimerImpl


        if (store == null) {
            return null;
        }

        try {
            ServletTimerImpl timer = null;
            try {
                if (SecurityUtil.isPackageProtectionEnabled()){
                    try{
                        timer = (ServletTimerImpl) AccessController.doPrivileged(new PrivilegedStoreLoadServletTimer(id, version, loadDependencies, store));
                    }catch(PrivilegedActionException ex){
View Full Code Here


            return;
        }

        Iterator it = servletTimers.values().iterator();
        while (it.hasNext()) {
            ServletTimerImpl timer = (ServletTimerImpl)it.next();
            //by virtue of being in the cache it is considered to
            //be not expired          
            if(timer.getId() != null
                && timer.isPersistent()
                && isServletTimerOlderThan(timer, repairStartTime)
                && timer.lockBackground()) {
                try {
                    ((HAServletTimer)timer).setReplicated(false);
                    ((HAServletTimer)timer).setDirty(true, false);
                    saveServletTimer(timer);
                } catch (IOException ex) {
                    _logger.log(Level.WARNING,
                        "during repair unable to save ServletTimer:id = " + timer.getId(),
                        ex);
                } finally {
                    timer.unlockBackground();
                }
      }           
        }
    }
View Full Code Here

        while(it2.hasNext()) {
            ((HASipSession)it2.next()).setSuspect(value);
        }
        Iterator it3 = servletTimers.values().iterator();
        while(it3.hasNext()) {
            ServletTimerImpl timer = (ServletTimerImpl)it3.next();
            if (timer.isPersistent()) {
                ((HAServletTimer) timer).setSuspect(value);
            }
        }       
    }   
View Full Code Here

     * Creates a new ServletTimer.
     *
     * @return The new ServletTimer
     */
    public ServletTimerImpl createServletTimer(SipApplicationSessionImpl sas, Serializable info, long delay, TimerListener listener, boolean isPersistent) {
        ServletTimerImpl timer = createNewServletTimer(sas, info, delay, listener, isPersistent);
        servletTimers.put(timer.getId(), timer);

        return timer;
    }
View Full Code Here

     * Creates a new ServletTimer.
     *
     * @return The new ServletTimer
     */
    public ServletTimerImpl createServletTimer(SipApplicationSessionImpl sas, Serializable info, long delay, boolean fixedDelay, long period, TimerListener listener, boolean isPersistent) {
        ServletTimerImpl timer = createNewServletTimer(sas, info, delay, fixedDelay, period, listener, isPersistent);
        servletTimers.put(timer.getId(), timer);

        return timer;
    }
View Full Code Here

     * Creates a new ServletTimer.
     *
     * @return The new ServletTimer
     */
    protected ServletTimerImpl createNewServletTimer(SipApplicationSessionImpl sas, Serializable info, long delay, TimerListener listener, boolean isPersistent) {
        return new ServletTimerImpl(this, sas, info, delay, listener, isPersistent);
    }
View Full Code Here

     * Creates a new ServletTimer.
     *
     * @return The new ServletTimer
     */
    protected ServletTimerImpl createNewServletTimer(SipApplicationSessionImpl sas, Serializable info, long delay, boolean fixedDelay, long period, TimerListener listener, boolean isPersistent) {
        return new ServletTimerImpl(this, sas, info, delay, fixedDelay, period, listener, isPersistent);
    }
View Full Code Here

TOP

Related Classes of com.ericsson.ssa.sip.timer.ServletTimerImpl

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.