com.apama.md.client
Event CurrentNewsInterface


Provides interface to read the current news relating to a particular symbol.
Since:
CMF 5.0.2

Member summary
 action<> returns stringgetSymbol

Returns the symbols this News item relates to.
 action<> returns stringgetNewsId

Returns the story Id for this News item.
 action<> returns integergetUpdateType

Returns the update type for this News item. 0 - Add (new), 1 - Modify (update), 2 - Remove (delete) (see DatastreamConstants in MDConstants.mon for details).
 action<> returns stringgetHeadline

Returns the headline for this News item.
 action<> returns stringgetStory

Returns the story text for this News item.
 action<> returns floatgetActualValue

Returns the actual value for this News item.
 action<> returns floatgetSourceTimestamp

Returns the source timestamp associated with this News item.
 action<> returns dictionary<string, string>getData

Returns the data structure for this News item.
 action<> returns dictionary<string, com.apama.md.NSI>getNewsSchema

Returns the schema for this News feed.
 action<string> returns com.apama.md.NSIgetNewsSchemaField

Returns the schema field for the supplied field name.
 action<> returns com.apama.md.adapter.ConnectionKeygetConnectionKey

Returns the ConnectionKey associated with this event.
 action<> returns dictionary<integer, float>getTimestamps

Returns the timestamps associated with this event.
 action<> returns com.apama.md.NgetRawData

Returns the data as a com.apama.md.N event. Note that this is a potentially expensive operation since it involves cloning of the object.
 
Member detail

getActualValue

action<> returns float getActualValue
Returns the actual value for this News item.

getConnectionKey

action<> returns com.apama.md.adapter.ConnectionKey getConnectionKey
Returns the ConnectionKey associated with this event.

getData

action<> returns dictionary<string, string> getData
Returns the data structure for this News item.

getHeadline

action<> returns string getHeadline
Returns the headline for this News item.

getNewsId

action<> returns string getNewsId
Returns the story Id for this News item.

getNewsSchema

action<> returns dictionary<string, com.apama.md.NSIgetNewsSchema
Returns the schema for this News feed.

getNewsSchemaField

action<string> returns com.apama.md.NSI getNewsSchemaField
Returns the schema field for the supplied field name.

getRawData

action<> returns com.apama.md.N getRawData
Returns the data as a com.apama.md.N event. Note that this is a potentially expensive operation since it involves cloning of the object.

getSourceTimestamp

action<> returns float getSourceTimestamp
Returns the source timestamp associated with this News item.

getStory

action<> returns string getStory
Returns the story text for this News item.

getSymbol

action<> returns string getSymbol
Returns the symbols this News item relates to.

getTimestamps

action<> returns dictionary<integer, float> getTimestamps
Returns the timestamps associated with this event.

getUpdateType

action<> returns integer getUpdateType
Returns the update type for this News item. 0 - Add (new), 1 - Modify (update), 2 - Remove (delete) (see DatastreamConstants in MDConstants.mon for details).