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

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


    @GET
    @Path("{id}")
    public WrappedServer doServerGet(@PathParam("id") String id) throws CloudException {
        InstanceData instance = getInstance(id);

        WrappedServer response = new WrappedServer();

        ReservationData reservation = getReservation(instance.getReservationId());

        response.server = toModel(reservation, instance, true);
        return response;
View Full Code Here


        if (request.server.name != null && !Objects.equal(instance.getName(), request.server.name)) {
            instance = instances.updateInstance(getProject(), instance.getId(), request.server.name);
        }

        WrappedServer response = new WrappedServer();

        ReservationData reservation = getReservation(instance.getReservationId());

        response.server = toModel(reservation, instance, true);
        return response;
View Full Code Here

            action.instanceTemplate = instance.build();
        }

        StartInstancesAction.Result result = action.go();

        WrappedServer response = new WrappedServer();

        if (result.instances.size() != 1) {
            throw new IllegalStateException();
        }
View Full Code Here

TOP

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

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.