Package de.mhus.karaf.mongo.api
Class MongoRedirect
- java.lang.Object
-
- de.mhus.karaf.mongo.api.MongoRedirect
-
- All Implemented Interfaces:
de.mhus.lib.basics.Named,de.mhus.lib.mongo.xdb.MongoDataSource
public class MongoRedirect extends Object implements de.mhus.lib.mongo.xdb.MongoDataSource
-
-
Constructor Summary
Constructors Constructor Description MongoRedirect(String target)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.mongodb.MongoClientgetConnection()StringgetHost()StringgetName()intgetPort()protected de.mhus.lib.mongo.xdb.MongoDataSourcegetRedirect()booleanisConnected()voidreset()
-
-
-
Constructor Detail
-
MongoRedirect
public MongoRedirect(String target)
-
-
Method Detail
-
getRedirect
protected de.mhus.lib.mongo.xdb.MongoDataSource getRedirect() throws de.mhus.lib.errors.NotFoundException- Throws:
de.mhus.lib.errors.NotFoundException
-
getName
public String getName()
- Specified by:
getNamein interfacede.mhus.lib.basics.Named
-
getPort
public int getPort()
- Specified by:
getPortin interfacede.mhus.lib.mongo.xdb.MongoDataSource
-
isConnected
public boolean isConnected()
- Specified by:
isConnectedin interfacede.mhus.lib.mongo.xdb.MongoDataSource
-
reset
public void reset()
- Specified by:
resetin interfacede.mhus.lib.mongo.xdb.MongoDataSource
-
getHost
public String getHost()
- Specified by:
getHostin interfacede.mhus.lib.mongo.xdb.MongoDataSource
-
getConnection
public com.mongodb.MongoClient getConnection()
- Specified by:
getConnectionin interfacede.mhus.lib.mongo.xdb.MongoDataSource
-
-