|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.GerritConnectionListener
public class GerritConnectionListener
Every instance of this class is a connection listener to a specific Gerrit server. It keeps track of the connection status and information about the version and features of the Gerrit server.
Constructor Summary | |
---|---|
GerritConnectionListener(String serverName)
Default constructor. |
Method Summary | |
---|---|
void |
checkGerritVersionFeatures()
Checks the Gerrit version that we are connected to. |
void |
connectionDown()
|
void |
connectionEstablished()
|
boolean |
equals(Object obj)
|
List<GerritVersionChecker.Feature> |
getDisabledFeatures()
A list of the features that have been disabled due to old Gerrit version of a specific Gerrit server. |
String |
getName()
Return the name of the server to which this listener is attached. |
int |
hashCode()
|
boolean |
isConnected()
Return whether the listener is connected. |
boolean |
isSnapShotGerrit()
Return whether the Gerrit server is a snapshot version. |
void |
setConnected(boolean connected)
Set the connection status. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GerritConnectionListener(String serverName)
serverName
- the name of the Gerrit server.Method Detail |
---|
public String getName()
public boolean isConnected()
public void setConnected(boolean connected)
connected
- the connection statuspublic boolean isSnapShotGerrit()
public List<GerritVersionChecker.Feature> getDisabledFeatures()
public void connectionEstablished()
connectionEstablished
in interface com.sonymobile.tools.gerrit.gerritevents.ConnectionListener
ConnectionListener.connectionEstablished()
public void connectionDown()
connectionDown
in interface com.sonymobile.tools.gerrit.gerritevents.ConnectionListener
ConnectionListener.connectionDown()
public void checkGerritVersionFeatures()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |