Bentrix Docs
HomePricingDashboard

Java: drivers

Every method of client.drivers in the Java SDK.

driverForget#

Ask the person to forget a driver · tool driver_forget

scope: adminplan: freesince 1.0.0long work: answers a job

Asks the person, on a card in Bentrix's window naming this agent, to forget a driver elsewhere; Allow forgets it as Settings > Drivers' Forget does, and it must be paired again to be reached. Answers a job.

Declaration

client.drivers
public Job driverForget(DriverForgetArgs args)

Parameters

NameTypeWhat it is
driverStringrequiredThe driver's key, as drivers_list gives it.

Returns

Job — job.waitFor(timeout, poll) answers the result: this is long work, or work the person allows first, so the call answers at once with a job and its result comes when it ends, as maps and lists.

What it answers

Answers a job.

Example

client.drivers.driverForget(new Bentrix.DriversApi.DriverForgetArgs("…"))

driverPair#

Pair with a driver elsewhere · tool driver_pair

scope: adminplan: freesince 1.0.0

Pairs with a terminal driver on another computer of this network, as Settings > Drivers' Pair does: its address and the one-use code it shows on its own computer, where the person allows it. Answers that pairing is under way; the driver appears in drivers_list once paired.

Declaration

client.drivers
public Object driverPair(DriverPairArgs args)

Parameters

NameTypeWhat it is
addressStringrequiredThe driver's address on this network, host:port.
codeStringrequiredThe one-use code the driver shows on its own computer.

Returns

Object — the tool’s answer as maps and lists.

What it answers

Answers that pairing is under way; the driver appears in drivers_list once paired.

Example

client.drivers.driverPair(new Bentrix.DriversApi.DriverPairArgs("…", "…"))

driverSetInside#

Run the driver inside Bentrix, or apart · tool driver_set_inside

scope: adminplan: freesince 2.3.0

Sets where this computer's driver runs, as Settings > Drivers' Run the driver inside Bentrix does: inside Bentrix's own process (one process fewer), or as a process of its own (the default: a fault of the driver's never closes Bentrix). Takes effect the next time the driver starts. Answers the drivers.

Declaration

client.drivers
public Object driverSetInside(DriverSetInsideArgs args)

Parameters

NameTypeWhat it is
insidebooleanrequiredTrue runs the driver inside Bentrix's own process; false (the default) as a process of its own.

Returns

Object — the tool’s answer as maps and lists.

What it answers

Answers the drivers.

Example

client.drivers.driverSetInside(new Bentrix.DriversApi.DriverSetInsideArgs(true))

driverSetRendezvous#

Set the drivers' rendezvous · tool driver_set_rendezvous

scope: adminplan: freesince 1.0.0

Sets the rendezvous a driver elsewhere is reached through, as Settings > Drivers' rendezvous row does; empty is Bentrix's own. Answers the drivers, or the row's own refusal of what was typed.

Declaration

client.drivers
public Object driverSetRendezvous(DriverSetRendezvousArgs args)

Parameters

NameTypeWhat it is
hostStringrequiredThe rendezvous host the drivers elsewhere are reached through; empty for Bentrix's own.

Returns

Object — the tool’s answer as maps and lists.

What it answers

Answers the drivers, or the row's own refusal of what was typed.

Example

client.drivers.driverSetRendezvous(new Bentrix.DriversApi.DriverSetRendezvousArgs("…"))

driverSettings#

Read the driver's settings · tool driver_settings

scope: readplan: freesince 2.3.0

What Settings > Driver shows, as this computer's driver last answered it: Keep the driver running, run as this user or as a Windows service, the applications paired with it (their capabilities, whether connected, whether paired from another computer), a pairing code and an application asking to pair, Reachable on this network and over the internet with the rendezvous, Allow trading through this driver, Manage MetaTrader's settings myself, the build and the log folder. Asks the driver again; an answer older than a moment is what it said last. Who may reach this computer's terminals, and how, is the person's to change, never an agent's.

Declaration

client.drivers
public Object driverSettings()

It takes no arguments.

Returns

Object — the tool’s answer as maps and lists.

What it answers

What the tool's description says.

Example

client.drivers.driverSettings()

list#

Read the drivers · tool drivers_list

scope: readplan: freesince 1.0.0

Answers the terminal drivers elsewhere this install remembers - each one's key, the label it gave itself and the address it was paired at - the rendezvous in force, and this computer's driver's update setting.

Declaration

client.drivers
public Object list()

It takes no arguments.

Returns

Object — the tool’s answer as maps and lists.

What it answers

Recorded from a running Bentrix 0.1.382 on a laboratory of generated markets (long lists cut to their first rows):

{
  "elsewhere": [],
  "rendezvous": "link.bentrix.net"
}

Example

client.drivers.list()

Bentrix 0.1.382Every number, name and default on these pages is read from the application itself.What is comingWhat changed