Class MmdbDatabase
- java.lang.Object
-
- technology.dice.dicewhere.building.mmdb.MmdbDatabase
-
- All Implemented Interfaces:
IPDatabase,SourceReader
- Direct Known Subclasses:
MaxmindMmdbDatabase
public class MmdbDatabase extends Object implements IPDatabase, SourceReader
-
-
Constructor Summary
Constructors Constructor Description MmdbDatabase(String name, LocationSource locationSource)MmdbDatabase(String name, LocationSource locationSource, Optional<AnonymousSource> anonymousSource)MmdbDatabase(String name, LocationSource locationSource, AnonymousSource anonymousSource)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<IpInformation>get(IP ip)ProviderKeyprovider()IPDatabaseread(boolean retainOriginalLine, LineReaderListener readerListener, LineProcessorListener processListener, DatabaseBuilderListener buildingListener, int workersCount)
-
-
-
Constructor Detail
-
MmdbDatabase
public MmdbDatabase(String name, LocationSource locationSource, Optional<AnonymousSource> anonymousSource)
-
MmdbDatabase
public MmdbDatabase(String name, LocationSource locationSource, AnonymousSource anonymousSource)
-
MmdbDatabase
public MmdbDatabase(String name, LocationSource locationSource)
-
-
Method Detail
-
get
public Optional<IpInformation> get(IP ip)
- Specified by:
getin interfaceIPDatabase
-
read
public IPDatabase read(boolean retainOriginalLine, LineReaderListener readerListener, LineProcessorListener processListener, DatabaseBuilderListener buildingListener, int workersCount)
- Specified by:
readin interfaceSourceReader
-
provider
public ProviderKey provider()
- Specified by:
providerin interfaceSourceReader
-
-