Class 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 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:
        true if the server is configured as an ADS and false otherwise.
      • isReplicationServer

        public boolean isReplicationServer()
        Returns whether this server is configured as a replication server or not.
        Returns:
        true if the server is configured as a replication server and false otherwise.
      • isServerRunning

        public boolean isServerRunning()
        Returns whether this server is running or not.
        Returns:
        true if the server is running and false otherwise.
      • 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.