-
- All Implemented Interfaces:
public class MappingCandidateHarvestersManages a static list of MappingCandidateHarvester instances, created according to configuration provided as system properties. The instances in the set are safe to use by any
Agents.
-
-
Field Summary
Fields Modifier and Type Field Description private static Array<MappingCandidateHarvester>harvesterspublic static booleanstunDiscoveryFailed
-
Method Summary
Modifier and Type Method Description static Array<MappingCandidateHarvester>getHarvesters()static MappingCandidateHarvesterfindHarvesterForAddress(TransportAddress publicAddress)static synchronized voidinitialize()Initializes harvesters. -
-
Method Detail
-
getHarvesters
static Array<MappingCandidateHarvester> getHarvesters()
-
findHarvesterForAddress
static MappingCandidateHarvester findHarvesterForAddress(TransportAddress publicAddress)
-
initialize
static synchronized void initialize()
Initializes harvesters. First it reads the configuration and instantiates harvesters accordingly, waiting for their initialization (which may include network communication and thus take a long time). Then it removes harvesters which failed to initialize properly and remove any harvesters with duplicate addresses. Three types of mapping harvesters are supported: NAT (with pre-configured addresses), AWS and STUN.
-
-
-
-