Class ScalarSensiTradeStoreTuplePublisher<T>
- java.lang.Object
-
- com.activeviam.risk.ref.cfg.sensi.impl.ScalarSensiTradeStoreTuplePublisher<T>
-
- Type Parameters:
T
- the class of the tuple publisher
- All Implemented Interfaces:
com.qfs.source.ITuplePublisher<T>
public class ScalarSensiTradeStoreTuplePublisher<T> extends Object implements com.qfs.source.ITuplePublisher<T>
Tuple publisher that reads the Trades being added to the Sensitivity stores and add them to the Sensi Trade base store
-
-
Constructor Summary
Constructors Constructor Description ScalarSensiTradeStoreTuplePublisher(com.qfs.store.IDatastore datastore, String sensiStore, org.springframework.core.env.Environment env, Map<String,Integer> translatorTupleFields, Function<String,String> findGreekTypeBean, Map<String,IGreekDescription> greekDescription, String tenorAndMaturityDefaultValue, String moneynessDefaultValue)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<String>
getTargetStores()
Returns the list of stores that will be impacted by publishing, which is the Sensi Trade base store in this case.void
publish(com.qfs.source.IStoreMessage<? extends T,?> message, List<Object[]> tuples)
Publish values to the sensi stores and the trade sensi storeString
sensitivityTupleToString(Object[] tuple)
-
-
-
Field Detail
-
LOGGER
protected static Logger LOGGER
Logger
-
-
Constructor Detail
-
ScalarSensiTradeStoreTuplePublisher
public ScalarSensiTradeStoreTuplePublisher(com.qfs.store.IDatastore datastore, String sensiStore, org.springframework.core.env.Environment env, Map<String,Integer> translatorTupleFields, Function<String,String> findGreekTypeBean, Map<String,IGreekDescription> greekDescription, String tenorAndMaturityDefaultValue, String moneynessDefaultValue)
Constructor- Parameters:
datastore
- The datastoresensiStore
- the sensitivities storeenv
- The Spring environmenttranslatorTupleFields
- The fields in the incoming tuples and their indexes.findGreekTypeBean
- find greek type beangreekDescription
- greek descriptiontenorAndMaturityDefaultValue
- The default value for tenors and maturitiesmoneynessDefaultValue
- The default value for moneyness
-
-
Method Detail
-
publish
public void publish(com.qfs.source.IStoreMessage<? extends T,?> message, List<Object[]> tuples)
Publish values to the sensi stores and the trade sensi store- Specified by:
publish
in interfacecom.qfs.source.ITuplePublisher<T>
-
getTargetStores
public Collection<String> getTargetStores()
Returns the list of stores that will be impacted by publishing, which is the Sensi Trade base store in this case.- Specified by:
getTargetStores
in interfacecom.qfs.source.ITuplePublisher<T>
- Returns:
- The list of stores impacted.
-
-