|
Web Client 4.3 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Object | +--Table
The base class for the hierarchy of the data-table classes. It contains the
subscription details and the event handlers needed to process the
real-time data. A specialized (derived) object, rather than a Table object, should
be created and used. After the creation, a data-table object is in the "inactive"
state. When a data-table object is added to a PushPage object,
through the PushPage.addTable() method, its state becomes "running".
This means that the Engine activates a subscription to the required items through
Lightstreamer Server and the data-table object begins to receive real-time events.
Defined in lspushpage.js
| Constructor Summary | |
Table
(<GroupDescriptor> tGroup, <SchemaDescriptor> tSchema, <String> tSubscriptionMode)
Used by specialized data table objects to inherit the support for the properties and event handlers common to all data tables management. |
|
| Method Summary | |
String
|
getClassName()
Inquiry method that returns the name of the class of this instance. |
String
|
getId()
Inquiry method that returns the identifier associated to the data table, provided that the data table is currently in "running" state. |
void
|
onEndOfSnapshot(<Number> itemPos, <String> itemName)
Event handler that is called by Lightstreamer to notify that all snapshot events for an item in the data table have been received, so that real time events are now going to be received. |
void
|
onItemUpdate(<Number> itemPos, <UpdateItemInfo> updateInfo, <String> itemName)
Event handler that is called by Lightstreamer each time an update pertaining to an item in the data table has been received from the Server. |
void
|
onLostUpdates(<Number> itemPos, <Number> lostUpdates, <String> itemName, <String> refKey)
Event handler that is called by Lightstreamer to notify that, due to internal resource limitations, Lightstreamer Server dropped one or more updates for an item in the data table. |
void
|
onStart()
Event handler that is called by Lightstreamer to notify that a data table has been successfully subscribed to through the Server. |
void
|
setDataAdapter(<String> dataAdapter)
Setter method that sets the name of the Data Adapter (within the Adapter Set used by the current session) that supplies all the items in the Group. |
void
|
setItemsRange(<Number> start, <Number> end)
Setter method that sets a range of items within the specified group. |
void
|
setRequestedBufferSize(<Number> size)
Setter method that sets the length to be requested to Lightstreamer Server for the internal queueing buffers for the items in the data table. |
void
|
setRequestedMaxFrequency(<String> freq)
Setter method that sets the maximum update frequency to be requested to Lightstreamer Server for all the items in the data table. |
void
|
setSelector(<String> selector)
Setter method that sets the selector name for all the items in the data table. |
void
|
setSnapshotRequired(<boolean> required)
Setter method that enables/disables snapshot delivery request for the items in the data table. |
| Constructor Detail |
Table(<GroupDescriptor> tGroup, <SchemaDescriptor> tSchema, <String> tSubscriptionMode)
tGroup - A group descriptor object, which identifies the items that provide values for the data table rows. An Array of item names or a String group identifier can also be used directly, instead of a group descriptor object. tSchema - A schema descriptor object, which identifies the fields that represent the data table columns. An Array of field names or a String schema identifier can also be used directly, instead of a schema descriptor object. tSubscriptionMode - the subscription mode for the items, required by Lightstreamer Server. Permitted values are: | Method Detail |
String getClassName()
String getId()
void onEndOfSnapshot(<Number> itemPos, <String> itemName)
itemPos - 1-based index of the item within the group.
itemName - name of the involved item. If a group identifier has been used as group descriptor for the data table, then a null value is supplied.
void onItemUpdate(<Number> itemPos, <UpdateItemInfo> updateInfo, <String> itemName)
itemPos - 1-based index of the item within the group.
updateInfo - a value object containinig the updated values for all the fields, together with the old values for the fields. Values for extra fields can be added to the object before returning. itemName - name of the involved item. If a group identifier has been used as group descriptor for the data table, then a null value is supplied.
void onLostUpdates(<Number> itemPos, <Number> lostUpdates, <String> itemName, <String> refKey)
itemPos - 1-based index of the item within the group.
lostUpdates - The number of consecutive updates dropped for the item.
itemName - name of the involved item. If a group identifier has been used as group descriptor for the data table, then a null value is supplied.
refKey - only supplied when the data table behaves in "MultiMetapush logic" and the lost updates pertain to a second-level item (this, in turn, is only possible if setRequestedMaxFrequency() with the "unfiltered" argument was issued, as second-level items are always in "MERGE" mode). In this case, it specifies the value of the key that identifies the second-level item, while the other arguments identify the first-level item to which the key refers.
void onStart()
void setDataAdapter(<String> dataAdapter)
dataAdapter - the name of the Data Adapter. A null value is equivalent to the "DEFAULT" name.
void setItemsRange(<Number> start, <Number> end)
start - 1-based index of the first item in the group that has to be subscribed.
end - 1-based index of the last item in the group that has to be subscribed.
void setRequestedBufferSize(<Number> size)
size - The length of the internal queueing buffers to be used in the Server. If a 0 value or the string "unlimited" is supplied, then the buffer length is decided by the Server (the check is case insensitive).
void setRequestedMaxFrequency(<String> freq)
freq - The maximum update frequency (expressed in updates per second) for each item in the data table. If a 0 value or the string "unlimited" is supplied, then the maximum frequency is decided by the Server. It is also possible to supply the string "unfiltered", to ask for unfiltered dispatching, if it is allowed for the items. The check for the string constants is case insensitive.
void setSelector(<String> selector)
selector - name of a selector, to be recognized by the Metadata Adapter, or null to unset the selector.
void setSnapshotRequired(<boolean> required)
required - true/false to request/not request snapshot delivery. If the subscription mode is DISTINCT, instead of true, it is also possible to supply a number, to specify the requested length of the snapshot (though the length of the received snapshot may be less than requested, because of insufficient data or server side limits); passing true means that the snapshot length should be determined only by the Server.
|
Web Client 4.3 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||