|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthudson.model.AbstractDescribableImpl<GerritSlave>
com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.data.GerritSlave
public class GerritSlave
Represents a Gerrit slave after which we wait for replication events.
Nested Class Summary | |
---|---|
static class |
GerritSlave.GerritSlaveDescriptor
The Descriptor for a GerritSlave. |
Field Summary | |
---|---|
static int |
DISABLED_TIMEOUT_VALUE
Disabled timeout value. |
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class hudson.model.AbstractDescribableImpl |
---|
getDescriptor |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int DISABLED_TIMEOUT_VALUE
Constructor Detail |
---|
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.Method Detail |
---|
public String getId()
public String getName()
public String getHost()
public int getTimeoutInSeconds()
public static GerritSlave createGerritSlaveFromJSON(net.sf.json.JSONObject obj)
obj
- the JSONObject.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |