Package de.caluga.morphium.driver.wire
Class PooledDriver
java.lang.Object
de.caluga.morphium.driver.wire.DriverBase
de.caluga.morphium.driver.wire.PooledDriver
- All Implemented Interfaces:
MorphiumDriver,Closeable,AutoCloseable
-
Nested Class Summary
Nested classes/interfaces inherited from interface de.caluga.morphium.driver.MorphiumDriver
MorphiumDriver.DriverStatsKey -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidclose()voidvoidvoidconnect()void<T,R> Aggregator<T, R> createAggregator(Morphium morphium, Class<? extends T> type, Class<? extends R> resultType) createBulkContext(Morphium m, String db, String collection, boolean ordered, WriteConcern wc) currentOp(int threshold) booleangetCollStats(String db, String coll) getDbStats(String db) getDbStats(String db, boolean withStorage) getDBStats(String db) getName()booleanbooleanprotected voidkillCursors(String db, String coll, long... ids) voidvoidsetConnectionUrl(String connectionUrl) protected voidvoidwatch(WatchCommand settings) Methods inherited from class de.caluga.morphium.driver.wire.DriverBase
clearTransactionContext, exists, getAuthDb, getConnectionTimeout, getCredentials, getDefaultBatchSize, getDefaultJ, getDefaultReadPreference, getDefaultW, getDefaultWriteTimeout, getHeartbeatFrequency, getHostSeed, getLocalThreshold, getMaxBsonObjectSize, getMaxConnectionIdleTime, getMaxConnectionLifetime, getMaxConnections, getMaxConnectionsPerHost, getMaximums, getMaxMessageSize, getMaxWaitTime, getMaxWriteBatchSize, getMinConnections, getMinConnectionsPerHost, getNextId, getPassword, getReadTimeout, getReplicaSetName, getRetriesOnNetworkError, getSleepBetweenErrorRetries, getTransactionContext, getUser, getUuidRepresentation, heartBeatFrequency, isDefaultJ, isReplicaset, isReplicaSet, isRetryReads, isRetryWrites, isTransactionInProgress, isUseSSL, listCollections, listDatabases, setAuthDb, setConnectionTimeout, setCredentials, setDefaultBatchSize, setDefaultJ, setDefaultReadPreference, setDefaultW, setDefaultWriteTimeout, setHeartbeatFrequency, setHostSeed, setHostSeed, setLocalThreshold, setMaxBsonObjectSize, setMaxConnectionIdleTime, setMaxConnectionLifetime, setMaxConnections, setMaxConnectionsPerHost, setMaxMessageSize, setMaxWaitTime, setMaxWriteBatchSize, setMinConnections, setMinConnectionsPerHost, setPassword, setReadTimeout, setReplicaSet, setReplicaSetName, setRetriesOnNetworkError, setRetryReads, setRetryWrites, setSleepBetweenErrorRetries, setTransactionContext, setUser, setUseSSL, setUuidRepresentation, startTransaction, useSsl
-
Field Details
-
driverName
- See Also:
-
-
Constructor Details
-
PooledDriver
public PooledDriver()
-
-
Method Details
-
connect
- Throws:
MorphiumDriverException
-
connect
- Throws:
MorphiumDriverException
-
startHeartbeat
protected void startHeartbeat() -
watch
- Specified by:
watchin interfaceMorphiumDriver- Specified by:
watchin classDriverBase- Throws:
MorphiumDriverException
-
getReadConnection
-
getPrimaryConnection
- Throws:
MorphiumDriverException
-
releaseConnection
-
isConnected
public boolean isConnected() -
createAggregator
public <T,R> Aggregator<T,R> createAggregator(Morphium morphium, Class<? extends T> type, Class<? extends R> resultType) -
getName
-
setConnectionUrl
- Specified by:
setConnectionUrlin interfaceMorphiumDriver- Overrides:
setConnectionUrlin classDriverBase
-
close
public void close() -
killCursors
- Throws:
MorphiumDriverException
-
commitTransaction
- Throws:
MorphiumDriverException
-
abortTransaction
- Throws:
MorphiumDriverException
-
getReplsetStatus
- Throws:
MorphiumDriverException
-
getDBStats
- Throws:
MorphiumDriverException
-
getCollStats
- Throws:
MorphiumDriverException
-
currentOp
- Throws:
MorphiumDriverException
-
closeIteration
- Throws:
MorphiumDriverException
-
getDbStats
- Throws:
MorphiumDriverException
-
exists
- Throws:
MorphiumDriverException
-
getDbStats
- Throws:
MorphiumDriverException
-
getNumConnectionsByHost
-
isCapped
- Specified by:
isCappedin interfaceMorphiumDriver- Specified by:
isCappedin classDriverBase- Throws:
MorphiumDriverException
-
createBulkContext
public BulkRequestContext createBulkContext(Morphium m, String db, String collection, boolean ordered, WriteConcern wc) -
getDriverStats
-