Package org.opends.guitools.uninstaller
Class UninstallData
- java.lang.Object
-
- org.opends.guitools.uninstaller.UninstallData
-
public class UninstallData extends Object
This is a convenience class used to represent the current configuraton and status of the server to know which kind of questions we must ask to the user (the server is running, it is configured for replication, it contains an ADS...). The difference with Installation class is that it provides read only information that is computed in the constructor of the class and not on demand. This way we can construct the object outside the event thread and then read it inside the event thread without blocking the display.
-
-
Constructor Summary
Constructors Constructor Description UninstallData(Installation installation)The constructor for UninstallData.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetReplicationServerPort()Returns the port of the replication serverbooleanisADS()Returns whether this server is configured as an ADS or not.booleanisReplicationServer()Returns whether this server is configured as a replication server or not.booleanisServerRunning()Returns whether this server is running or not.
-
-
-
Constructor Detail
-
UninstallData
public UninstallData(Installation installation) throws IOException
The constructor for UninstallData.- Parameters:
installation- the object describing the installation.- Throws:
IOException- if there was an error retrieving the current installation configuration.
-
-
Method Detail
-
isADS
public boolean isADS()
Returns whether this server is configured as an ADS or not.- Returns:
trueif the server is configured as an ADS andfalseotherwise.
-
isReplicationServer
public boolean isReplicationServer()
Returns whether this server is configured as a replication server or not.- Returns:
trueif the server is configured as a replication server andfalseotherwise.
-
isServerRunning
public boolean isServerRunning()
Returns whether this server is running or not.- Returns:
trueif the server is running andfalseotherwise.
-
getReplicationServerPort
public int getReplicationServerPort()
Returns the port of the replication server. -1 if it is not defined.- Returns:
- the port of the replication server. -1 if it is not defined.
-
-