Package io.fathom.cloud.protobuf.CloudModel

Examples of io.fathom.cloud.protobuf.CloudModel.MetadataData


        return buildResponse(updated);
    }

    private ServerMetadata buildResponse(InstanceData instance) {
        ServerMetadata response = new ServerMetadata();
        MetadataData metadata = instance.getMetadata();
        response.metadata = MetadataServices.toMap(metadata);
        return response;
    }
View Full Code Here


    private final List<LbaasMapping> lbaasMappings = Lists.newArrayList();
    private final List<String> roles = Lists.newArrayList();
    private List<InetAddress> publicIps;

    public void build(InstanceData instance) {
        MetadataData metadata = instance.getMetadata();

        this.publicIps = getIps(instance, true);

        for (MetadataEntryData entry : metadata.getEntryList()) {
            String key = entry.getKey();
            String value = entry.getValue();

            if (key.equals(KEY_DNS_HOST)) {
                addDnsHost(instance, value);
View Full Code Here

        JsonObject o = new JsonObject();
        o.addProperty("uuid", instance.getId());
        o.addProperty("identity_uri", identityUri);

        JsonObject meta = new JsonObject();
        MetadataData metadata = instance.getMetadata();
        for (MetadataEntryData entry : metadata.getEntryList()) {
            meta.addProperty(entry.getKey(), entry.getValue());
        }
        o.add("meta", meta);

        return o;
View Full Code Here

TOP

Related Classes of io.fathom.cloud.protobuf.CloudModel.MetadataData

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.