Package com.bloomberglp.blpapi
Class ZfpUtil
java.lang.Object
com.bloomberglp.blpapi.ZfpUtil
Helper class that provides utilities designed for the Zero Footprint solution clients that
leverage private leased lines to the Bloomberg network.
The following snippet shows how to use ZfpUtil to start a Session.
TlsOptions tlsOptions = TlsOptions.createFromFiles( ... ); SessionOptions sessionOptions = ZfpUtil.getZfpOptionsForLeasedLines(Remote.REMOTE_8194, tlsOptions); sessionOptions.setAuthenticationOptions( ... ); Session session = new Session(sessionOptions); session.start();
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic SessionOptionsgetZfpOptionsForLeasedLines(ZfpUtil.Remote remote, TlsOptions tlsOptions) Creates aSessionOptionsobject for applications that leverages private leased lines to Bloomberg network.
-
Method Details
-
getZfpOptionsForLeasedLines
public static SessionOptions getZfpOptionsForLeasedLines(ZfpUtil.Remote remote, TlsOptions tlsOptions) throws InterruptedException Creates aSessionOptionsobject for applications that leverages private leased lines to Bloomberg network. TheSessionOptionsobject is only valid for private leased line connectivity.This is a costly operation that is preferably called once per application.
- Parameters:
remote-ZfpUtil.Remotefor the leased lines.tlsOptions- TLS options to establish network connection over leased lines.- Returns:
- a
SessionOptionsobject that can be used to start aSessionfor leased lines. - Throws:
InterruptedException- if any thread interrupts the current thread before it finishes retrievingSessionOptionsfor leased lines.RuntimeException- if fails to create a validSessionOptions.
-