use of com.thinkbiganalytics.feedmgr.nifi.cache.NifiFlowCacheImpl 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);
}
Aggregations