Datasource
Direct Subclass:
A Datasource is the name given to the connection set up to a data endpoint. This class defines the common methods for the datasources, such as start() and stop().
Constructor Summary
| Public Constructor | ||
| public |
Creates an instance of Datasource. |
|
Member Summary
| Public Members | ||
| public |
filters: * |
|
| public |
properties: * |
|
Method Summary
| Public Methods | ||
| public |
convert(data: *): * |
|
| public |
filter(filter: any): * Filters the incoming messages. |
|
| public |
property(prop: *, newProp: *, cast: *): * |
|
| public |
start() Starts the stream of data |
|
| public |
stop() If started, this method stops the stream of data |
|
Public Constructors
Public Methods
public filter(filter: any): * source
Filters the incoming messages. Each data record that do not comply the filter condition will be discarded
Params:
| Name | Type | Attribute | Description |
| filter | any | A filter condition |
Return:
| * | this Datasource instance |
public property(prop: *, newProp: *, cast: *): * source
Params:
| Name | Type | Attribute | Description |
| prop | * | ||
| newProp | * | ||
| cast | * |
Return:
| * |