Class DatabaseMonitoringTableModel

    • Constructor Detail

      • DatabaseMonitoringTableModel

        public DatabaseMonitoringTableModel()
    • Method Detail

      • setData

        public void setData​(Set<BackendDescriptor> newData)
        Sets the data for this table model.
        Parameters:
        newData - the data for this table model.
      • forceResort

        public void forceResort()
        Updates the table model contents and sorts its contents depending on the sort options set by the user.
        Specified by:
        forceResort in class SortableTableModel
      • forceDataStructureChange

        public void forceDataStructureChange()
        Updates the table model contents, sorts its contents depending on the sort options set by the user and updates the column structure.
      • isSortAscending

        public boolean isSortAscending()
        Returns whether the sort is ascending or descending.
        Specified by:
        isSortAscending in class SortableTableModel
        Returns:
        true if the sort is ascending and false otherwise.
      • setSortAscending

        public void setSortAscending​(boolean sortAscending)
        Sets whether to sort ascending of descending.
        Specified by:
        setSortAscending in class SortableTableModel
        Parameters:
        sortAscending - whether to sort ascending or descending.
      • getSortColumn

        public int getSortColumn()
        Returns the column index used to sort.
        Specified by:
        getSortColumn in class SortableTableModel
        Returns:
        the column index used to sort.
      • setSortColumn

        public void setSortColumn​(int sortColumn)
        Sets the column index used to sort.
        Specified by:
        setSortColumn in class SortableTableModel
        Parameters:
        sortColumn - column index used to sort..
      • getAttributes

        public Collection<String> getAttributes()
        Returns the fields displayed by this table model.
        Returns:
        the fields displayed by this table model.
      • setAttributes

        public void setAttributes​(Set<String> fields)
        Sets the fields displayed by this table model.
        Parameters:
        fields - the statistic fields displayed by this table model.