Package com.volantis.vdp.scs.connectors.sps.connection

Examples of com.volantis.vdp.scs.connectors.sps.connection.SPSConnection


     * @param url identifies connection and URL assiocation in the list
     * @return a sps connection bound with a specified URL
     */
    public static SPSConnection getConnectionByUrl(URL url) {

        SPSConnection conn = null;

        int index = urls.indexOf(url);
        if(index != -1) {
            conn = (SPSConnection) connections.get(index);
        }
View Full Code Here



        for(int i = 0; i < urls.size(); i++) {

            URL url = (URL) urls.get(i);
            SPSConnection conn = (SPSConnection) connections.get(i);

            retVal += url.toString() + ": " + conn.isActive() + "\n";
        }

        return retVal;

    }
View Full Code Here

    public static List getAllActiveConnections() {

        List activeConnections = new ArrayList();

        for(int i = 0; i < urls.size(); i++) {
            SPSConnection conn = (SPSConnection) connections.get(i);
            if(urls.get(i) != null && conn.isActive()) {
                activeConnections.add(conn);
            }
        }

        return activeConnections;
View Full Code Here

    private void sendKeepAlivePackets() {
        List activeConnections = SPSConnectionPool.getAllActiveConnections();

        Iterator iter = activeConnections.iterator();
        while(iter.hasNext()) {
            SPSConnection spsConn = (SPSConnection) iter.next();
            spsConn.getBroker().send(
                    new KAPacket(
                            RequestIdentifierManager.getNewRequestId()).
                            createKAPacket());
        }
    }
View Full Code Here

TOP

Related Classes of com.volantis.vdp.scs.connectors.sps.connection.SPSConnection

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.