public synchronized DataEndpointAgent getDataEndpointAgent(String type) throws DataEndpointAgentConfigurationException { DataEndpointAgent agent = this.dataEndpointAgents.get(type.toLowerCase()); if (agent == null) { throw new DataEndpointAgentConfigurationException("No data agent configured for the type: " + type.toLowerCase()); } return agent; }
public synchronized DataEndpointAgent getDataEndpointAgent(String type) throws DataEndpointAgentConfigurationException { DataEndpointAgent agent = this.dataEndpointAgents.get(type.toLowerCase()); if (agent == null) { throw new DataEndpointAgentConfigurationException("No data agent configured for the type: " + type.toLowerCase()); } return agent; }
agentConfiguration.setName(endpointNameConfig.toString().trim()); } else { throw new DataEndpointAgentConfigurationException("Endpoint name is not set in " + DataEndpointConstants.DATA_AGENT_CONF_FILE_NAME); agentConfiguration.setDataEndpointClass(endpointClassConfig.toString().trim()); } else { throw new DataEndpointAgentConfigurationException("Endpoint class name is not set in " + DataEndpointConstants.DATA_AGENT_CONF_FILE_NAME + " for name: " + endpointNameConfig); throw new DataEndpointAgentConfigurationException("Data Agents are not defined in " + DataEndpointConstants.DATA_AGENT_CONF_FILE_NAME);
agentConfiguration.setName(endpointNameConfig.toString().trim()); } else { throw new DataEndpointAgentConfigurationException("Endpoint name is not set in " + DataEndpointConstants.DATA_AGENT_CONF_FILE_NAME); agentConfiguration.setDataEndpointClass(endpointClassConfig.toString().trim()); } else { throw new DataEndpointAgentConfigurationException("Endpoint class name is not set in " + DataEndpointConstants.DATA_AGENT_CONF_FILE_NAME + " for name: " + endpointNameConfig); throw new DataEndpointAgentConfigurationException("Data Agents are not defined in " + DataEndpointConstants.DATA_AGENT_CONF_FILE_NAME);
throw new DataEndpointAgentConfigurationException("Exception when loading databridge " + "agent configuration.", e); agentConfiguration.setTrustStorePath(System.getProperty("javax.net.ssl.trustStore")); if (agentConfiguration.getTrustStorePath() == null) { throw new DataEndpointAgentConfigurationException("No trustStore found"); "javax.net.ssl.trustStorePassword")); if (agentConfiguration.getTrustStorePassword() == null) { throw new DataEndpointAgentConfigurationException("No trustStore password found"); throw new DataEndpointAgentConfigurationException("Error while loading the configuration file " + configPath, e);
DATA_AGENT_CONFIG_NAMESPACE)); } else { throw new DataEndpointAgentConfigurationException("Cannot find the databridge agent " + "configuration file in the specified path"); throw new DataEndpointAgentConfigurationException("Error in when loading databridge agent " + "configuration", e); agentConfiguration.setTrustStorePath(System.getProperty("javax.net.ssl.trustStore")); if (agentConfiguration.getTrustStorePath() == null) { throw new DataEndpointAgentConfigurationException("No trustStore found"); "javax.net.ssl.trustStorePassword")); if (agentConfiguration.getTrustStorePassword() == null) { throw new DataEndpointAgentConfigurationException("No trustStore password found"); throw new DataEndpointAgentConfigurationException("Error while loading the configuration file " + configPath, e);
throw new DataEndpointAgentConfigurationException("Error while creating the client pool " + e.getMessage(), e);
throw new DataEndpointAgentConfigurationException("Error while creating the client pool " + e.getMessage(), e);