@ConnectionManagement(friendlyName="Connection String", configElementName="config-connection-string") public class ConnectionStringConfig extends Object implements AbstractConfig
Constructor and Description |
---|
ConnectionStringConfig() |
Modifier and Type | Method and Description |
---|---|
void |
connect(String connectionString) |
String |
connectionId() |
void |
disconnect() |
MongoClient |
getClient() |
String |
getDatabase() |
boolean |
isConnected() |
void |
testConnectivity(String connectionString) |
@Connect(strategy=SINGLE_INSTANCE) public void connect(@ConnectionKey String connectionString) throws org.mule.api.ConnectionException
org.mule.api.ConnectionException
@TestConnectivity public void testConnectivity(String connectionString) throws org.mule.api.ConnectionException
org.mule.api.ConnectionException
@Disconnect public void disconnect()
@ValidateConnection public boolean isConnected()
@ConnectionIdentifier public String connectionId()
public MongoClient getClient()
getClient
in interface AbstractConfig
public String getDatabase()
getDatabase
in interface AbstractConfig
Copyright © 2010–2016. All rights reserved.