Package io.fathom.cloud.openstack.client.loadbalance.model

Examples of io.fathom.cloud.openstack.client.loadbalance.model.LbaasMapping


        return b.build();
    }

    @Override
    public LbaasMapping toModel(LbaasMappingData data) {
        LbaasMapping model = new LbaasMapping();

        if (data.hasForwardUrl()) {
            model.forwardUrl = data.getForwardUrl();
        }
View Full Code Here


        String publicBucketUrl = "https://api-cloud.fathomdb.com/openstack/storage/" + project.getId() + "/"
                + bucket.getKey();
        URI redirect = URI.create(publicBucketUrl);

        LbaasMapping record = new LbaasMapping();

        record.host = host;
        record.forwardUrl = redirect.toString();

        loadBalancerRecords.add(record);
View Full Code Here

        }
    }

    private void addLbaasMapping(InstanceData instance, String fqdn) {
        for (InetAddress ip : publicIps) {
            LbaasMapping lbaasMapping = new LbaasMapping();
            lbaasMapping.host = fqdn;

            String address = InetAddresses.toAddrString(ip);
            lbaasMapping.ip = address;
View Full Code Here

        boolean includeForwardedProtocol = true;

        String forwardUrl = null;
        if (backend.mappings.size() != 0) {
            LbaasMapping target0 = backend.mappings.get(0);
            forwardUrl = target0.forwardUrl;
        }

        if (!Strings.isNullOrEmpty(forwardUrl)) {
            URI uri = URI.create(forwardUrl);
View Full Code Here

    @Override
    public int firstSync() throws IOException {
        String key = "default";

        LbaasMapping target = new LbaasMapping();
        target.forwardUrl = null;
        target.host = null;
        target.ip = "127.0.0.1";
        target.key = key;
        target.port = 8080;
View Full Code Here

TOP

Related Classes of io.fathom.cloud.openstack.client.loadbalance.model.LbaasMapping

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.