Package de.caluga.morphium.driver
Schnittstelle MorphiumDriver
- Alle Superschnittstellen:
AutoCloseable,Closeable
- Alle bekannten Implementierungsklassen:
DriverBase,InMemoryDriver,PooledDriver,SingleMongoConnectDriver
Morphium driver interface
All drivers need to implement this interface. you can add your own drivers to morphium. These are actually not limited to be mongodb drivers. There is also an InMemory implementation.
-
Verschachtelte Klassen - Übersicht
Verschachtelte Klassen -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidvoidvoidconnect()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) booleanbooleangetCollStats(String db, String coll) intString[]getCredentials(String db) getDBStats(String db) intbooleanintintintintintintintintintintintintintgetName()intintintbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanisUseSSL()listCollections(String db, String pattern) voidvoidsetConnectionTimeout(int timeout) voidsetConnectionUrl(String connectionUrl) voidsetCredentials(String db, String login, String pwd) voidsetDefaultBatchSize(int defaultBatchSize) voidsetDefaultJ(boolean j) voidvoidsetDefaultW(int w) voidsetDefaultWriteTimeout(int wt) voidsetHeartbeatFrequency(int heartbeatFrequency) voidsetHostSeed(String... host) voidsetHostSeed(List<String> hosts) voidsetMaxBsonObjectSize(int maxBsonObjectSize) voidsetMaxConnectionIdleTime(int time) voidsetMaxConnectionLifetime(int timeout) setMaxConnections(int maxConnections) voidsetMaxConnectionsPerHost(int maxConnectionsPerHost) voidsetMaxMessageSize(int maxMessageSize) voidsetMaxWaitTime(int maxWaitTime) voidsetMaxWriteBatchSize(int maxWriteBatchSize) setMinConnections(int minConnections) voidsetMinConnectionsPerHost(int minConnectionsPerHost) voidsetReadTimeout(int readTimeout) voidsetReplicaSet(boolean replicaSet) voidsetReplicaSetName(String replicaSetName) setRetriesOnNetworkError(int r) setRetryReads(boolean retryReads) setRetryWrites(boolean retryWrites) setSleepBetweenErrorRetries(int s) voidvoidsetUseSSL(boolean useSSL) startTransaction(boolean autoCommit) voidwatch(WatchCommand settings)
-
Methodendetails
-
getName
String getName() -
getMaxBsonObjectSize
int getMaxBsonObjectSize() -
setMaxBsonObjectSize
void setMaxBsonObjectSize(int maxBsonObjectSize) -
getMaxMessageSize
int getMaxMessageSize() -
setMaxMessageSize
void setMaxMessageSize(int maxMessageSize) -
getMaxWriteBatchSize
int getMaxWriteBatchSize() -
setMaxWriteBatchSize
void setMaxWriteBatchSize(int maxWriteBatchSize) -
isReplicaSet
boolean isReplicaSet() -
setReplicaSet
void setReplicaSet(boolean replicaSet) -
getDefaultJ
boolean getDefaultJ() -
getDefaultWriteTimeout
int getDefaultWriteTimeout() -
setDefaultWriteTimeout
void setDefaultWriteTimeout(int wt) -
getMaxWaitTime
int getMaxWaitTime() -
setMaxWaitTime
void setMaxWaitTime(int maxWaitTime) -
getCredentials
-
getHostSeed
-
setHostSeed
-
setHostSeed
-
setConnectionUrl
- Löst aus:
MalformedURLException
-
connect
- Löst aus:
MorphiumDriverException
-
connect
- Löst aus:
MorphiumDriverException
-
isConnected
boolean isConnected() -
isReplicaset
boolean isReplicaset() -
createAggregator
<T,R> Aggregator<T,R> createAggregator(Morphium morphium, Class<? extends T> type, Class<? extends R> resultType) -
listDatabases
- Löst aus:
MorphiumDriverException
-
listCollections
- Löst aus:
MorphiumDriverException
-
getReplicaSetName
String getReplicaSetName() -
setReplicaSetName
-
getRetriesOnNetworkError
int getRetriesOnNetworkError() -
setRetriesOnNetworkError
-
getSleepBetweenErrorRetries
int getSleepBetweenErrorRetries() -
setSleepBetweenErrorRetries
-
getMaxConnections
int getMaxConnections() -
setMaxConnections
-
getMinConnections
int getMinConnections() -
setMinConnections
-
isRetryReads
boolean isRetryReads() -
setRetryReads
-
isRetryWrites
boolean isRetryWrites() -
setRetryWrites
-
getReadTimeout
int getReadTimeout() -
setReadTimeout
void setReadTimeout(int readTimeout) -
getMinConnectionsPerHost
int getMinConnectionsPerHost() -
setMinConnectionsPerHost
void setMinConnectionsPerHost(int minConnectionsPerHost) -
getMaxConnectionsPerHost
int getMaxConnectionsPerHost() -
setMaxConnectionsPerHost
void setMaxConnectionsPerHost(int maxConnectionsPerHost) -
setCredentials
-
isCapped
- Löst aus:
MorphiumDriverException
-
getNumConnectionsByHost
-
startTransaction
-
isTransactionInProgress
boolean isTransactionInProgress() -
commitTransaction
- Löst aus:
MorphiumDriverException
-
getTransactionContext
MorphiumTransactionContext getTransactionContext() -
setTransactionContext
-
abortTransaction
- Löst aus:
MorphiumDriverException
-
getReplsetStatus
- Löst aus:
MorphiumDriverException
-
getDBStats
- Löst aus:
MorphiumDriverException
-
getCollStats
- Löst aus:
MorphiumDriverException
-
getMaxConnectionLifetime
int getMaxConnectionLifetime() -
setMaxConnectionLifetime
void setMaxConnectionLifetime(int timeout) -
getMaxConnectionIdleTime
int getMaxConnectionIdleTime() -
setMaxConnectionIdleTime
void setMaxConnectionIdleTime(int time) -
getConnectionTimeout
int getConnectionTimeout() -
setConnectionTimeout
void setConnectionTimeout(int timeout) -
getDefaultW
int getDefaultW() -
setDefaultW
void setDefaultW(int w) -
getHeartbeatFrequency
int getHeartbeatFrequency() -
setHeartbeatFrequency
void setHeartbeatFrequency(int heartbeatFrequency) -
getDefaultReadPreference
ReadPreference getDefaultReadPreference() -
setDefaultReadPreference
-
getDefaultBatchSize
int getDefaultBatchSize() -
setDefaultBatchSize
void setDefaultBatchSize(int defaultBatchSize) -
isUseSSL
boolean isUseSSL() -
setUseSSL
void setUseSSL(boolean useSSL) -
isDefaultJ
boolean isDefaultJ() -
setDefaultJ
void setDefaultJ(boolean j) -
watch
- Löst aus:
MorphiumDriverException
-
getReadConnection
-
getPrimaryConnection
- Löst aus:
MorphiumDriverException
-
releaseConnection
-
exists
- Löst aus:
MorphiumDriverException
-
exists
- Löst aus:
MorphiumDriverException
-
createBulkContext
BulkRequestContext createBulkContext(Morphium m, String db, String collection, boolean ordered, WriteConcern wc) -
getDriverStats
Map<MorphiumDriver.DriverStatsKey,Double> getDriverStats()
-