Class: DataSink

DataSink(name, properties)

This class is in charge of send command to the server

Constructor

new DataSink(name, properties)

Parameters:
Name Type Description
name String -
properties Object -
Properties
Name Type Description
protocol String ['http']
endpointUrl String -
Source:

Methods

getId() → {String}

Gets the data protocol default id.
Source:
Returns:
The id
Type
String

getName() → {String}

Gets the name.
Source:
Returns:
The name
Type
String

sendRequest(properties)

Sends the request.
Parameters:
Name Type Description
properties Object -
Source:

Events

onError

Called when an error is caught.
Parameters:
Name Type Description
response
Source:

onSuccess

Called when the request succeeded.
Parameters:
Name Type Description
response
Source: