Package com.ericsson.ssa.sip

Examples of com.ericsson.ssa.sip.Layer


            log.log(Level.FINE, "Add layer: "+nextLayer+" to "+m_layers);
        }
        int currentSize = m_layers.size();

        if (currentSize > 0) {
            Layer currentLayer = m_layers.get(currentSize - 1);
            currentLayer.registerNext(nextLayer);
        }

        m_layers.add(nextLayer);
    }
View Full Code Here


        } else {
            req.pushTransactionDispatcher(this);
            req.pushApplicationDispatcher(this);

            final SipServletRequestImpl r = req;
            final Layer l = this;
            _threadPool.execute(new Runnable() {
                    public void run() {
                        try {
                            LayerHelper.next(r, l, _nextLayer);
                        } catch (Exception e) {
View Full Code Here

    public void next(SipServletResponseImpl resp) {
        if (resp.peekDispatcher() != null) {
            LayerHelper.next(resp, this, _nextLayer);
        } else {
            final SipServletResponseImpl r = resp;
            final Layer l = this;
            _threadPool.execute(new Runnable() {
                    public void run() {
                        LayerHelper.next(r, l, _nextLayer);
                    }
                });
View Full Code Here

    public void startSipStack() {
        Runnable firstRunnableLayer = null;
        Iterator<Layer> i = _layerHandler.getLayers().iterator();

        while (i.hasNext()) {
            Layer l = i.next();

            if ((firstRunnableLayer == null) && l instanceof Runnable) {
                firstRunnableLayer = (Runnable) l;
            }

            try {
                Method m = l.getClass().getMethod("start", new Class[0]);
                m.invoke(l, new Object[0]);
            } catch (NoSuchMethodException ignore) {
                // No start method defined for that layer
            } catch (Exception e) {
                if (log.isLoggable(Level.SEVERE)) {
View Full Code Here

        moNode.setStats(statsImpl);
        moNode.setStatsClass(statsImpl.getInterfaceClass());
        if (logger.isLoggable(Level.FINE)) {
            logger.fine(nodeName + " stats is registered");
        }
        Layer provider = nodes.get(nodeName);
        if(provider != null){
            ((SipStats) (moNode.getStats())).setStatsProvider(provider);
        }
    }
View Full Code Here

TOP

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

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.