public class AgentHolder extends Object
| Modifier and Type | Method and Description |
|---|---|
DataEndpointAgent |
getDataEndpointAgent(String type) |
DataEndpointAgent |
getDefaultDataEndpointAgent()
Returns the default agent,and the first element in the data-agent-config.xml
is taken as default data publisher type.
|
static AgentHolder |
getInstance() |
static void |
setConfigPath(String configPath)
Set the data-agent-config.xml path from which the Agents for all endpoint types will be loaded.
|
static void |
shutdown() |
public static AgentHolder getInstance() throws DataEndpointAgentConfigurationException
public DataEndpointAgent getDataEndpointAgent(String type) throws DataEndpointAgentConfigurationException
public DataEndpointAgent getDefaultDataEndpointAgent() throws DataEndpointAgentConfigurationException
DataEndpointAgentConfigurationExceptionpublic static void setConfigPath(String configPath)
configPath - The path of the data-bridge-conf.xmlpublic static void shutdown()
throws DataEndpointException
DataEndpointExceptionCopyright © 2016 WSO2. All rights reserved.