new OpenICE(url)
Represents a connection back to the OpenICE system.
Parameters:
Name | Type | Description |
---|---|---|
url |
string | The URL to connect to the OpenICE system. |
- Source:
Members
-
maxSamples
-
- Source:
Properties:
Name Type Description maxSamples
int Max samples preserved for each row. -
tables
-
- Source:
Properties:
Name Type Description tables
object Tables hashed by table key string. -
url
-
- Source:
Properties:
Name Type Description url
string The URL of the remote OpenICE server.
Methods
-
createTable(args) → {Table}
-
Creates a table with identifying information (or returns existing table if already created) and requests table information from the server.
Parameters:
Name Type Description args
object Contains attributes domain, partition, and topic identifying the table. - Source:
Returns:
- Type
- Table
-
destroyTable(args)
-
Destroys a table with identifying information (or no op if it does not exist) and requests that the server stop sending information about the table.
Parameters:
Name Type Description args
object Contains attributes domain, partition, and topic identifying the table. - Source:
-
getTable(args)
-
Retrieves a table by identifying information. If the table does not exist it is NOT created.
Parameters:
Name Type Description args
object Contains attributes domain, partition, and topic identifying the table. - Source:
Events
-
OpenICE:addtable
-
A table has been added
Type:
- object
- Source:
Properties:
-
OpenICE:afterremove
-
A row has been removed from a table
Type:
- object
-
OpenICE:beforeadd
-
A row will be added to a table
Type:
- object
-
OpenICE:beforeadd
-
A row has been added to a table
Type:
- object
-
OpenICE:beforeremove
-
A row will be removed from a table
Type:
- object
-
OpenICE:close
-
The connection has been closed
Type:
- object
- Source:
Properties:
Name Type Description openICE
OpenICE -
OpenICE:error
-
An error has occurred
Type:
- object
- Source:
Properties:
Name Type Description openICE
OpenICE The OpenICE object err
object Further information about the error -
OpenICE:open
-
The connection has been (re)opened
Type:
- object
- Source:
Properties:
Name Type Description openICE
OpenICE -
OpenICE:removetable
-
A table has been removed
Type:
- object
- Source:
Properties:
-
OpenICE:sample
-
A new sample has been added to a row of a table
Type:
- object
-
OpenICE:schema
-
A schema has been (re)assigned to a table
Type:
- object