public class Mongo extends Object implements sirius.kernel.Startable, sirius.kernel.Stoppable
Modifier and Type | Field and Description |
---|---|
protected sirius.kernel.health.Average |
callDuration |
static sirius.kernel.health.Log |
LOG |
protected boolean |
temporaryDB |
protected Map<String,sirius.kernel.commons.Tuple<String,String>> |
traceData |
protected int |
traceLimit |
protected boolean |
tracing |
Constructor and Description |
---|
Mongo() |
Modifier and Type | Method and Description |
---|---|
com.mongodb.client.MongoDatabase |
db()
Provides direct access to the Mongo DB for non-trivial operations.
|
Deleter |
delete()
Returns a fluent query builder to delete one or more documents in the database
|
Finder |
find()
Returns a fluent query builder to find one or more documents in the database
|
int |
getPriority() |
protected void |
initializeClient() |
Inserter |
insert()
Returns a fluent query builder to insert a document into the database
|
boolean |
isConfigured()
Determines if access to Mongo DB is configured by checking if a host is given.
|
void |
started() |
void |
stopped() |
Updater |
update()
Returns a fluent query builder to update one or more documents in the database
|
public static final sirius.kernel.health.Log LOG
protected boolean temporaryDB
protected volatile boolean tracing
protected volatile int traceLimit
protected sirius.kernel.health.Average callDuration
public boolean isConfigured()
public com.mongodb.client.MongoDatabase db()
protected void initializeClient()
public int getPriority()
getPriority
in interface sirius.kernel.di.std.Priorized
getPriority
in interface sirius.kernel.Startable
getPriority
in interface sirius.kernel.Stoppable
public void started()
started
in interface sirius.kernel.Startable
public void stopped()
stopped
in interface sirius.kernel.Stoppable
public Inserter insert()
public Finder find()
public Updater update()
public Deleter delete()
Copyright © 2018. All rights reserved.