Examples of endpoint()


Examples of org.apache.cassandra.net.OutboundTcpConnectionPool.endPoint()

    {
        InetAddress me = InetAddress.getByName("127.0.0.2");
        InetAddress com_ip = InetAddress.getByName("127.0.0.3");

        OutboundTcpConnectionPool pool = MessagingService.instance().getConnectionPool(me);
        Assert.assertEquals(me, pool.endPoint());
        pool.reset(com_ip);
        Assert.assertEquals(com_ip, pool.endPoint());

        MessagingService.instance().destroyConnectionPool(me);
        pool = MessagingService.instance().getConnectionPool(me);
View Full Code Here

Examples of org.apache.cassandra.net.OutboundTcpConnectionPool.endPoint()

        InetAddress com_ip = InetAddress.getByName("127.0.0.3");

        OutboundTcpConnectionPool pool = MessagingService.instance().getConnectionPool(me);
        Assert.assertEquals(me, pool.endPoint());
        pool.reset(com_ip);
        Assert.assertEquals(com_ip, pool.endPoint());

        MessagingService.instance().destroyConnectionPool(me);
        pool = MessagingService.instance().getConnectionPool(me);
        Assert.assertEquals(com_ip, pool.endPoint());
    }
View Full Code Here

Examples of org.apache.cassandra.net.OutboundTcpConnectionPool.endPoint()

        pool.reset(com_ip);
        Assert.assertEquals(com_ip, pool.endPoint());

        MessagingService.instance().destroyConnectionPool(me);
        pool = MessagingService.instance().getConnectionPool(me);
        Assert.assertEquals(com_ip, pool.endPoint());
    }

    @AfterClass
    public static void tearDown()
    {
View Full Code Here

Examples of org.apache.cassandra.net.OutboundTcpConnectionPool.endPoint()

    {
        InetAddress me = InetAddress.getByName("127.0.0.2");
        InetAddress com_ip = InetAddress.getByName("127.0.0.3");

        OutboundTcpConnectionPool pool = MessagingService.instance().getConnectionPool(me);
        Assert.assertEquals(me, pool.endPoint());
        pool.reset(com_ip);
        Assert.assertEquals(com_ip, pool.endPoint());

        MessagingService.instance().destroyConnectionPool(me);
        pool = MessagingService.instance().getConnectionPool(me);
View Full Code Here

Examples of org.apache.cassandra.net.OutboundTcpConnectionPool.endPoint()

        InetAddress com_ip = InetAddress.getByName("127.0.0.3");

        OutboundTcpConnectionPool pool = MessagingService.instance().getConnectionPool(me);
        Assert.assertEquals(me, pool.endPoint());
        pool.reset(com_ip);
        Assert.assertEquals(com_ip, pool.endPoint());

        MessagingService.instance().destroyConnectionPool(me);
        pool = MessagingService.instance().getConnectionPool(me);
        Assert.assertEquals(com_ip, pool.endPoint());
    }
View Full Code Here

Examples of org.apache.cassandra.net.OutboundTcpConnectionPool.endPoint()

        pool.reset(com_ip);
        Assert.assertEquals(com_ip, pool.endPoint());

        MessagingService.instance().destroyConnectionPool(me);
        pool = MessagingService.instance().getConnectionPool(me);
        Assert.assertEquals(com_ip, pool.endPoint());
    }

    @AfterClass
    public static void tearDown()
    {
View Full Code Here

Examples of org.apache.provisionr.api.provider.ProviderBuilder.endpoint()

        if (!region.isEmpty()) {
            builder.option("region", region);
        }

        if (endpoint.isEmpty()) {
            builder.endpoint(Optional.<String>absent());
        } else {
            builder.endpoint(endpoint);
        }

        return Optional.of(builder.createProvider());
View Full Code Here

Examples of org.apache.provisionr.api.provider.ProviderBuilder.endpoint()

        }

        if (endpoint.isEmpty()) {
            builder.endpoint(Optional.<String>absent());
        } else {
            builder.endpoint(endpoint);
        }

        return Optional.of(builder.createProvider());
    }
}
View Full Code Here

Examples of org.jacorb.orb.iiop.IIOPListener.endpoint()

    public int getPort()
    {
        IIOPListener l = getIIOPListener();
        if (l != null)
        {
            IIOPProfile profile = (IIOPProfile)l.endpoint();
            return ((IIOPAddress)profile.getAddress()).getPort();
        }

        throw new RuntimeException("Cannot find server port for non-IIOP transport");
    }
View Full Code Here

Examples of org.jacorb.orb.iiop.IIOPListener.endpoint()

    public int getSSLPort()
    {
        IIOPListener listener = getIIOPListener();
        if (listener != null)
        {
            return ((IIOPProfile)listener.endpoint()).getSSLPort();
        }

        throw new RuntimeException("Non-IIOP transport does not have an SSL port");
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.