Package org.platformlayer.service.instancesupervisor.v1

Examples of org.platformlayer.service.instancesupervisor.v1.PersistentInstance


    public void doOperation(Managed<GraphiteService> managed) throws OpsException {
        DiskImageRecipe recipe = imageFactory.loadDiskImageResource(getClass(), "DiskImageRecipe.xml");
        String imageId = imageFactory.getOrCreateImage(recipe);

        GraphiteService model = (GraphiteService) managed.getModel();
        PersistentInstance persistentInstance = new PersistentInstance();
        persistentInstance.setImageId(imageId);
        persistentInstance.setDnsName(model.dnsName);

        try {
            platformLayer.create(persistentInstance);
        } catch (OpenstackClientException e) {
            throw new OpsException("Error registering persistent instance", e);
View Full Code Here

TOP

Related Classes of org.platformlayer.service.instancesupervisor.v1.PersistentInstance

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.