Package org.jclouds.googlecomputeengine.domain

Examples of org.jclouds.googlecomputeengine.domain.InstanceInZone


                       }
                    })
              .toSet();
      instanceApi.setTagsInZone(zone, instance.get().getName(), tags, instance.get().getTags().getFingerprint());

      InstanceInZone instanceInZone = new InstanceInZone(instance.get(), zone);

      return new NodeAndInitialCredentials<InstanceInZone>(instanceInZone, instanceInZone.slashEncode(), credentials);
   }
View Full Code Here


      SlashEncodedIds slashEncodedIds = SlashEncodedIds.fromSlashEncoded(name);

      Instance instance= api.getInstanceApiForProject(userProject.get()).getInZone(slashEncodedIds.getFirstId(),
              slashEncodedIds.getSecondId());

      return instance == null null : new InstanceInZone(instance, slashEncodedIds.getFirstId());
   }
View Full Code Here

            return api.getInstanceApiForProject(userProject.get()).listInZone(input.getId()).concat()
                    .transform(new Function<Instance, InstanceInZone>() {

                       @Override
                       public InstanceInZone apply(Instance arg0) {
                          return new InstanceInZone(arg0, input.getId());
                       }
                    }).toSet();
         }
      }).toSet();
   }
View Full Code Here

               return input.get() != null;
            }
         }, operationCompleteCheckTimeout, operationCompleteCheckInterval, MILLISECONDS).apply(instance);
      }

      InstanceInZone instanceInZone = new InstanceInZone(instance.get(), template.getLocation().getId());

      return new NodeAndInitialCredentials<InstanceInZone>(instanceInZone, instanceInZone.slashEncode(), credentials);
   }
View Full Code Here

      SlashEncodedIds slashEncodedIds = SlashEncodedIds.fromSlashEncoded(name);

      Instance instance= api.getInstanceApiForProject(userProject.get()).getInZone(slashEncodedIds.getFirstId(),
              slashEncodedIds.getSecondId());

      return instance == null null : new InstanceInZone(instance, slashEncodedIds.getFirstId());
   }
View Full Code Here

            return api.getInstanceApiForProject(userProject.get()).listInZone(input.getId()).concat()
                    .transform(new Function<Instance, InstanceInZone>() {

                       @Override
                       public InstanceInZone apply(Instance arg0) {
                          return new InstanceInZone(arg0, input.getId());
                       }
                    }).toSet();
         }
      }).toSet();
   }
View Full Code Here

                       }
                    })
              .toSet();
      instanceApi.setTagsInZone(zone, instance.get().getName(), tags, instance.get().getTags().getFingerprint());

      InstanceInZone instanceInZone = new InstanceInZone(instance.get(), zone);

      return new NodeAndInitialCredentials<InstanceInZone>(instanceInZone, instanceInZone.slashEncode(), credentials);
   }
View Full Code Here

      SlashEncodedIds slashEncodedIds = SlashEncodedIds.fromSlashEncoded(name);

      Instance instance= api.getInstanceApiForProject(userProject.get()).getInZone(slashEncodedIds.getFirstId(),
              slashEncodedIds.getSecondId());

      return instance == null null : new InstanceInZone(instance, slashEncodedIds.getFirstId());
   }
View Full Code Here

            return api.getInstanceApiForProject(userProject.get()).listInZone(input.getId()).concat()
                    .transform(new Function<Instance, InstanceInZone>() {

                       @Override
                       public InstanceInZone apply(Instance arg0) {
                          return new InstanceInZone(arg0, input.getId());
                       }
                    }).toSet();
         }
      }).toSet();
   }
View Full Code Here

            userProjectSupplier);
   }

   @Test
   public final void testTagFilteringWorks() {
      InstanceInZone instanceInZone = new InstanceInZone(instance, "zoneId");
      NodeMetadata nodeMetadata = groupGroupNodeParser.apply(instanceInZone);
      assertEquals(nodeMetadata.getId(), "id/test-0");
      assertEquals(nodeMetadata.getTags(), ImmutableSet.<String>of(
            "aTag"  // "aTag" kept as a non firewall tag.
            // "Group-port-42" filtered out as a firewall tag.
View Full Code Here

TOP

Related Classes of org.jclouds.googlecomputeengine.domain.InstanceInZone

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.