Search in sources :

Example 1 with NiFiRestClientV1

use of com.thinkbiganalytics.nifi.v1.rest.client.NiFiRestClientV1 in project kylo by Teradata.

the class NifiRestTest method setupRestClient.

@Before
public void setupRestClient() {
    restClient = new LegacyNifiRestClient();
    NifiRestClientConfig clientConfig = new NifiRestClientConfig();
    // clientConfig.setHost("localhost");
    clientConfig.setHost("34.208.236.190");
    clientConfig.setPort(8079);
    NiFiRestClient c = new NiFiRestClientV1(clientConfig);
    restClient.setClient(c);
    nifiFlowCache = new NifiFlowCacheImpl();
    propertyDescriptorTransform = new NiFiPropertyDescriptorTransformV1();
    createFeedBuilderCache = new NiFiObjectCache();
    createFeedBuilderCache.setRestClient(restClient);
    templateConnectionUtil = new TemplateConnectionUtil();
    templateConnectionUtil.setRestClient(restClient);
    templateConnectionUtil.setNifiFlowCache(nifiFlowCache);
    templateConnectionUtil.setNiFiObjectCache(createFeedBuilderCache);
    templateConnectionUtil.setPropertyDescriptorTransform(propertyDescriptorTransform);
}
Also used : NiFiRestClient(com.thinkbiganalytics.nifi.rest.client.NiFiRestClient) NiFiPropertyDescriptorTransformV1(com.thinkbiganalytics.nifi.v1.rest.model.NiFiPropertyDescriptorTransformV1) NifiRestClientConfig(com.thinkbiganalytics.nifi.rest.client.NifiRestClientConfig) TemplateConnectionUtil(com.thinkbiganalytics.feedmgr.nifi.TemplateConnectionUtil) LegacyNifiRestClient(com.thinkbiganalytics.nifi.rest.client.LegacyNifiRestClient) NiFiRestClientV1(com.thinkbiganalytics.nifi.v1.rest.client.NiFiRestClientV1) NifiFlowCacheImpl(com.thinkbiganalytics.feedmgr.nifi.cache.NifiFlowCacheImpl) Before(org.junit.Before)

Aggregations

TemplateConnectionUtil (com.thinkbiganalytics.feedmgr.nifi.TemplateConnectionUtil)1 NifiFlowCacheImpl (com.thinkbiganalytics.feedmgr.nifi.cache.NifiFlowCacheImpl)1 LegacyNifiRestClient (com.thinkbiganalytics.nifi.rest.client.LegacyNifiRestClient)1 NiFiRestClient (com.thinkbiganalytics.nifi.rest.client.NiFiRestClient)1 NifiRestClientConfig (com.thinkbiganalytics.nifi.rest.client.NifiRestClientConfig)1 NiFiRestClientV1 (com.thinkbiganalytics.nifi.v1.rest.client.NiFiRestClientV1)1 NiFiPropertyDescriptorTransformV1 (com.thinkbiganalytics.nifi.v1.rest.model.NiFiPropertyDescriptorTransformV1)1 Before (org.junit.Before)1