public class MongoClientWrapper extends Object implements MongoClient
| Constructor and Description |
|---|
MongoClientWrapper(com.google.common.net.HostAndPort address) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
com.google.common.net.HostAndPort |
getAddress() |
protected com.mongodb.MongoClient |
getDriverClient() |
com.eightkdata.mongowp.mongoserver.MongoVersion |
getMongoVersion() |
boolean |
isClosed() |
MongoConnection |
openConnection() |
public MongoClientWrapper(com.google.common.net.HostAndPort address)
throws UnreachableMongoServerException
UnreachableMongoServerExceptionpublic com.google.common.net.HostAndPort getAddress()
getAddress in interface MongoClientpublic com.eightkdata.mongowp.mongoserver.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 © 2014–2015 8Kdata. All rights reserved.