com.supermap.services.rest.repository
Class MongoDBRepoSetting
- java.lang.Object
-
- RepositorySetting
-
- com.supermap.services.rest.repository.MongoDBRepoSetting
-
public class MongoDBRepoSetting extends RepositorySettingThe temporary storage setting class of MongoDB
- Since:
- 8.0.0
-
-
Field Summary
Fields Modifier and Type Field and Description java.lang.StringdbNamejava.lang.StringhostinthoursOfExpireAfterjava.lang.Stringpasswordintportjava.lang.Stringusername
-
Constructor Summary
Constructors Constructor and Description MongoDBRepoSetting()
-
Method Summary
Methods Modifier and Type Method and Description MongoDBRepoSettingdbName(java.lang.String dbName)Returns the database name of MongoDBMongoDBRepoSettinghost(java.lang.String host)Returns the service address of MongoDBMongoDBRepoSettinghoursOfExpireAfter(int hoursOfExpireAfter)Returns the expiration time of the temporary resource restored in MongoDB.MongoDBRepoSettingpassword(java.lang.String password)Returns the password of MongoDBMongoDBRepoSettingport(int port)Returns the server port of MongoDBbooleanshareable()java.lang.StringtoString()MongoDBRepoSettingusername(java.lang.String username)Returns the user name of Mongo
-
-
-
Field Detail
-
host
public java.lang.String host
-
port
public int port
-
username
public java.lang.String username
-
password
public java.lang.String password
-
dbName
public java.lang.String dbName
-
hoursOfExpireAfter
public int hoursOfExpireAfter
-
-
Method Detail
-
host
public MongoDBRepoSetting host(java.lang.String host)
Returns the service address of MongoDB
- Parameters:
host-- Returns:
- Since:
- 8.0.0
-
port
public MongoDBRepoSetting port(int port)
Returns the server port of MongoDB
- Parameters:
port-- Returns:
- Since:
- 8.0.0
-
username
public MongoDBRepoSetting username(java.lang.String username)
Returns the user name of Mongo
- Parameters:
username-- Returns:
- Since:
- 8.0.0
-
password
public MongoDBRepoSetting password(java.lang.String password)
Returns the password of MongoDB
- Parameters:
password-- Returns:
- Since:
- 8.0.0
-
dbName
public MongoDBRepoSetting dbName(java.lang.String dbName)
Returns the database name of MongoDB
- Parameters:
dbName-- Returns:
- Since:
- 8.0.0
-
hoursOfExpireAfter
public MongoDBRepoSetting hoursOfExpireAfter(int hoursOfExpireAfter)
Returns the expiration time of the temporary resource restored in MongoDB.
- Parameters:
hoursOfExpireAfter-- Returns:
- Since:
- 8.0.0
-
toString
public java.lang.String toString()
-
shareable
public boolean shareable()
-
-