java.lang.Object |
↳ |
org.mule.module.mongo.MongoObjectStore |
Class Overview
A PartitionableExpirableObjectStore backed by MongoDB.
Summary
Fields |
private
static
final
List<String> |
NO_FIELD_LIST |
|
private
MuleContext |
context |
|
private
String |
database |
The database name of the Mongo server
|
private
String |
host |
The host of the Mongo server
|
private
MongoClient |
mongoClient |
|
private
String |
password |
The password used to connect to the Mongo server
|
private
int |
port |
The port of the Mongo server
|
private
String |
username |
The username used to connect to the Mongo server
|
private
WriteConcern |
writeConcern |
The default concern to use to when writing to Mongo
|
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
From interface
org.mule.api.context.MuleContextAware
abstract
void
|
setMuleContext(MuleContext arg0)
|
|
From interface
org.mule.api.store.ExpirableObjectStore
abstract
void
|
expire(int arg0, int arg1)
|
|
From interface
org.mule.api.store.ListableObjectStore
abstract
List<Serializable>
|
allKeys()
|
abstract
void
|
close()
|
abstract
void
|
open()
|
|
From interface
org.mule.api.store.ObjectStore
abstract
void
|
clear()
|
abstract
boolean
|
contains(Serializable arg0)
|
abstract
boolean
|
isPersistent()
|
abstract
T
|
remove(Serializable arg0)
|
abstract
T
|
retrieve(Serializable arg0)
|
abstract
void
|
store(Serializable arg0, T arg1)
|
|
From interface
org.mule.api.store.PartitionableExpirableObjectStore
abstract
void
|
expire(int arg0, int arg1, String arg2)
|
|
From interface
org.mule.api.store.PartitionableObjectStore
abstract
List<Serializable>
|
allKeys(String arg0)
|
abstract
List<String>
|
allPartitions()
|
abstract
void
|
clear(String arg0)
|
abstract
void
|
close(String arg0)
|
abstract
boolean
|
contains(Serializable arg0, String arg1)
|
abstract
void
|
disposePartition(String arg0)
|
abstract
void
|
open(String arg0)
|
abstract
T
|
remove(Serializable arg0, String arg1)
|
abstract
T
|
retrieve(Serializable arg0, String arg1)
|
abstract
void
|
store(Serializable arg0, T arg1, String arg2)
|
|
Constants
private
static
final
String
ID_FIELD
private
static
final
String
KEY_FIELD
private
static
final
String
OBJECTSTORE_COLLECTION_PREFIX
Constant Value:
"mule.objectstore."
private
static
final
String
OBJECTSTORE_DEFAULT_PARTITION_NAME
Constant Value:
"_default"
private
static
final
String
TIMESTAMP_FIELD
Constant Value:
"timestamp"
private
static
final
String
VALUE_FIELD
Fields
private
static
final
List<String>
NO_FIELD_LIST
private
MuleContext
context
private
String
database
The database name of the Mongo server
private
String
host
The host of the Mongo server
private
String
password
The password used to connect to the Mongo server
private
int
port
The port of the Mongo server
private
String
username
The username used to connect to the Mongo server
The default concern to use to when writing to Mongo
Public Constructors
public
MongoObjectStore
()
Public Methods
public
List<Serializable>
allKeys
()
public
List<Serializable>
allKeys
(String partitionName)
public
List<String>
allPartitions
()
public
void
clear
(String s)
public
void
close
(String partitionName)
public
boolean
contains
(Serializable key, String partitionName)
public
boolean
contains
(Serializable key)
public
void
disposePartition
(String partitionName)
public
void
expire
(int entryTtl, int maxEntries)
public
void
expire
(int entryTtl, int ignoredMaxEntries, String partitionName)
Parameters
entryTtl
| |
ignoredMaxEntries
| |
partitionName
| |
public
String
getDatabase
()
public
String
getPassword
()
public
String
getUsername
()
public
void
initialize
()
public
boolean
isPersistent
()
public
void
open
(String partitionName)
public
Serializable
remove
(Serializable key, String partitionName)
public
Serializable
remove
(Serializable key)
public
Serializable
retrieve
(Serializable key)
public
Serializable
retrieve
(Serializable key, String partitionName)
public
void
setDatabase
(String database)
public
void
setHost
(String host)
public
void
setMuleContext
(MuleContext context)
public
void
setPassword
(String password)
public
void
setPort
(int port)
public
void
setUsername
(String username)
public
void
store
(Serializable key, Serializable value)
public
void
store
(Serializable key, Serializable value, String partitionName)