public class MFAdmin extends MFClient
MFClient.TimeStats| Constructor and Description |
|---|
MFAdmin(MFString _username,
MFString _password,
MFString _hostname1,
int _port1)
Create a new admin object.
|
MFAdmin(MFString _username,
MFString _password,
MFString _hostname1,
int _port1,
MFString _hostname2,
int _port2)
Create a new admin object (with failover).
|
| Modifier and Type | Method and Description |
|---|---|
static MFAdmin |
open(MFString user,
MFString pass,
MFString host,
int port)
A convenience method which creates a new client object, attempts to
connect to Whisperer, and cleans up and throws an exception if we could
not connect.
|
static MFAdmin |
open(MFString user,
MFString pass,
MFString _hostname1,
int _port1,
MFString _hostname2,
int _port2)
A convenience method which creates a new client object, attempts to
connect to Whisperer, and cleans up and throws an exception if we could
not connect.
|
APIResult |
run(MFAdminHandler handler)
Run a loop that will continuously dispatch incoming messages to a
_handler implementation.
|
APIResult |
run(MFHandler _handler)
Run a loop that will continuously dispatch incoming messages to a
_handler implementation.
|
allowClientsToConnect, cancelAll, cancelAll, cancelOrder, cancelOrder, cancelOrder, close, connect, enableDebugMetrics, getCurrentBatchID, getCurrentBatchMarkets, getFeedByID, getFeedByName, getFeeds, getHostname, getLastPingTimes, getMarketByID, getMarketByName, getPort, getSequenceID, getSignature, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, isConnected, isRunning, join, lockUser, modifyOrder, modifyOrder, open, open, processEvents, registerMarketComb, replay, requestSnapshot, setDebug, setStickySubscriptions, setStickySubscriptions, setUseHeartbeat, stop, submitOrder, submitOrder, submitOrder, submitOrder, submitOrder, subscribeAllMD, subscribeMD, subscribeMD, subscribeOF, subscribeOF, unregisterMarketComb, unsubscribeAll, unsubscribeMD, unsubscribeMD, unsubscribeOF, unsubscribeOFpublic MFAdmin(MFString _username, MFString _password, MFString _hostname1, int _port1)
_username - -- the username_password - -- the password_hostname1 - -- primary hostname_port1 - -- primary portpublic MFAdmin(MFString _username, MFString _password, MFString _hostname1, int _port1, MFString _hostname2, int _port2)
_username - -- the username_password - -- the password_hostname1 - -- primary hostname_port1 - -- primary port_hostname2 - -- secondary hostname_port2 - -- secondary portpublic APIResult run(MFHandler _handler)
MFClientrun in class MFClient_handler - -- the handler to be runpublic APIResult run(MFAdminHandler handler)
handler - to be run
Note: this should not be invoked by _handler.public static MFAdmin open(MFString user, MFString pass, MFString host, int port) throws java.io.IOException
user - -- usernamepass - -- passwordhost - -- hostname or ipport - -- tcp port numberjava.io.IOException - if the connection attempt failspublic static MFAdmin open(MFString user, MFString pass, MFString _hostname1, int _port1, MFString _hostname2, int _port2) throws java.io.IOException
user - -- usernamepass - -- password_hostname1 - -- the primary host_port1 - -- the primary port_hostname2 - -- the secondary host_port2 - -- the secondary portjava.io.IOException - if the connection attempt fails