Class Index | File Index

Classes


Class Accessor.Service

A class which provides an accessor functionality. Use HTTPFabricConnection#createServiceAccessor and HTTPFabricConnection#getServiceAccessor methods to create a new accessor.
Defined in: <D:\Programs\Neeve\Projects\NeeveBuild16\stjsapi/src/main/webapp/js\accessor\Service.js>.

Class Summary
Constructor Attributes Constructor Name and Description
 
Accessor.Service(serviceFullName, fabricConnection)
Creates an accessor to the specified service for invoking its methods
Method Summary
Method Attributes Method Name and Description
String 
Returns the full name of the service accessed by this accessor
void 
invokeLanguageRequest(statement, callback)
Asynchronously invokes the specified statement of the associated service.
void 
invokeLanguageRequestWithWait(statement, timeout, callback)
Asynchronously invokes the specified statement of the associated service.
void 
invokeServiceRequest(event, callback)
Asynchronously passes the specified event to the associated service to invoke the corresponding service method.
void 
invokeServiceRequestWithWait(event, timeout, callback)
Asynchronously passes the specified event to the associated service to invoke the corresponding service method.
Class Detail
Accessor.Service(serviceFullName, fabricConnection)
Creates an accessor to the specified service for invoking its methods
Parameters:
{String} serviceFullName
The full name of the service to be accessed
{HTTPFabricConnection} fabricConnection
The connection for which this accessor is created
Method Detail
{String} getName()
Returns the full name of the service accessed by this accessor
Returns:
This accessor's service full name

invokeLanguageRequest(statement, callback)
Asynchronously invokes the specified statement of the associated service. The statement response returned by the service is passed to the specified callback function when it is returned from server side. The callback won't be called until the response is available or the default timeout (30 seconds) is expired. In the last case the callback is called with null parameter.
Parameters:
{String} statement
The statement to be invoked by the service
{Function} callback
The callback function called with the response got from the service or null if the timeout is expired. (See HTTPFabricConnection for a callback description). Callback object type: 'SLResponse' (see its description in Java documentation).

invokeLanguageRequestWithWait(statement, timeout, callback)
Asynchronously invokes the specified statement of the associated service. The statement response returned by the service is passed to the specified callback function when it is returned from server side. The callback won't be called until the response is available or the specified timeout is expired. In the last case the callback is called with null parameter.
Parameters:
{String} statement
The statement to be invoked by the service
{number} timeout
The maximum waiting time in milliseconds. Zero or negative value means infinite timeout.
{Function} callback
The callback function called with the response got from the service or null if the timeout is expired. (See HTTPFabricConnection for a callback description). Callback object type: 'SLResponse' (see its description in Java documentation).

invokeServiceRequest(event, callback)
Asynchronously passes the specified event to the associated service to invoke the corresponding service method. The value returned by the service method is passed to the specified callback function when it is returned from server side. The callback won't be called until the response event is available or the default timeout (30 seconds) is expired. In the last case the callback is called with null parameter.
Parameters:
{event} event
The event to be passed to the service
{Function} callback
The callback function called with the response event got from the service processing method or null if the timeout is expired. (See HTTPFabricConnection for a callback description). Callback object type: Event.AbstractDataEvent

invokeServiceRequestWithWait(event, timeout, callback)
Asynchronously passes the specified event to the associated service to invoke the corresponding service method. The value returned by the service method is passed to the specified callback function when it is returned from server side. The callback won't be called until the response event is available or the specified timeout is expired. In the last case the callback is called with null parameter.
Parameters:
{event} event
The event to be passed to the service
{number} timeout
The maximum waiting time in milliseconds. Zero or negative value means infinite timeout.
{Function} callback
The callback function called with the response event got from the service processing method or null if the timeout is expired. (See HTTPFabricConnection for a callback description). Callback object type: Event.AbstractDataEvent

Copyright © 2015-2021 StreamScape Technologies. All rights reserved.