congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
org.jclouds.ec2.compute.functions
Code IndexAdd Tabnine to your IDE (free)

How to use org.jclouds.ec2.compute.functions

Best Java code snippets using org.jclouds.ec2.compute.functions (Showing top 20 results out of 315)

origin: jclouds/legacy-jclouds

public static Map<RegionAndName, ? extends Image> imagesToMap(Iterable<? extends Image> input) {
 return new ImagesToRegionAndIdMap().apply(input);
}
origin: apache/jclouds

private EC2SecurityGroupToSecurityGroup createGroupParser(final ImmutableSet<Location> locations) {
 Supplier<Set<? extends Location>> locationSupplier = new Supplier<Set<? extends Location>>() {
   @Override
   public Set<? extends Location> get() {
    return locations;
   }
 };
 EC2SecurityGroupToSecurityGroup parser = new EC2SecurityGroupToSecurityGroup(locationSupplier);
 return parser;
}
origin: jclouds/legacy-jclouds

private Location getLocationForAvailabilityZoneOrRegion(final RunningInstance instance) {
 Location location = findLocationWithId(instance.getAvailabilityZone());
 if (location == null)
   location = findLocationWithId(instance.getRegion());
 return location;
}
origin: jclouds/legacy-jclouds

@Override
public KeyPair apply(RegionAndName from) {
 return createNewKeyPairInRegion(from.getRegion(), from.getName());
}
origin: jclouds/legacy-jclouds

private void checkGroupName(RunningInstance instance) {
 assertEquals("groupname", createNodeParser(ImmutableSet.<Hardware> of(), ImmutableSet
    .<Location> of(), ImmutableSet.<Image> of(), ImmutableMap.<String, Credentials> of())
    .apply(instance).getGroup());
}
origin: jclouds/legacy-jclouds

protected RunningInstanceToNodeMetadata createNodeParser(final ImmutableSet<Hardware> hardware,
    final ImmutableSet<Location> locations, final Set<org.jclouds.compute.domain.Image> images,
    Map<String, Credentials> credentialStore) {
 Map<InstanceState, Status> instanceToNodeStatus = EC2ComputeServiceDependenciesModule.toPortableNodeStatus;
 CacheLoader<RegionAndName, Image> getRealImage = new CacheLoader<RegionAndName, Image>() {
   @Override
   public Image load(@Nullable RegionAndName from) {
    return ImagesToRegionAndIdMap.imagesToMap(images).get(from);
   }
 };
 LoadingCache<RegionAndName, Image> instanceToImage = CacheBuilder.newBuilder().build(getRealImage);
 return createNodeParser(hardware, locations, credentialStore, instanceToNodeStatus, instanceToImage);
}
origin: org.apache.jclouds.api/ec2

public static Map<RegionAndName, ? extends Image> imagesToMap(Iterable<? extends Image> input) {
 return new ImagesToRegionAndIdMap().apply(input);
}
origin: org.apache.jclouds.api/ec2

@Override
public KeyPair apply(RegionAndName from) {
 return createNewKeyPairInRegion(from.getRegion(), from.getName());
}
origin: org.apache.jclouds.api/ec2

private Location getLocationForAvailabilityZoneOrRegion(final RunningInstance instance) {
 Location location = findLocationWithId(instance.getAvailabilityZone());
 if (location == null)
   location = findLocationWithId(instance.getRegion());
 return location;
}
origin: apache/jclouds

private void checkGroupName(RunningInstance instance) {
 assertEquals("groupname", createNodeParser(ImmutableSet.<Hardware> of(), ImmutableSet
    .<Location> of(), ImmutableSet.<Image> of(), ImmutableMap.<String, Credentials> of())
    .apply(instance).getGroup());
}
origin: apache/jclouds

protected RunningInstanceToNodeMetadata createNodeParser(final ImmutableSet<Hardware> hardware,
    final ImmutableSet<Location> locations, final Set<org.jclouds.compute.domain.Image> images,
    Map<String, Credentials> credentialStore) {
 Map<InstanceState, Status> instanceToNodeStatus = EC2ComputeServiceDependenciesModule.toPortableNodeStatus;
 CacheLoader<RegionAndName, Image> getRealImage = new CacheLoader<RegionAndName, Image>() {
   @Override
   public Image load(@Nullable RegionAndName from) {
    return ImagesToRegionAndIdMap.imagesToMap(images).get(from);
   }
 };
 LoadingCache<RegionAndName, Image> instanceToImage = CacheBuilder.newBuilder().build(getRealImage);
 return createNodeParser(hardware, locations, credentialStore, instanceToNodeStatus, instanceToImage);
}
origin: org.jclouds.api/ec2

public static Map<RegionAndName, ? extends Image> imagesToMap(Iterable<? extends Image> input) {
 return new ImagesToRegionAndIdMap().apply(input);
}
origin: com.amysta.jclouds.api/ec2

@Override
public KeyPair apply(RegionAndName from) {
 return createNewKeyPairInRegion(from.getRegion(), from.getName());
}
origin: org.jclouds.api/ec2

private Location getLocationForAvailabilityZoneOrRegion(final RunningInstance instance) {
 Location location = findLocationWithId(instance.getAvailabilityZone());
 if (location == null)
   location = findLocationWithId(instance.getRegion());
 return location;
}
origin: com.amysta.jclouds.api/ec2

public static Map<RegionAndName, ? extends Image> imagesToMap(Iterable<? extends Image> input) {
 return new ImagesToRegionAndIdMap().apply(input);
}
origin: org.jclouds.api/ec2

@Override
public KeyPair apply(RegionAndName from) {
 return createNewKeyPairInRegion(from.getRegion(), from.getName());
}
origin: com.amysta.jclouds.api/ec2

private Location getLocationForAvailabilityZoneOrRegion(final RunningInstance instance) {
 Location location = findLocationWithId(instance.getAvailabilityZone());
 if (location == null)
   location = findLocationWithId(instance.getRegion());
 return location;
}
origin: apache/jclouds

public static Map<RegionAndName, ? extends Image> imagesToMap(Iterable<? extends Image> input) {
 return new ImagesToRegionAndIdMap().apply(input);
}
origin: apache/jclouds

@Override
public KeyPair apply(RegionAndName from) {
 return createNewKeyPairInRegion(from.getRegion(), from.getName());
}
origin: apache/jclouds

private Location getLocationForAvailabilityZoneOrRegion(final RunningInstance instance) {
 Location location = findLocationWithId(instance.getAvailabilityZone());
 if (location == null)
   location = findLocationWithId(instance.getRegion());
 return location;
}
org.jclouds.ec2.compute.functions

Most used classes

  • ImagesToRegionAndIdMap
  • EC2ImageParser
  • PresentInstances
    returns the instances present in the list. Makes a single rest call per aggregate on region.
  • RunningInstanceToNodeMetadata
  • CreateUniqueKeyPair
  • CredentialsForInstance,
  • EC2SecurityGroupToSecurityGroup,
  • PasswordCredentialsFromWindowsInstance,
  • AddElasticIpsToNodemetadata,
  • AddElasticIpsToNodemetadataTest,
  • CreateUniqueKeyPairTest$1,
  • CreateUniqueKeyPairTest$2,
  • EC2ImageParserTest$1,
  • EC2ImageParserTest,
  • RunningInstanceToNodeMetadataTest$5,
  • RunningInstanceToNodeMetadataTest,
  • EC2SecurityGroupToSecurityGroupTest,
  • PasswordCredentialsFromWindowsInstanceLiveTest
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now