Class AbstractBlotterDataProvider<T extends com.caplin.motif.UserTrade>
- java.lang.Object
-
- com.caplin.motif.fx.ret.fxtrading.blotter.sources.AbstractBlotterDataProvider<T>
-
- Direct Known Subclasses:
BlockTradeBlotterDataProvider
,FXExecutionBlotterDataProvider
public abstract class AbstractBlotterDataProvider<T extends com.caplin.motif.UserTrade> extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
BLOCK_TRADE_CLIENT_CLOSE
static java.lang.String
BLOCK_TRADE_ERROR
static java.lang.String
BLOCK_TRADE_EXECUTE_ACK
static java.lang.String
BLOCK_TRADE_EXPIRED
static java.lang.String
BLOCK_TRADE_PICK_UP
static java.lang.String
BLOCK_TRADE_QUOTE
static java.lang.String
BLOCK_TRADE_REJECT
static java.lang.String
BLOCK_TRADE_RET_SUBMIT
static java.lang.String
BLOCK_TRADE_SUBMIT_ACK
static java.lang.String
BLOCK_TRADE_TRADE_CONFIRMATION
static java.lang.String
BLOCK_TRADE_TRADE_HELD
static java.lang.String
BLOCK_TRADE_WITHDRAW
static java.lang.String
CLIENT_CLOSE_ACK
static java.lang.String
ERROR
static java.lang.String
ESP_CLIENT_CLOSE
static java.lang.String
ESP_ERROR
static java.lang.String
ESP_PICK_UP
static java.lang.String
ESP_REJECT
static java.lang.String
ESP_RET_SUBMIT
static java.lang.String
ESP_SUBMIT_ACK
static java.lang.String
ESP_TRADE_CONFIRMATION
static java.lang.String
ESP_TRADE_HELD
static java.lang.String
HOLD
static java.lang.String
PICK_UP
static java.lang.String
PRICE_UPDATE
static java.lang.String
REJECT
static java.lang.String
RFS_CLIENT_CLOSE
static java.lang.String
RFS_ERROR
static java.lang.String
RFS_EXECUTE_ACK
static java.lang.String
RFS_EXPIRED
static java.lang.String
RFS_PICK_UP
static java.lang.String
RFS_QUOTE
static java.lang.String
RFS_REJECT
static java.lang.String
RFS_RET_SUBMIT
static java.lang.String
RFS_SUBMIT_ACK
static java.lang.String
RFS_TRADE_CONFIRMATION
static java.lang.String
RFS_TRADE_HELD
static java.lang.String
RFS_WITHDRAW
static java.lang.String
SUBMIT_ACK
static java.lang.String
TRADE_CONFIRMATION
static java.lang.String
WITHDRAW
-
Constructor Summary
Constructors Constructor Description AbstractBlotterDataProvider(FxTradingAdapterInitialiser configuration)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
populateAndPublishToBlotter(T trade, com.caplin.motif.datasource.Message message)
abstract void
populateBlotterFieldsFrom(com.caplin.motif.datasource.Message tradeEvent, T trade, java.util.Map<java.lang.String,java.lang.String> fieldsToValueMap)
void
publishToBlotter(java.util.Map<java.lang.String,java.lang.String> fieldsToValueMap, java.lang.String user)
void
sendDataSourceErrorToClient(java.lang.String tradeID, T trade, java.lang.String errorCode)
void
sendRejectToClient(java.lang.String tradeID, java.lang.String errorCode, java.lang.String errorMessage, T trade)
void
sendRETRejectToClient(java.lang.String tradeID, T trade, java.lang.String errorMessage)
-
-
-
Field Detail
-
SUBMIT_ACK
public static final java.lang.String SUBMIT_ACK
- See Also:
- Constant Field Values
-
PICK_UP
public static final java.lang.String PICK_UP
- See Also:
- Constant Field Values
-
TRADE_CONFIRMATION
public static final java.lang.String TRADE_CONFIRMATION
- See Also:
- Constant Field Values
-
CLIENT_CLOSE_ACK
public static final java.lang.String CLIENT_CLOSE_ACK
- See Also:
- Constant Field Values
-
ERROR
public static final java.lang.String ERROR
- See Also:
- Constant Field Values
-
REJECT
public static final java.lang.String REJECT
- See Also:
- Constant Field Values
-
HOLD
public static final java.lang.String HOLD
- See Also:
- Constant Field Values
-
PRICE_UPDATE
public static final java.lang.String PRICE_UPDATE
- See Also:
- Constant Field Values
-
WITHDRAW
public static final java.lang.String WITHDRAW
- See Also:
- Constant Field Values
-
ESP_REJECT
public static final java.lang.String ESP_REJECT
- See Also:
- Constant Field Values
-
ESP_ERROR
public static final java.lang.String ESP_ERROR
- See Also:
- Constant Field Values
-
ESP_CLIENT_CLOSE
public static final java.lang.String ESP_CLIENT_CLOSE
- See Also:
- Constant Field Values
-
ESP_PICK_UP
public static final java.lang.String ESP_PICK_UP
- See Also:
- Constant Field Values
-
ESP_RET_SUBMIT
public static final java.lang.String ESP_RET_SUBMIT
- See Also:
- Constant Field Values
-
ESP_SUBMIT_ACK
public static final java.lang.String ESP_SUBMIT_ACK
- See Also:
- Constant Field Values
-
ESP_TRADE_CONFIRMATION
public static final java.lang.String ESP_TRADE_CONFIRMATION
- See Also:
- Constant Field Values
-
ESP_TRADE_HELD
public static final java.lang.String ESP_TRADE_HELD
- See Also:
- Constant Field Values
-
RFS_REJECT
public static final java.lang.String RFS_REJECT
- See Also:
- Constant Field Values
-
RFS_ERROR
public static final java.lang.String RFS_ERROR
- See Also:
- Constant Field Values
-
RFS_CLIENT_CLOSE
public static final java.lang.String RFS_CLIENT_CLOSE
- See Also:
- Constant Field Values
-
RFS_EXECUTE_ACK
public static final java.lang.String RFS_EXECUTE_ACK
- See Also:
- Constant Field Values
-
RFS_EXPIRED
public static final java.lang.String RFS_EXPIRED
- See Also:
- Constant Field Values
-
RFS_PICK_UP
public static final java.lang.String RFS_PICK_UP
- See Also:
- Constant Field Values
-
RFS_QUOTE
public static final java.lang.String RFS_QUOTE
- See Also:
- Constant Field Values
-
RFS_RET_SUBMIT
public static final java.lang.String RFS_RET_SUBMIT
- See Also:
- Constant Field Values
-
RFS_SUBMIT_ACK
public static final java.lang.String RFS_SUBMIT_ACK
- See Also:
- Constant Field Values
-
RFS_TRADE_CONFIRMATION
public static final java.lang.String RFS_TRADE_CONFIRMATION
- See Also:
- Constant Field Values
-
RFS_TRADE_HELD
public static final java.lang.String RFS_TRADE_HELD
- See Also:
- Constant Field Values
-
RFS_WITHDRAW
public static final java.lang.String RFS_WITHDRAW
- See Also:
- Constant Field Values
-
BLOCK_TRADE_REJECT
public static final java.lang.String BLOCK_TRADE_REJECT
- See Also:
- Constant Field Values
-
BLOCK_TRADE_ERROR
public static final java.lang.String BLOCK_TRADE_ERROR
- See Also:
- Constant Field Values
-
BLOCK_TRADE_CLIENT_CLOSE
public static final java.lang.String BLOCK_TRADE_CLIENT_CLOSE
- See Also:
- Constant Field Values
-
BLOCK_TRADE_EXECUTE_ACK
public static final java.lang.String BLOCK_TRADE_EXECUTE_ACK
- See Also:
- Constant Field Values
-
BLOCK_TRADE_EXPIRED
public static final java.lang.String BLOCK_TRADE_EXPIRED
- See Also:
- Constant Field Values
-
BLOCK_TRADE_PICK_UP
public static final java.lang.String BLOCK_TRADE_PICK_UP
- See Also:
- Constant Field Values
-
BLOCK_TRADE_QUOTE
public static final java.lang.String BLOCK_TRADE_QUOTE
- See Also:
- Constant Field Values
-
BLOCK_TRADE_RET_SUBMIT
public static final java.lang.String BLOCK_TRADE_RET_SUBMIT
- See Also:
- Constant Field Values
-
BLOCK_TRADE_SUBMIT_ACK
public static final java.lang.String BLOCK_TRADE_SUBMIT_ACK
- See Also:
- Constant Field Values
-
BLOCK_TRADE_TRADE_CONFIRMATION
public static final java.lang.String BLOCK_TRADE_TRADE_CONFIRMATION
- See Also:
- Constant Field Values
-
BLOCK_TRADE_TRADE_HELD
public static final java.lang.String BLOCK_TRADE_TRADE_HELD
- See Also:
- Constant Field Values
-
BLOCK_TRADE_WITHDRAW
public static final java.lang.String BLOCK_TRADE_WITHDRAW
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AbstractBlotterDataProvider
public AbstractBlotterDataProvider(FxTradingAdapterInitialiser configuration)
-
-
Method Detail
-
sendRETRejectToClient
public void sendRETRejectToClient(java.lang.String tradeID, T trade, java.lang.String errorMessage)
-
sendRejectToClient
public void sendRejectToClient(java.lang.String tradeID, java.lang.String errorCode, java.lang.String errorMessage, T trade)
-
sendDataSourceErrorToClient
public void sendDataSourceErrorToClient(java.lang.String tradeID, T trade, java.lang.String errorCode)
-
populateAndPublishToBlotter
public void populateAndPublishToBlotter(T trade, com.caplin.motif.datasource.Message message)
-
publishToBlotter
public void publishToBlotter(java.util.Map<java.lang.String,java.lang.String> fieldsToValueMap, java.lang.String user)
-
populateBlotterFieldsFrom
public abstract void populateBlotterFieldsFrom(com.caplin.motif.datasource.Message tradeEvent, T trade, java.util.Map<java.lang.String,java.lang.String> fieldsToValueMap)
-
-