Class: OpenICE

OpenICE

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

Properties:
Name Type Description
maxSamples int Max samples preserved for each row.
Source:

tables

Properties:
Name Type Description
tables object Tables hashed by table key string.
Source:

url

Properties:
Name Type Description
url string The URL of the remote OpenICE server.
Source:

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
Properties:
Name Type Description
openICE OpenICE The OpenICE object
table Table The added table
Source:

OpenICE:afterremove

A row has been removed from a table
Type:
  • object
Properties:
Name Type Description
openICE OpenICE The OpenICE object
table Table The table
Row Row The removed row
Source:

OpenICE:beforeadd

A row will be added to a table
Type:
  • object
Properties:
Name Type Description
openICE OpenICE The OpenICE object
table Table The table
Row Row The row to be added
Source:

OpenICE:beforeadd

A row has been added to a table
Type:
  • object
Properties:
Name Type Description
openICE OpenICE The OpenICE object
table Table The table
Row Row The added row
Source:

OpenICE:beforeremove

A row will be removed from a table
Type:
  • object
Properties:
Name Type Description
openICE OpenICE The OpenICE object
table Table The table
Row Row The row to be removed
Source:

OpenICE:close

The connection has been closed
Type:
  • object
Properties:
Name Type Description
openICE OpenICE
Source:

OpenICE:error

An error has occurred
Type:
  • object
Properties:
Name Type Description
openICE OpenICE The OpenICE object
err object Further information about the error
Source:

OpenICE:open

The connection has been (re)opened
Type:
  • object
Properties:
Name Type Description
openICE OpenICE
Source:

OpenICE:removetable

A table has been removed
Type:
  • object
Properties:
Name Type Description
openICE OpenICE The OpenICE object
table Table The removed table
Source:

OpenICE:sample

A new sample has been added to a row of a table
Type:
  • object
Properties:
Name Type Description
openICE OpenICE The OpenICE object
table Table The table
row Row The row
sample Sample The new sample
Source:

OpenICE:schema

A schema has been (re)assigned to a table
Type:
  • object
Properties:
Name Type Description
openICE OpenICE The OpenICE object
table Table The table
schema object The new schema
Source: