com.apama.position.tracker.generic
Event GenericPositionTrackerFactory


The GenericPositionTrackerFactory allows the user to create an instance of the GenericPositionTracker framework.

It allow an implementation of a Position Tracker that uses a set of slices to track position information for new orders being placed in the application. The orders may be tracked by filtering on a set of symbol names, serviceIds, marketIds, exchange Ids, and/or traderIds. A configuration implementation is also provided to store the individual per-slice positions too.

By using the GenericTrackerExtensionInterface, the user-implementation of this GenericPositionTracker can override or extend some of the key functionality provided if required.
See Also:
com.apama.position.tracker.generic.GenericTrackerInterface - The interface used to update/publish the position it is tracking, as well as querying information about this Position Tracker instance.
com.apama.position.tracker.generic.GenericTrackerExtensionInterface - An extension interface that can be used to override/extend the default behaviour of the GenericPositionTracker

Action summary
 com.apama.position.tracker.generic.GenericTrackerInterfacecreate(context mainContext, string trackerName, string trackerType, boolean enablePersistence, action<integer, com.apama.position.tracker.generic.SliceKeycom.apama.oms.NewOrder> cbNewOrderHandler, action<boolean, string> cbCreated)

This action creates a new Generic Position Tracker framework in the current context.
 com.apama.position.tracker.generic.GenericTrackerInterfacecreateWithExtensions(context mainContext, string trackerName, string trackerType, boolean enablePersistence, action<integer, com.apama.position.tracker.generic.SliceKeycom.apama.oms.NewOrder> cbNewOrderHandler, com.apama.position.tracker.generic.GenericTrackerExtensionInterface extensions, action<boolean, string> cbCreated)

This action creates a new Generic Position Tracker framework in the current context. A set of extension callbacks are also provided to allow the User to override/extend some of the functionality provided by the Generic Position Tracker framework too.
 
Action detail

create

com.apama.position.tracker.generic.GenericTrackerInterface create(context mainContext, string trackerName, string trackerType, boolean enablePersistence, action<integer, com.apama.position.tracker.generic.SliceKeycom.apama.oms.NewOrder> cbNewOrderHandler, action<boolean, string> cbCreated)
This action creates a new Generic Position Tracker framework in the current context.
Parameters:
mainContext - The main context
trackerName - The unique name of the Position Tracker to be created
trackerType - The type of the Position Tracker to be created
enablePersistence - Indicates whether or not persistence should be enabled by default
cbNewOrderHandler - The callback action that will must be called whenever a NewOrder event has been received that matches the slice details provided.
cbCreated - The callback action that will be called once the Position Tracker has been created, which indicates whether or not it was successful
Returns:
An interface containing a set of actions that the User can call to get/set information on the Generic Tracker implementation
See Also:
com.apama.position.tracker.generic.GenericTrackerInterface - The interface used to update/publish the position it is tracking, as well as querying information about this Position Tracker instance.
com.apama.position.tracker.generic.GenericTrackerExtensionInterface - An extension interface that can be used to override/extend the default behaviour of the GenericPositionTracker

createWithExtensions

com.apama.position.tracker.generic.GenericTrackerInterface createWithExtensions(context mainContext, string trackerName, string trackerType, boolean enablePersistence, action<integer, com.apama.position.tracker.generic.SliceKeycom.apama.oms.NewOrder> cbNewOrderHandler, com.apama.position.tracker.generic.GenericTrackerExtensionInterface extensions, action<boolean, string> cbCreated)
This action creates a new Generic Position Tracker framework in the current context. A set of extension callbacks are also provided to allow the User to override/extend some of the functionality provided by the Generic Position Tracker framework too.
Parameters:
mainContext - The main context
trackerName - The unique name of the Position Tracker to be created
trackerType - The type of the Position Tracker to be created
enablePersistence - Indicates whether or not persistence should be enabled by default
cbNewOrderHandler - The callback action that will must be called whenever a NewOrder event has been received that matches the slice details provided.
extensions - The callback action interface that allows users to override/extend some of the functionality of the Generic Tracker implementation
cbCreated - The callback action that will be called once the Position Tracker has been created, which indicates whether or not it was successful
Returns:
An interface containing a set of actions that the User can call to get/set information on the Generic Tracker implementation
See Also:
com.apama.position.tracker.generic.GenericTrackerInterface - The interface used to update/publish the position it is tracking, as well as querying information about this Position Tracker instance.
com.apama.position.tracker.generic.GenericTrackerExtensionInterface - An extension interface that can be used to override/extend the default behaviour of the GenericPositionTracker