Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.eyrie.remctl.client;
 
A client for a remctl server.

Implementations must be thread safe, and handle connection resources (opening, closing, etc)

Author(s):
pradtke
public interface RemctlClient {

    
Runs the list of arguments against the remctl server.

Parameters:
arguments The arguments to run. Generally the first argument is the command, and the rest are arguments for that command.
Returns:
The response from the server
Throws:
org.eyrie.remctl.core.RemctlException if error token is returned or this is an error contacting server.
RemctlStatusException if the return status is not 0.
org.eyrie.remctl.core.RemctlErrorException if error token encountered during processing.
    RemctlResponse execute(String... arguments);

    
Runs the list of arguments against the remctl server.

Parameters:
arguments The arguments to run. Generally the first argument is the command, and the rest are arguments for that command.
Returns:
The response from the server
Throws:
org.eyrie.remctl.core.RemctlException if error token is returned or this is an error contacting server.
org.eyrie.remctl.core.RemctlErrorException if error token encountered during processing.
    RemctlResponse executeAllowAnyStatus(String... arguments);

    
Return the port that the connection is on, or would be on when execute is called.

Returns:
the port to connect on, 0 if not specified ( the default (org.eyrie.remctl.core.Utils.DEFAULT_PORT) port would be used) or -1 if it can't be determined.
    int getPort();
New to GrepCode? Check out our FAQ X