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 org.forgerock.opendj.ldap.messages.SearchResultEntry |
getMonitoringEntry(org.opends.guitools.controlpanel.datamodel.AddressConnectionHandlerDescriptor ach)
Returns the monitoring entry associated with the provided object.
|
protected List<Integer> |
getMonitoringPossibleResults(org.forgerock.opendj.ldap.messages.SearchResultEntry monitor1,
org.forgerock.opendj.ldap.messages.SearchResultEntry 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, getHeader
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
equals
public 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 org.forgerock.opendj.ldap.messages.SearchResultEntry 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 SortableTableModel
public void forceDataStructureChange()
public int getColumnCount()
getColumnCount
in interface TableModel
public int getRowCount()
getRowCount
in interface TableModel
public Object getValueAt(int row, int col)
getValueAt
in interface TableModel
public String getColumnName(int col)
getColumnName
in interface TableModel
getColumnName
in class AbstractTableModel
public boolean isSortAscending()
isSortAscending
in class SortableTableModel
true
if the sort is ascending and false
otherwise.public void setSortAscending(boolean sortAscending)
setSortAscending
in class SortableTableModel
sortAscending
- whether to sort ascending or descending.public int getSortColumn()
getSortColumn
in class SortableTableModel
public void setSortColumn(int sortColumn)
setSortColumn
in class SortableTableModel
sortColumn
- 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 List<Integer> getMonitoringPossibleResults(org.forgerock.opendj.ldap.messages.SearchResultEntry monitor1, org.forgerock.opendj.ldap.messages.SearchResultEntry monitor2)
monitor1
- the first monitoring entry.monitor2
- the second monitoring entry.Copyright © 2010-2017 ForgeRock AS. All Rights Reserved.