public class MongoDBRepoSetting
extends RepositorySetting
The temporary storage setting class of MongoDB
Modifier and Type | Field and Description |
---|---|
java.lang.String |
dbName |
java.lang.String |
host |
int |
hoursOfExpireAfter |
java.lang.String |
password |
int |
port |
java.lang.String |
username |
Constructor and Description |
---|
MongoDBRepoSetting() |
Modifier and Type | Method and Description |
---|---|
MongoDBRepoSetting |
dbName(java.lang.String dbName)
Returns the database name of MongoDB
|
MongoDBRepoSetting |
host(java.lang.String host)
Returns the service address of MongoDB
|
MongoDBRepoSetting |
hoursOfExpireAfter(int hoursOfExpireAfter)
Returns the expiration time of the temporary resource restored in MongoDB.
|
MongoDBRepoSetting |
password(java.lang.String password)
Returns the password of MongoDB
|
MongoDBRepoSetting |
port(int port)
Returns the server port of MongoDB
|
boolean |
shareable() |
java.lang.String |
toString() |
MongoDBRepoSetting |
username(java.lang.String username)
Returns the user name of Mongo
|
public java.lang.String host
public int port
public java.lang.String username
public java.lang.String password
public java.lang.String dbName
public int hoursOfExpireAfter
public MongoDBRepoSetting host(java.lang.String host)
Returns the service address of MongoDB
host
-public MongoDBRepoSetting port(int port)
Returns the server port of MongoDB
port
-public MongoDBRepoSetting username(java.lang.String username)
Returns the user name of Mongo
username
-public MongoDBRepoSetting password(java.lang.String password)
Returns the password of MongoDB
password
-public MongoDBRepoSetting dbName(java.lang.String dbName)
Returns the database name of MongoDB
dbName
-public MongoDBRepoSetting hoursOfExpireAfter(int hoursOfExpireAfter)
Returns the expiration time of the temporary resource restored in MongoDB.
hoursOfExpireAfter
-public java.lang.String toString()
public boolean shareable()