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.yaml
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 static void setConfigPath(String configPath)
configPath - The path of the data-bridge-conf.xmlpublic static void shutdown()
throws DataEndpointException
DataEndpointExceptionpublic DataEndpointAgent getDataEndpointAgent(String type) throws DataEndpointAgentConfigurationException
public DataEndpointAgent getDefaultDataEndpointAgent() throws DataEndpointAgentConfigurationException
DataEndpointAgentConfigurationException - Exception to be thrown for DataEndpointAgentConfiguration
which was specified in the data.agent.config.yaml.Copyright © 2017 WSO2. All rights reserved.