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

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


            this.host = host;
        }

        @Override
        public Void call() throws CloudException, IOException {
            LoadBalanceMappingList data = new LoadBalanceMappingList();

            List<LbaasMapping> mappings = lbaas.listMappings(project, host);
            data.mappings = mappings;

            String path = "__default/lb/data/" + Escaping.escape(host);
View Full Code Here


    private void visitFile(File file) throws IOException {
        String json = Files.toString(file, Charsets.UTF_8);

        log.debug("Reading file: {}", file);

        LoadBalanceMappingList chunk = JsonCodec.gson.fromJson(json, LoadBalanceMappingList.class);

        if (chunk.mappings != null) {
            for (LbaasMapping mapping : chunk.mappings) {
                log.debug("Found mapping: {}", mapping);
View Full Code Here

        target.host = null;
        target.ip = "127.0.0.1";
        target.key = key;
        target.port = 8080;

        LoadBalanceMappingList chunk = new LoadBalanceMappingList();
        chunk.mappings = Lists.newArrayList();
        chunk.mappings.add(target);

        String json = JsonCodec.gson.toJson(chunk);
        File file = new File(mirrorPath, key);
View Full Code Here

TOP

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

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.