Package io.fathom.cloud.compute.api.os.model

Examples of io.fathom.cloud.compute.api.os.model.ServerMetadata


    @GET
    @Path("{key}")
    public ServerMetadata getMetadataKey(@PathParam("key") String key) throws CloudException {
        InstanceData instance = getInstance();

        ServerMetadata response = buildResponse(instance);

        String value = response.metadata.get(key);
        response.metadata.clear();
        if (value != null) {
            response.metadata.put(key, value);
View Full Code Here


        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

TOP

Related Classes of io.fathom.cloud.compute.api.os.model.ServerMetadata

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.