HTML Client 5.0.1

Class LightstreamerEngine

Object
   |
   +--LightstreamerEngine

class LightstreamerEngine


Facade class for the management of the communication to Lightstreamer Server. Used to provide configuration settings, event handlers and operations for the control of the connection lifecycle.
Exactly one LightstreamerEngine instance is bound to the Engine page as a consequence of the PushPage.createEngine() call.
After page loading, a local proxy for this instance is made available to each Push-Page through the PushPage.onEngineCreation() and PushPage.onEngineReady() callbacks, in order to use operations, change settings and set event handlers to be executed locally on the Push-Page.
Defined in lsengine.js


Field Summary
 Connection connection
          Bean object that contains connection properties for the client Engine.
 Context context
          Bean object that contains context properties for the client Engine.
 Policy policy
          Bean object that contains connection policy properties for the client Engine.
 
Constructor Summary
LightstreamerEngine ()
            Used by Lightstreamer to create a LightstreamerEngine instance to be bound to the Engine page to provide configuration settings and event handlers for the management of the communication to Lightstreamer Server.
 
Method Summary
 void changeStatus(<String> newStatus)
           Operation method that requests to change the client Engine status.
 String getApplicationName()
           Inquiry method that gets the name of the application, as supplied to the Engine.
 Array getPushPages()
           Inquiry method that returns an Array containing all the PushPage instances that are currently bound to this LightstreamerEngine.
 String getSessionServerAddress()
           Inquiry method that gets the hostname to be used to issue all requests related to the current session.
 String getSessionServerName()
           Inquiry method that gets the instance name of the Server which is serving the current session.
 String getStatus()
           Inquiry method that gets the current client Engine status.
 void onClientAlert(<Number> code,<String> errorMex)
           Event handler that is called whenever a browser related problem arises.
 void onClientError(<String> errorMex)
           Event handler that is called whenever an unexpected condition prevents some library operation on the Engine from working correctly.
 void onServerError(<Number> errorCode, <String> errorMessage)
           Event handler that is called when the Server notifies a refusal on the client attempt to open a new connection or the interruption of a streaming connection.
 void onStatusChange(<String> chngStatus)
           Event handler that receives a notification each time the Engine status has changed.
 Boolean sendMessage(<String> msg, <String> sequence, <MessageListener> listener, <Number> delayTimeout)
           Operation method that sends a text message to the Server.

Field Detail

connection

Connection connection

context

Context context

policy

Policy policy

Constructor Detail

LightstreamerEngine

LightstreamerEngine()

Method Detail

changeStatus

void changeStatus(<String> newStatus)

getApplicationName

String getApplicationName()

getPushPages

Array getPushPages()

getSessionServerAddress

String getSessionServerAddress()

getSessionServerName

String getSessionServerName()

getStatus

String getStatus()

onClientAlert

void onClientAlert(<Number> code,<String> errorMex)

onClientError

void onClientError(<String> errorMex)

onServerError

void onServerError(<Number> errorCode, <String> errorMessage)

onStatusChange

void onStatusChange(<String> chngStatus)

sendMessage

Boolean sendMessage(<String> msg, <String> sequence, <MessageListener> listener, <Number> delayTimeout)

HTML Client 5.0.1

Lightstreamer HTML Client API
Documentation generated by JSDoc on Tue May 22 11:46:54 2012