-
- 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.
-
-
Field Summary
Fields Modifier and Type Field Description private static TransportAddressmaskprivate static TransportAddressface
-
Constructor Summary
Constructors Constructor Description AwsCandidateHarvester()Creates an AWS harvester.
-
Method Summary
Modifier and Type Method Description TransportAddressgetMask()Returns the public (mask) address, or null. TransportAddressgetFace()Returns the local (face) address, or null. static synchronized booleansmellsLikeAnEC2()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
-
-
Method Detail
-
getMask
TransportAddress getMask()
Returns the public (mask) address, or null.
-
getFace
TransportAddress getFace()
Returns the local (face) address, or null.
-
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.
-
-
-
-