Search in sources :

Example 6 with ConfigException

use of com.hortonworks.streamline.common.exception.ConfigException in project streamline by hortonworks.

the class TopologyLogSearchContainer method initTopologyLogSearch.

private TopologyLogSearch initTopologyLogSearch(Map<String, Object> conf, String className) {
    try {
        TopologyLogSearch topologyLogSearch = instantiate(className);
        topologyLogSearch.init(conf);
        return topologyLogSearch;
    } catch (IllegalAccessException | InstantiationException | ClassNotFoundException | ConfigException e) {
        throw new RuntimeException("Can't initialize Topology log search instance - Class Name: " + className, e);
    }
}
Also used : ConfigException(com.hortonworks.streamline.common.exception.ConfigException) DefaultTopologyLogSearch(com.hortonworks.streamline.streams.logsearch.DefaultTopologyLogSearch) TopologyLogSearch(com.hortonworks.streamline.streams.logsearch.TopologyLogSearch)

Aggregations

ConfigException (com.hortonworks.streamline.common.exception.ConfigException)6 URI (java.net.URI)2 URISyntaxException (java.net.URISyntaxException)2 ClientConfig (org.glassfish.jersey.client.ClientConfig)2 DefaultTopologyLogSearch (com.hortonworks.streamline.streams.logsearch.DefaultTopologyLogSearch)1 TopologyLogSearch (com.hortonworks.streamline.streams.logsearch.TopologyLogSearch)1 TimeSeriesQuerier (com.hortonworks.streamline.streams.metrics.TimeSeriesQuerier)1 TopologyMetrics (com.hortonworks.streamline.streams.metrics.topology.TopologyMetrics)1 Krb5HttpClientConfigurer (org.apache.solr.client.solrj.impl.Krb5HttpClientConfigurer)1