public class GerritSlave extends hudson.model.AbstractDescribableImpl<GerritSlave>
Modifier and Type | Class and Description |
---|---|
static class |
GerritSlave.GerritSlaveDescriptor
The Descriptor for a GerritSlave.
|
Modifier and Type | Field and Description |
---|---|
static int |
DISABLED_TIMEOUT_VALUE
Disabled timeout value.
|
Constructor and Description |
---|
GerritSlave(String name,
String host,
int timeout)
Create a new GerritSlave, a new id will be generated.
|
GerritSlave(String id,
String name,
String host,
int timeoutInSeconds)
Standard Constructor.
|
Modifier and Type | Method and Description |
---|---|
static GerritSlave |
createGerritSlaveFromJSON(net.sf.json.JSONObject obj)
Creates a GerritSlave from a JSONObject.
|
String |
getHost()
Getter for host.
|
String |
getId()
Getter for id.
|
String |
getName()
Getter for name.
|
int |
getTimeoutInSeconds()
Getter for time-out.
|
public static final int DISABLED_TIMEOUT_VALUE
public GerritSlave(String id, String name, String host, int timeoutInSeconds)
id
- the ID or null
to generate a new onename
- the name to represent/identify this gerritSlavehost
- the host for the gerritSlave, can include port(e.g. someHost:1234).timeoutInSeconds
- maximum time we wait for a replication event.public GerritSlave(String name, String host, int timeout)
name
- the name to represent/identify this gerritSlavehost
- the host for the gerritSlave, can include port(e.g. someHost:1234).timeout
- maximum time we wait for a replication event.public String getId()
public String getName()
public String getHost()
public int getTimeoutInSeconds()
public static GerritSlave createGerritSlaveFromJSON(net.sf.json.JSONObject obj)
obj
- the JSONObject.Copyright © 2016. All rights reserved.