Class ReplicaDescriptor


  • public class ReplicaDescriptor
    extends Object
    The object of this class represent a Replica, i.e. a suffix in a given server instance.

    Note: this does not represent a replication server.

    • Constructor Detail

      • ReplicaDescriptor

        public ReplicaDescriptor()
    • Method Detail

      • getEntries

        public int getEntries()
        Returns the number of entries contained in the replica.
        Returns:
        the number of entries contained in the replica.
      • isReplicated

        public boolean isReplicated()
        Returns whether this replica is replicated or not.
        Returns:
        true if the replica is replicated, false otherwise.
      • isReplicationEnabled

        public boolean isReplicationEnabled()
        Returns whether replication is replicated on this server or not.
        Returns:
        true if replication is enabled, false otherwise.
      • setEntries

        public void setEntries​(int nbEntries)
        Sets the number of entries contained in the replica.
        Parameters:
        nbEntries - the number of entries contained in the replica.
      • getServer

        public ServerDescriptor getServer()
        Returns the ServerDescriptor object associated with the server where this replica is located.
        Returns:
        the ServerDescriptor object associated with the server where this replica is located.
      • setServer

        public void setServer​(ServerDescriptor server)
        Sets the server where this replica is located.
        Parameters:
        server - the ServerDescriptor object associated with the server where this replica is located.
      • getSuffix

        public SuffixDescriptor getSuffix()
        Returns the SuffixDescriptor object representing the suffix topology across servers to which this replica belongs.
        Returns:
        the SuffixDescriptor object representing the suffix topology across servers to which this replica belongs.
      • setSuffix

        public void setSuffix​(SuffixDescriptor suffix)
        Sets the SuffixDescriptor object representing the suffix topology across servers to which this replica belongs.
        Parameters:
        suffix - the SuffixDescriptor object representing the suffix topology across servers to which this replica belongs.
      • getReplicationServers

        public Set<HostPort> getReplicationServers()
        Returns a set containing the String representation of the replication servers that are defined in the replication domain for this replica.
        Returns:
        a set containing the String representation of the replication servers that are defined in the replication domain for this replica.
      • setReplicationServers

        public void setReplicationServers​(Set<HostPort> replicationServers)
        Sets the list of replication servers (in their String representation) that are defined in the replication domain for this replica.
        Parameters:
        replicationServers - the list of replication servers (in their String representation) that are defined in the replication domain for this replica.
      • getServerId

        public int getServerId()
        Returns the server id for the replication domain associated with this replica.
        Returns:
        the server id for the replication domain associated with this replica.
      • setServerId

        public void setServerId​(int serverId)
        Sets the server id for the replication domain associated with this replica.
        Parameters:
        serverId - the server id for the replication domain associated with this replica.
      • getAgeOfOldestMissingChange

        public long getAgeOfOldestMissingChange()
        Returns the age of the oldest missing change.
        Returns:
        the age of the oldest missing change.
      • setAgeOfOldestMissingChange

        public void setAgeOfOldestMissingChange​(long ageOfOldestMissingChange)
        Sets the age of the oldest missing change.
        Parameters:
        ageOfOldestMissingChange - the age of the oldest missing change.
      • getMissingChanges

        public int getMissingChanges()
        Returns the number of missing changes.
        Returns:
        the number of missing changes.
      • setMissingChanges

        public void setMissingChanges​(int missingChanges)
        Sets the number of missing changes.
        Parameters:
        missingChanges - the number of missing changes.
      • getBackendId

        public String getBackendId()
        Returns the name of the backend where this replica is defined.
        Returns:
        the name of the backend where this replica is defined.
      • setBackendId

        public void setBackendId​(String backendId)
        Sets the name of the backend where this replica is defined.
        Parameters:
        backendId - the name of the backend.
      • getObjectClasses

        public Set<String> getObjectClasses()
        Returns object classes of the backend attached to this replica.
        Returns:
        object classes of the backend attached to this replica.
      • setObjectClasses

        public void setObjectClasses​(Set<String> objectClasses)
        Sets the object classes of the backend attached to this replica.
        Parameters:
        objectClasses - object classes of the backend attached to this replica.