Package org.openstack.model.compute

Examples of org.openstack.model.compute.Metadata


      // server.getId());

      // Even if the machine is in 'error' state, we still want to associate it with us
      if (request.tags != null) {
        Server newServerInfo = new Server();
        Metadata metadata = new Metadata();
        for (Tag tag : request.tags) {
          Metadata.Item meta = new Metadata.Item();
          meta.setKey(tag.getKey());
          meta.setValue(tag.getValue());
          metadata.getItems().add(meta);
        }

        newServerInfo.setMetadata(metadata);
        log.info("Tagging server: " + server.getId());
        computeClient.root().servers().server(server.getId()).update(newServerInfo);
View Full Code Here

TOP

Related Classes of org.openstack.model.compute.Metadata

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.