Package com.mongodb
Class MongoDriverInformation
- java.lang.Object
- 
- com.mongodb.MongoDriverInformation
 
- 
 public final class MongoDriverInformation extends Object The MongoDriverInformation class allows driver and library authors to add extra information about their library. This information is then available in the MongoD/MongoS logs.The following metadata can be included when creating a MongoClient.- The driver name. Eg: mongo-scala-driver
- The driver version. Eg: 1.2.0
- Extra platform information. Eg: Scala 2.11
 Note: Library authors are responsible for accepting MongoDriverInformationfrom external libraries using their library. Also all the meta data is limited to 512 bytes and any excess data will be truncated.- Since:
- 3.4
- Since server release
- 3.4
 
- The driver name. Eg: 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classMongoDriverInformation.Builder
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MongoDriverInformation.Builderbuilder()Convenience method to create a Builder.static MongoDriverInformation.Builderbuilder(MongoDriverInformation mongoDriverInformation)Convenience method to create a Builder.List<String>getDriverNames()Returns the driverNamesList<String>getDriverPlatforms()Returns the driverPlatformsList<String>getDriverVersions()Returns the driverVersions
 
- 
- 
- 
Method Detail- 
builderpublic static MongoDriverInformation.Builder builder() Convenience method to create a Builder.- Returns:
- a builder
 
 - 
builderpublic static MongoDriverInformation.Builder builder(MongoDriverInformation mongoDriverInformation) Convenience method to create a Builder.- Parameters:
- mongoDriverInformation- the mongoDriverInformation to extend
- Returns:
- a builder
 
 - 
getDriverNamespublic List<String> getDriverNames() Returns the driverNames- Returns:
- the driverNames
 
 - 
getDriverVersionspublic List<String> getDriverVersions() Returns the driverVersions- Returns:
- the driverVersions
 
 
- 
 
-