Package de.caluga.morphium.driver.wire
Class SingleMongoConnectDriver
java.lang.Object
de.caluga.morphium.driver.wire.DriverBase
de.caluga.morphium.driver.wire.SingleMongoConnectDriver
- All Implemented Interfaces:
MorphiumDriver,Closeable,AutoCloseable
User: Stephan Bösebeck
Date: 02.12.15
Time: 23:47
connects to one node only!
-
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) voidsetConnectionType(ConnectionType connectionType) voidsetConnectionUrl(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
-
SingleMongoConnectDriver
public SingleMongoConnectDriver()
-
-
Method Details
-
createAggregator
public <T,R> Aggregator<T,R> createAggregator(Morphium morphium, Class<? extends T> type, Class<? extends R> resultType) -
getDriverStats
-
getConnection
-
getConnectionType
-
setConnectionType
-
connect
- Throws:
MorphiumDriverException
-
connect
- Throws:
MorphiumDriverException
-
startHeartbeat
protected void startHeartbeat() -
watch
- Specified by:
watchin interfaceMorphiumDriver- Specified by:
watchin classDriverBase- Throws:
MorphiumDriverException
-
releaseConnection
-
getReadConnection
-
getPrimaryConnection
-
close
public void close() -
getName
-
setConnectionUrl
- Specified by:
setConnectionUrlin interfaceMorphiumDriver- Overrides:
setConnectionUrlin classDriverBase
-
isConnected
public boolean isConnected() -
commitTransaction
- Throws:
MorphiumDriverException
-
abortTransaction
- Throws:
MorphiumDriverException
-
getCollStats
- Throws:
MorphiumDriverException
-
getReplsetStatus
- Throws:
MorphiumDriverException
-
getDBStats
- Throws:
MorphiumDriverException
-
currentOp
- Throws:
MorphiumDriverException
-
createBulkContext
public BulkRequestContext createBulkContext(Morphium m, String db, String collection, boolean ordered, WriteConcern wc) -
closeIteration
- Throws:
MorphiumDriverException
-
killCursors
- Throws:
MorphiumDriverException
-
exists
- Throws:
MorphiumDriverException
-
getDbStats
- Throws:
MorphiumDriverException
-
getDbStats
- Throws:
MorphiumDriverException
-
isCapped
- Specified by:
isCappedin interfaceMorphiumDriver- Specified by:
isCappedin classDriverBase- Throws:
MorphiumDriverException
-
getNumConnectionsByHost
-