Skip navigation links
A C D G I L M N O S V 

A

addClient(String, String) - Method in class net.scattersphere.api.Client
Adds a connection to a server, assigning a name to that connection.

C

Client - Class in net.scattersphere.api
This portion of the API handles commands sent to a client endpoint.
Client() - Constructor for class net.scattersphere.api.Client
Constructor.
ClientConnection - Class in net.scattersphere.api
This class handles the connection for the CLI to the endpoint server.
ClientConnection() - Constructor for class net.scattersphere.api.ClientConnection
Constructor.
ClientConnectionState - Enum in net.scattersphere.api
These are the client connection states that occur during a connection.
connect(String) - Method in class net.scattersphere.api.ClientConnection
Connects to a specified address, in the format of "address" or "address:port".

D

disconnect() - Method in class net.scattersphere.api.ClientConnection
Handles the disconnection from the currently active client.

G

getClientConnection(String) - Method in class net.scattersphere.api.Client
Retrieves the underlying ClientConnection, which is the communication layer to the endpoint.
getConnectStatus() - Method in class net.scattersphere.api.ClientConnection
Returns the status of the current connection.

I

isConnected() - Method in class net.scattersphere.api.ClientConnection
Flag indicating whether or not the connection is active.

L

listJobs(String) - Method in class net.scattersphere.api.Client
Requests a list of jobs from the specified server.
listJobs(String, String) - Method in class net.scattersphere.api.Client
 

M

messageReceived(Consumer<JobMessage>) - Method in class net.scattersphere.api.ClientConnection
 

N

net.scattersphere.api - package net.scattersphere.api
 

O

onConnect(Consumer<String>) - Method in class net.scattersphere.api.Client
Lambda function called when a connection is successful.
onConnect(Consumer<ClientConnectionState>) - Method in class net.scattersphere.api.ClientConnection
 
onDisconnect(Consumer<String>) - Method in class net.scattersphere.api.Client
Lambda function called when a connection is lost, or dropped.
onMessage(BiConsumer<String, JobMessage>) - Method in class net.scattersphere.api.Client
Lambda function called when a message is received from a server.

S

send(String, JobMessage) - Method in class net.scattersphere.api.Client
Sends a message to the specified server.
sendMessage(byte[]) - Method in class net.scattersphere.api.ClientConnection
Sends a command payload to the server, packetizing the data (header with length), and sending it across the wire in a Buffer.
startJob(String, String, String[]) - Method in class net.scattersphere.api.Client
Starts a job by name, with specified arguments.
statusJob(String, String) - Method in class net.scattersphere.api.Client
Retrieves status for a job by ID.
stopJob(String, String, String) - Method in class net.scattersphere.api.Client
Stops a job by its ID.

V

valueOf(String) - Static method in enum net.scattersphere.api.ClientConnectionState
Returns the enum constant of this type with the specified name.
values() - Static method in enum net.scattersphere.api.ClientConnectionState
Returns an array containing the constants of this enum type, in the order they are declared.
A C D G I L M N O S V 
Skip navigation links

Copyright © 2015. All rights reserved.