com.sonyericsson.hudson.plugins.gerrit.gerritevents
Interface GerritCmdRunner

All Known Implementing Classes:
AbstractSendCommandJob

public interface GerritCmdRunner

Author:
Robert Sandell <robert.sandell@sonyericsson.com>

Method Summary
 boolean sendCommand(String command)
          Runs a command on the gerrit server.
 String sendCommandStr(String command)
          Runs a command on the gerrit server and returns the output from the command.
 

Method Detail

sendCommand

boolean sendCommand(String command)
Runs a command on the gerrit server. Any exception that could happen is hidden but logged.

Parameters:
command - the command.
Returns:
true if the command was successful, false otherwise.

sendCommandStr

String sendCommandStr(String command)
Runs a command on the gerrit server and returns the output from the command. Any exception that could happen is hidden but logged.

Parameters:
command - the command.
Returns:
the output of the command, or null if something went wrong.


Copyright © 2004-2012 Hudson. All Rights Reserved.