public class MongoDBHolderService extends Object implements Serializable
Constructor and Description |
---|
MongoDBHolderService() |
MongoDBHolderService(String user,
hudson.util.Secret password,
int port,
String host,
String database) |
Modifier and Type | Method and Description |
---|---|
com.mongodb.MongoClient |
createClient() |
String |
getDatabase() |
String |
getHost() |
hudson.util.Secret |
getPassword() |
int |
getPort() |
String |
getUser() |
void |
setDatabase(String database) |
void |
setHost(String host) |
void |
setPassword(hudson.util.Secret password) |
void |
setPort(int port) |
void |
setUser(String user) |
String |
testConnection(String collection) |
public MongoDBHolderService(String user, hudson.util.Secret password, int port, String host, String database)
public MongoDBHolderService()
public com.mongodb.MongoClient createClient() throws UnknownHostException
UnknownHostException
public String testConnection(String collection) throws CompatibilityDataException
CompatibilityDataException
public hudson.util.Secret getPassword()
public void setPassword(hudson.util.Secret password)
password
- the password to setpublic String getUser()
public void setUser(String user)
user
- the user to setpublic int getPort()
public void setPort(int port)
port
- the port to setpublic String getHost()
public void setHost(String host)
host
- the host to setpublic String getDatabase()
public void setDatabase(String database)
database
- the database to setCopyright © 2004-2015. All Rights Reserved.