public class MongoClientWrapper extends Object implements MongoClient
| Constructor and Description |
|---|
MongoClientWrapper(MongoClientConfiguration configuration) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
com.google.common.net.HostAndPort |
getAddress() |
protected com.mongodb.MongoClient |
getDriverClient() |
com.eightkdata.mongowp.MongoVersion |
getMongoVersion() |
boolean |
isClosed() |
boolean |
isRemote() |
MongoConnection |
openConnection() |
@Inject public MongoClientWrapper(MongoClientConfiguration configuration) throws UnreachableMongoServerException
UnreachableMongoServerExceptionpublic boolean isRemote()
isRemote in interface MongoClientpublic com.google.common.net.HostAndPort getAddress()
getAddress in interface MongoClientpublic com.eightkdata.mongowp.MongoVersion getMongoVersion()
getMongoVersion in interface MongoClientpublic MongoConnection openConnection()
openConnection in interface MongoClientprotected com.mongodb.MongoClient getDriverClient()
public void close()
close in interface MongoClientclose in interface Closeableclose in interface AutoCloseablepublic boolean isClosed()
isClosed in interface MongoClientCopyright © 2016 8Kdata Technology. All rights reserved.