Java Code Examples for org.apache.nifi.reporting.InitializationException#printStackTrace()
The following examples show how to use
org.apache.nifi.reporting.InitializationException#printStackTrace() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: TestGetHTTP.java From localization_nifi with Apache License 2.0 | 5 votes |
private void useSSLContextService(final Map<String, String> sslProperties) { final SSLContextService service = new StandardSSLContextService(); try { controller.addControllerService("ssl-service", service, sslProperties); controller.enableControllerService(service); } catch (InitializationException ex) { ex.printStackTrace(); Assert.fail("Could not create SSL Context Service"); } controller.setProperty(GetHTTP.SSL_CONTEXT_SERVICE, "ssl-service"); }
Example 2
Source File: ITListenGRPC.java From nifi with Apache License 2.0 | 5 votes |
private static void useSSLContextService(final TestRunner controller, final Map<String, String> sslProperties) { final SSLContextService service = new StandardSSLContextService(); try { controller.addControllerService("ssl-service", service, sslProperties); controller.enableControllerService(service); } catch (InitializationException ex) { ex.printStackTrace(); Assert.fail("Could not create SSL Context Service"); } controller.setProperty(InvokeGRPC.PROP_SSL_CONTEXT_SERVICE, "ssl-service"); }
Example 3
Source File: TestInvokeGRPC.java From nifi with Apache License 2.0 | 5 votes |
private void useSSLContextService(final TestRunner controller, final Map<String, String> sslProperties) { final SSLContextService service = new StandardSSLContextService(); try { controller.addControllerService("ssl-service", service, sslProperties); controller.enableControllerService(service); } catch (InitializationException ex) { ex.printStackTrace(); Assert.fail("Could not create SSL Context Service"); } controller.setProperty(InvokeGRPC.PROP_SSL_CONTEXT_SERVICE, "ssl-service"); }
Example 4
Source File: ITestHandleHttpRequest.java From nifi with Apache License 2.0 | 5 votes |
private static SSLContext useSSLContextService(final TestRunner controller, final Map<String, String> sslProperties, SslContextFactory.ClientAuth clientAuth) { final SSLContextService service = new StandardRestrictedSSLContextService(); try { controller.addControllerService("ssl-service", service, sslProperties); controller.enableControllerService(service); } catch (InitializationException ex) { ex.printStackTrace(); Assert.fail("Could not create SSL Context Service"); } controller.setProperty(HandleHttpRequest.SSL_CONTEXT, "ssl-service"); return service.createSSLContext(clientAuth); }
Example 5
Source File: TestGetHTTP.java From nifi with Apache License 2.0 | 5 votes |
private void useSSLContextService(final Map<String, String> sslProperties) { final SSLContextService service = new StandardSSLContextService(); try { controller.addControllerService("ssl-service", service, sslProperties); controller.enableControllerService(service); } catch (InitializationException ex) { ex.printStackTrace(); Assert.fail("Could not create SSL Context Service"); } controller.setProperty(org.apache.nifi.processors.standard.GetHTTP.SSL_CONTEXT_SERVICE, "ssl-service"); }