Package 

Class AwsCandidateHarvester

  • All Implemented Interfaces:
    org.ice4j.ice.harvest.CandidateHarvester

    
    public class AwsCandidateHarvester
    extends MappingCandidateHarvester
                        

    Uses the Amazon AWS APIs to retrieve the public and private IPv4 addresses for an EC2 instance.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
      AwsCandidateHarvester() Creates an AWS harvester.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      TransportAddress getMask() Returns the public (mask) address, or null.
      TransportAddress getFace() Returns the local (face) address, or null.
      static synchronized boolean smellsLikeAnEC2() Determines if there is a decent chance for the box executing this application to be an AWS EC2 instance and returns true if so.
      • Methods inherited from class org.ice4j.ice.harvest.MappingCandidateHarvester

        getFace, getMask, getMatchPort, getName, harvest, publicAddressMatches
      • Methods inherited from class org.ice4j.ice.harvest.AbstractCandidateHarvester

        getHarvestStatistics, isHostHarvester
      • Methods inherited from class org.ice4j.ice.harvest.CandidateHarvester

        harvest
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AwsCandidateHarvester

        AwsCandidateHarvester()
        Creates an AWS harvester.
    • Method Detail

      • smellsLikeAnEC2

         static synchronized boolean smellsLikeAnEC2()

        Determines if there is a decent chance for the box executing this application to be an AWS EC2 instance and returns true if so.