public class GerritConnectionListener extends Object implements com.sonymobile.tools.gerrit.gerritevents.ConnectionListener
Constructor and Description |
---|
GerritConnectionListener(String serverName)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public GerritConnectionListener(String serverName)
serverName
- the name of the Gerrit server.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()
Copyright © 2016–2019. All rights reserved.