Examples of GetInstances


Examples of com.elastisys.scale.cloudadapters.aws.commons.requests.ec2.GetInstances

  private List<Instance> listGroupInstances(AutoScalingGroup autoScalingGroup) {
    List<String> instanceIds = Lists.transform(
        autoScalingGroup.getInstances(),
        AwsAutoScalingFunctions.toAutoScalingInstanceId());
    GetInstances listInstances = new GetInstances(getAwsCredentials(),
        getRegion(), new Filter("instance-id", instanceIds));
    return listInstances.call();
  }
View Full Code Here

Examples of com.elastisys.scale.cloudadapters.aws.commons.requests.ec2.GetInstances

  @Override
  public List<Instance> getInstances(List<Filter> filters) {
    checkArgument(isConfigured(), "can't use client before it's configured");

    List<Instance> instances = new GetInstances(awsCredentials(), region(),
        filters).call();
    return instances;
  }
View Full Code Here

Examples of com.elastisys.scale.cloudadapters.aws.commons.requests.ec2.GetInstances

  public Instance getInstanceMetadata(String instanceId) {
    checkArgument(isConfigured(), "can't use client before it's configured");

    Filter filter = new Filter().withName("instance-id").withValues(
        instanceId);
    List<Instance> instances = new GetInstances(awsCredentials(), region(),
        filter).call();

    if (instances.isEmpty()) {
      throw new IllegalArgumentException(String.format(
          "failed to get instance metadata: "
View Full Code Here

Examples of org.semanticweb.owlapi.owllink.builtin.requests.GetInstances

  }
 
  @Test
  public final void testGetInstances() throws OWLReasonerRuntimeException {
    for( OWLClassExpression x : ontology.getClassesInSignature() ) {
      SetOfIndividualSynsets expected = referenceReasoner.answer(new GetInstances(referenceReasoner.getDefaultKB(), x, true));
      SetOfIndividualSynsets actual = heraklesReasoner.answer(new GetInstances(heraklesReasoner.getDefaultKB(), x, true));     
      assertEquals( expected.getFlattened(), actual.getFlattened() );
   
      expected = referenceReasoner.answer(new GetInstances(referenceReasoner.getDefaultKB(), x, false));
      actual = heraklesReasoner.answer(new GetInstances(heraklesReasoner.getDefaultKB(), x, false));     
      assertEquals( expected.getFlattened(), actual.getFlattened() );
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.