Class: RemoteConnection

RemoteConnection(url, optionsopt)

Represents an abstraction of a "connection" to a "server" that is capable of processing a traversal and returning results.

Constructor

new RemoteConnection(url, optionsopt)

Parameters:
Name Type Attributes Description
url String The resource uri.
options Object <optional>
The connection options.
Source:

Members

isOpen

Returns true if connection is open
Source:

isSessionBound

Determines if the connection is already bound to a session. If so, this indicates that the #createSession() cannot be called so as to produce child sessions.
Source:

Methods

close() → {Promise}

Closes the connection where open transactions will close according to the features of the graph provider.
Source:
Returns:
Type
Promise

commit() → {Promise}

Submits a Bytecode.GraphOp.commit to the server and closes the connection.
Source:
Returns:
Type
Promise

createSession() → {RemoteConnection}

Create a new RemoteConnection that is bound to a session using the configuration from this one. If the connection is already session bound then this function should throw an exception.
Source:
Returns:
Type
RemoteConnection

open() → {Promise}

Opens the connection, if its not already opened.
Source:
Returns:
Type
Promise

rollback() → {Promise}

Submits a Bytecode.GraphOp.rollback to the server and closes the connection.
Source:
Returns:
Type
Promise

(abstract) submit(bytecode) → {Promise}

Submits the Bytecode provided and returns a RemoteTraversal.
Parameters:
Name Type Description
bytecode Bytecode
Source:
Returns:
Returns a Promise that resolves to a RemoteTraversal.
Type
Promise