org.findata.blpwrapper
Class Connection

java.lang.Object
  extended by org.findata.blpwrapper.Connection

public class Connection
extends java.lang.Object


Field Summary
static java.lang.String[] BOOLEAN_OPTION_NAMES
           
static int BULK_DATA_RESULT
           
static java.lang.String[] DATETIME_OPTION_NAMES
           
static int FIELD_INFO_RESULT
           
static int HISTORICAL_DATA_RESULT
           
static int INTRADAY_BAR_RESULT
           
static int INTRADAY_TICK_RESULT
           
static int MB
           
static int REFERENCE_DATA_RESULT
           
 java.util.ArrayList response_cache
           
 
Constructor Summary
Connection()
           
Connection(java.util.logging.Level logLevel)
           
Connection(java.util.logging.Level logLevel, java.lang.String serverHost, int serverPort)
           
 
Method Summary
 DataResult bar(java.lang.String security, java.lang.String event_type, java.lang.String start_date_time, java.lang.String end_date_time, java.lang.String interval)
           
 DataResult blh(java.lang.String security, java.lang.String[] fields, java.lang.String start_date)
           
 DataResult blh(java.lang.String security, java.lang.String[] fields, java.lang.String[] override_fields, java.lang.String[] override_values, java.lang.String[] option_names, java.lang.String[] option_values)
           
 DataResult blh(java.lang.String security, java.lang.String[] fields, java.lang.String start_date, java.lang.String end_date)
           
 DataResult blh(java.lang.String security, java.lang.String[] fields, java.lang.String start_date, java.lang.String[] override_fields, java.lang.String[] override_values)
           
 DataResult blh(java.lang.String security, java.lang.String[] fields, java.lang.String start_date, java.lang.String[] override_fields, java.lang.String[] override_values, java.lang.String[] option_names, java.lang.String[] option_values)
           
 DataResult blh(java.lang.String security, java.lang.String[] fields, java.lang.String start_date, java.lang.String end_date, java.lang.String[] override_fields, java.lang.String[] override_values)
           
 DataResult blh(java.lang.String security, java.lang.String[] fields, java.lang.String start_date, java.lang.String end_date, java.lang.String[] override_fields, java.lang.String[] override_values, java.lang.String[] option_names, java.lang.String[] option_values)
           
 DataResult blp(java.lang.String[] securities, java.lang.String[] fields)
           
 DataResult blp(java.lang.String[] securities, java.lang.String[] fields, java.lang.String[] override_fields, java.lang.String[] override_values)
           
 DataResult blp(java.lang.String[] securities, java.lang.String[] fields, java.lang.String[] override_fields, java.lang.String[] override_values, java.lang.String[] option_names, java.lang.String[] option_values)
           
 DataResult bls(java.lang.String security, java.lang.String field)
          Request bulk data from [name redacted].
 DataResult bls(java.lang.String security, java.lang.String field, java.lang.String[] override_fields, java.lang.String[] override_values)
          Request bulk data from [name redacted].
 DataResult bls(java.lang.String security, java.lang.String field, java.lang.String[] override_fields, java.lang.String[] override_values, java.lang.String[] option_names, java.lang.String[] option_values)
          Request bulk data from [name redacted].
 void close()
           
 DataResult fieldInfo(java.lang.String[] fields)
           
 com.bloomberglp.blpapi.CorrelationID nextCorrelationID(int result_type, java.lang.String[] securities, java.lang.String[] fields)
           
 void setThrowInvalidTickerError(boolean arg)
           
 DataResult tick(java.lang.String security, java.lang.String[] event_types, java.lang.String start_date_time, java.lang.String end_date_time)
           
 DataResult tick(java.lang.String security, java.lang.String[] event_types, java.lang.String start_date_time, java.lang.String end_date_time, java.lang.String[] option_names, java.lang.String[] option_values)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

response_cache

public java.util.ArrayList response_cache

REFERENCE_DATA_RESULT

public static final int REFERENCE_DATA_RESULT
See Also:
Constant Field Values

BULK_DATA_RESULT

public static final int BULK_DATA_RESULT
See Also:
Constant Field Values

HISTORICAL_DATA_RESULT

public static final int HISTORICAL_DATA_RESULT
See Also:
Constant Field Values

FIELD_INFO_RESULT

public static final int FIELD_INFO_RESULT
See Also:
Constant Field Values

INTRADAY_TICK_RESULT

public static final int INTRADAY_TICK_RESULT
See Also:
Constant Field Values

INTRADAY_BAR_RESULT

public static final int INTRADAY_BAR_RESULT
See Also:
Constant Field Values

MB

public static final int MB
See Also:
Constant Field Values

DATETIME_OPTION_NAMES

public static final java.lang.String[] DATETIME_OPTION_NAMES

BOOLEAN_OPTION_NAMES

public static final java.lang.String[] BOOLEAN_OPTION_NAMES
Constructor Detail

Connection

public Connection()
           throws java.io.IOException,
                  java.lang.InterruptedException,
                  WrapperException
Throws:
java.io.IOException
java.lang.InterruptedException
WrapperException

Connection

public Connection(java.util.logging.Level logLevel)
           throws java.io.IOException,
                  java.lang.InterruptedException,
                  WrapperException
Throws:
java.io.IOException
java.lang.InterruptedException
WrapperException

Connection

public Connection(java.util.logging.Level logLevel,
                  java.lang.String serverHost,
                  int serverPort)
           throws java.io.IOException,
                  java.lang.InterruptedException,
                  WrapperException
Throws:
java.io.IOException
java.lang.InterruptedException
WrapperException
Method Detail

close

public void close()
           throws java.io.IOException,
                  java.lang.InterruptedException
Throws:
java.io.IOException
java.lang.InterruptedException

setThrowInvalidTickerError

public void setThrowInvalidTickerError(boolean arg)

nextCorrelationID

public com.bloomberglp.blpapi.CorrelationID nextCorrelationID(int result_type,
                                                              java.lang.String[] securities,
                                                              java.lang.String[] fields)
                                                       throws java.lang.Exception
Throws:
java.lang.Exception

fieldInfo

public DataResult fieldInfo(java.lang.String[] fields)
                     throws java.lang.Exception
Throws:
java.lang.Exception

blp

public DataResult blp(java.lang.String[] securities,
                      java.lang.String[] fields)
               throws java.lang.Exception
Throws:
java.lang.Exception

blp

public DataResult blp(java.lang.String[] securities,
                      java.lang.String[] fields,
                      java.lang.String[] override_fields,
                      java.lang.String[] override_values)
               throws java.lang.Exception
Throws:
java.lang.Exception

blp

public DataResult blp(java.lang.String[] securities,
                      java.lang.String[] fields,
                      java.lang.String[] override_fields,
                      java.lang.String[] override_values,
                      java.lang.String[] option_names,
                      java.lang.String[] option_values)
               throws java.lang.Exception
Throws:
java.lang.Exception

blh

public DataResult blh(java.lang.String security,
                      java.lang.String[] fields,
                      java.lang.String start_date,
                      java.lang.String end_date)
               throws java.lang.Exception
Throws:
java.lang.Exception

blh

public DataResult blh(java.lang.String security,
                      java.lang.String[] fields,
                      java.lang.String start_date)
               throws java.lang.Exception
Throws:
java.lang.Exception

blh

public DataResult blh(java.lang.String security,
                      java.lang.String[] fields,
                      java.lang.String start_date,
                      java.lang.String end_date,
                      java.lang.String[] override_fields,
                      java.lang.String[] override_values)
               throws java.lang.Exception
Throws:
java.lang.Exception

blh

public DataResult blh(java.lang.String security,
                      java.lang.String[] fields,
                      java.lang.String start_date,
                      java.lang.String[] override_fields,
                      java.lang.String[] override_values)
               throws java.lang.Exception
Throws:
java.lang.Exception

blh

public DataResult blh(java.lang.String security,
                      java.lang.String[] fields,
                      java.lang.String start_date,
                      java.lang.String[] override_fields,
                      java.lang.String[] override_values,
                      java.lang.String[] option_names,
                      java.lang.String[] option_values)
               throws java.lang.Exception
Throws:
java.lang.Exception

blh

public DataResult blh(java.lang.String security,
                      java.lang.String[] fields,
                      java.lang.String start_date,
                      java.lang.String end_date,
                      java.lang.String[] override_fields,
                      java.lang.String[] override_values,
                      java.lang.String[] option_names,
                      java.lang.String[] option_values)
               throws java.lang.Exception
Throws:
java.lang.Exception

blh

public DataResult blh(java.lang.String security,
                      java.lang.String[] fields,
                      java.lang.String[] override_fields,
                      java.lang.String[] override_values,
                      java.lang.String[] option_names,
                      java.lang.String[] option_values)
               throws java.lang.Exception
Throws:
java.lang.Exception

bls

public DataResult bls(java.lang.String security,
                      java.lang.String field)
               throws java.lang.Exception
Request bulk data from [name redacted]. Shortcut method which allows you to call bls simply by passing a security and field.

Parameters:
security - A string containing security ticker.
field - A string containing field mnemonic.
Throws:
java.lang.Exception

bls

public DataResult bls(java.lang.String security,
                      java.lang.String field,
                      java.lang.String[] override_fields,
                      java.lang.String[] override_values)
               throws java.lang.Exception
Request bulk data from [name redacted]. Bulk data may return several different fields for a single requested field.

Parameters:
security - A string containing security ticker.
field - A string containing field mnemonic.
override_fields - Array of strings with field mnemonics for override fields.
override_values - Array of strings with override values, must be in same order as override_fields.
Throws:
java.lang.Exception

bls

public DataResult bls(java.lang.String security,
                      java.lang.String field,
                      java.lang.String[] override_fields,
                      java.lang.String[] override_values,
                      java.lang.String[] option_names,
                      java.lang.String[] option_values)
               throws java.lang.Exception
Request bulk data from [name redacted]. Bulk data may return several different fields for a single requested field.

Parameters:
security - A string containing security ticker.
field - A string containing field mnemonic.
override_fields - Array of strings with field mnemonics for override fields.
override_values - Array of strings with override values, must be in same order as override_fields.
option_names - Array of strings with option names.
option_values - Array of strings with option values, must be in same order as option_names.
Throws:
java.lang.Exception

tick

public DataResult tick(java.lang.String security,
                       java.lang.String[] event_types,
                       java.lang.String start_date_time,
                       java.lang.String end_date_time)
                throws java.lang.Exception
Throws:
java.lang.Exception

tick

public DataResult tick(java.lang.String security,
                       java.lang.String[] event_types,
                       java.lang.String start_date_time,
                       java.lang.String end_date_time,
                       java.lang.String[] option_names,
                       java.lang.String[] option_values)
                throws java.lang.Exception
Throws:
java.lang.Exception

bar

public DataResult bar(java.lang.String security,
                      java.lang.String event_type,
                      java.lang.String start_date_time,
                      java.lang.String end_date_time,
                      java.lang.String interval)
               throws java.lang.Exception
Throws:
java.lang.Exception