|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sonyericsson.hudson.plugins.gerrit.trigger.config.ReplicationConfig
public class ReplicationConfig
Each instance of this class holds data needed to trigger builds on replication events, and is associated to one specific GerritServer. A GerritServer can have at most one ReplicationConfig in its Config object.
Constructor Summary | |
---|---|
ReplicationConfig()
Default constructor. |
|
ReplicationConfig(ReplicationConfig config)
Copy constructor. |
Method Summary | |
---|---|
static ReplicationConfig |
createReplicationConfigFromJSON(net.sf.json.JSONObject formData)
Create a ReplicationConfig object from JSON. |
String |
getDefaultSlaveId()
The id of the default slave to be selected in job config. |
GerritSlave |
getGerritSlave(String id,
boolean defaultSlave)
Get a specific Gerrit slave using its id. |
List<GerritSlave> |
getGerritSlaves()
Get the list of GerritSlave objects. |
boolean |
isEnableReplication()
If we enable waiting on replication events. |
boolean |
isEnableSlaveSelectionInJobs()
Whether slave selection in enabled in job config. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ReplicationConfig(ReplicationConfig config)
config
- the ReplicationConfig object to be copied, never null.public ReplicationConfig()
Method Detail |
---|
public boolean isEnableReplication()
public List<GerritSlave> getGerritSlaves()
public boolean isEnableSlaveSelectionInJobs()
public String getDefaultSlaveId()
public GerritSlave getGerritSlave(String id, boolean defaultSlave)
id
- the id of the slave.defaultSlave
- if true, will return the default slave when specified id do not exists.
public static ReplicationConfig createReplicationConfigFromJSON(net.sf.json.JSONObject formData)
formData
- the JSON data.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |