Examples of LbaasServerData


Examples of io.fathom.cloud.protobuf.LbaasModel.LbaasServerData

        }

        b.setSystemKey(systemKey);
        b.setProjectId(project.getId());

        LbaasServerData record = b.build();
        return record;
    }
View Full Code Here

Examples of io.fathom.cloud.protobuf.LbaasModel.LbaasServerData

        List<LbaasServerData> add = Lists.newArrayList();
        Map<Long, LbaasServerData> remove = Maps.newHashMap(dbMap);

        for (LbaasServerData mapping : requests) {
            LbaasServerData db = rawToDbMap.get(mapping);
            if (db == null) {
                add.add(mapping);
            } else {
                remove.remove(db.getId());
            }
        }

        Set<LbaasServerData> dirtyServers = Sets.newHashSet();

        for (LbaasServerData a : add) {
            log.info("Add LB: {}", a);

            LbaasServerData.Builder b = LbaasServerData.newBuilder(a);
            LbaasServerData created = collection.create(b);

            dirtyServers.add(created);
        }

        for (LbaasServerData r : remove.values()) {
            log.info("Remove LB: {}", r);

            LbaasServerData deleted = collection.delete(r.getId());

            if (deleted == null) {
                throw new IllegalStateException("Did not find server during delete");
            }
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.