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.
New to GrepCode? Check out our FAQ X