public abstract class AbstractSendCommandJob extends Object implements Runnable, GerritCmdRunner
GerritSendCommandQueue.| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
logger
An instance of a logger for sub-classes to use.
|
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractSendCommandJob(GerritConnectionConfig config)
Standard constructor taking the latest configuration.
|
| Modifier and Type | Method and Description |
|---|---|
GerritConnectionConfig |
getConfig()
Gets the connection config used when sending a command.
|
boolean |
sendCommand(String command)
Sends a command to the Gerrit server.
|
String |
sendCommandStr(String command)
Sends a command to the Gerrit server, returning the output from the command.
|
protected static org.slf4j.Logger logger
protected AbstractSendCommandJob(GerritConnectionConfig config)
config - the connection config.public GerritConnectionConfig getConfig()
public boolean sendCommand(String command)
sendCommand in interface GerritCmdRunnercommand - the command.public String sendCommandStr(String command)
sendCommandStr in interface GerritCmdRunnercommand - the command.Copyright © 2004-2015 Hudson. All Rights Reserved.