|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.wso2.carbon.databridge.agent.AgentHolder
public class AgentHolder
The holder for all Agents created and this is singleton class. The Agents will be loaded by reading a configuration file data-agent-conf.xml default.
| Method Summary | |
|---|---|
DataEndpointAgent |
getDataEndpointAgent(String type)
|
DataEndpointAgent |
getDefaultDataEndpointAgent()
Returns the default agent,and the first element in the data-agent-conf.xml is taken as default data publisher type. |
static AgentHolder |
getInstance()
|
static void |
setConfigPath(String configPath)
Set the data-agent-conf.xml path from which the Agents for all endpoint types will be loaded. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static AgentHolder getInstance()
throws DataEndpointAgentConfigurationException
DataEndpointAgentConfigurationException
public DataEndpointAgent getDataEndpointAgent(String type)
throws DataEndpointAgentConfigurationException
DataEndpointAgentConfigurationException
public DataEndpointAgent getDefaultDataEndpointAgent()
throws DataEndpointAgentConfigurationException
DataEndpointAgentConfigurationExceptionpublic static void setConfigPath(String configPath)
configPath - The path of the data-bridge-conf.xml
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||