public class ConnectionHandlersMonitoringTableModel extends SortableTableModel
listenerList| Constructor and Description |
|---|
ConnectionHandlersMonitoringTableModel() |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(org.opends.guitools.controlpanel.datamodel.AddressConnectionHandlerDescriptor desc1,
org.opends.guitools.controlpanel.datamodel.AddressConnectionHandlerDescriptor desc2) |
protected Set<org.opends.guitools.controlpanel.datamodel.AddressConnectionHandlerDescriptor> |
convertToInternalData(Set<ConnectionHandlerDescriptor> newData)
Converts the provided data into internal data to be used by the table
model.
|
void |
forceDataStructureChange()
Updates the table model contents, sorts its contents depending on the
sort options set by the user and updates the column structure.
|
void |
forceResort()
Updates the table model contents and sorts its contents depending on the
sort options set by the user.
|
Collection<MonitoringAttributes> |
getAttributes()
Returns the attributes displayed by this table model.
|
int |
getColumnCount() |
String |
getColumnName(int col) |
protected CustomSearchResult |
getMonitoringEntry(org.opends.guitools.controlpanel.datamodel.AddressConnectionHandlerDescriptor ach)
Returns the monitoring entry associated with the provided object.
|
protected ArrayList<Integer> |
getMonitoringPossibleResults(CustomSearchResult monitor1,
CustomSearchResult monitor2)
Returns a list of integer with all the values of two monitoring entries
compared.
|
protected String |
getName(org.opends.guitools.controlpanel.datamodel.AddressConnectionHandlerDescriptor ach)
Returns the label to be used for the provided internal object.
|
protected LocalizableMessage |
getNameHeader()
Returns the header to be used for the name of the object.
|
int |
getRowCount() |
int |
getSortColumn()
Returns the column index used to sort.
|
Object |
getValueAt(int row,
int col) |
boolean |
isSortAscending()
Returns whether the sort is ascending or descending.
|
void |
setAttributes(LinkedHashSet<MonitoringAttributes> attributes,
boolean showAverages)
Sets the operations displayed by this table model.
|
void |
setData(Set<T> newData,
long runningTime)
Sets the data for this table model.
|
void |
setSortAscending(boolean sortAscending)
Sets whether to sort ascending of descending.
|
void |
setSortColumn(int sortColumn)
Sets the column index used to sort.
|
getHeader, getHeaderaddTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAtclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequalspublic ConnectionHandlersMonitoringTableModel()
protected Set<org.opends.guitools.controlpanel.datamodel.AddressConnectionHandlerDescriptor> convertToInternalData(Set<ConnectionHandlerDescriptor> newData)
newData - the set of objects to convert.public int compare(org.opends.guitools.controlpanel.datamodel.AddressConnectionHandlerDescriptor desc1, org.opends.guitools.controlpanel.datamodel.AddressConnectionHandlerDescriptor desc2)
protected CustomSearchResult getMonitoringEntry(org.opends.guitools.controlpanel.datamodel.AddressConnectionHandlerDescriptor ach)
ach - the internal object.null if there is no monitoring entry associated.protected String getName(org.opends.guitools.controlpanel.datamodel.AddressConnectionHandlerDescriptor ach)
ach - the internal object.protected LocalizableMessage getNameHeader()
public void setData(Set<T> newData, long runningTime)
newData - the data for this table model.runningTime - the running time of the server in miliseconds.public void forceResort()
forceResort in class SortableTableModelpublic void forceDataStructureChange()
public int getColumnCount()
getColumnCount in interface TableModelpublic int getRowCount()
getRowCount in interface TableModelpublic Object getValueAt(int row, int col)
getValueAt in interface TableModelpublic String getColumnName(int col)
getColumnName in interface TableModelgetColumnName in class AbstractTableModelpublic boolean isSortAscending()
isSortAscending in class SortableTableModeltrue if the sort is ascending and false
otherwise.public void setSortAscending(boolean sortAscending)
setSortAscending in class SortableTableModelsortAscending - whether to sort ascending or descending.public int getSortColumn()
getSortColumn in class SortableTableModelpublic void setSortColumn(int sortColumn)
setSortColumn in class SortableTableModelsortColumn - column index used to sort..public Collection<MonitoringAttributes> getAttributes()
public void setAttributes(LinkedHashSet<MonitoringAttributes> attributes, boolean showAverages)
attributes - the attributes displayed by this table model.showAverages - whether the averages (when makes sense) should be
displayed or not.protected ArrayList<Integer> getMonitoringPossibleResults(CustomSearchResult monitor1, CustomSearchResult monitor2)
monitor1 - the first monitoring entry.monitor2 - the second monitoring entry.Copyright © 2010-2015 ForgeRock AS. All Rights Reserved.