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
-
Method Summary
Modifier and TypeMethodDescriptionstatic SessionOptions
getZfpOptionsForLeasedLines
(ZfpUtil.Remote remote, TlsOptions tlsOptions) Creates aSessionOptions
object 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 aSessionOptions
object for applications that leverages private leased lines to Bloomberg network. TheSessionOptions
object is only valid for private leased line connectivity.This is a costly operation that is preferably called once per application.
- Parameters:
remote
-ZfpUtil.Remote
for the leased lines.tlsOptions
- TLS options to establish network connection over leased lines.- Returns:
- a
SessionOptions
object that can be used to start aSession
for leased lines. - Throws:
InterruptedException
- if any thread interrupts the current thread before it finishes retrievingSessionOptions
for leased lines.RuntimeException
- if fails to create a validSessionOptions
.
-