org.aselect.server.admin
Class SessionMonitorModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by org.aselect.server.admin.SessionMonitorModel
All Implemented Interfaces:
java.io.Serializable, java.lang.Runnable, javax.swing.table.TableModel

public class SessionMonitorModel
extends javax.swing.table.AbstractTableModel
implements java.lang.Runnable

SessionMonitorModel class used by the AdminMonitor.

Description:
This monitor contains all the information concerning the A-Select Sessions.

Concurrency issues:
None

Author:
Alfa & Ariss
See Also:
Serialized Form

Field Summary
static java.lang.String MODULE
          The module name.
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
SessionMonitorModel(int iCheckInterval)
          SessionMonitorModel constructor.
 
Method Summary
 int getColumnCount()
          Returns the current column count.
 java.lang.String getColumnName(int iIndex)
          Returns the name of the column based on iIndex.
 int getRowCount()
          Returns the current row count.
 long getSessionsCounter()
          Returns the session count.
 java.lang.Object getValueAt(int iRow, int iColumn)
          Returns the current value at a specific row and column.
 void run()
          Main run function for the Runner Thread.
 void stop()
          This functions stops the SessionMonitor.
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MODULE

public static final java.lang.String MODULE
The module name.

See Also:
Constant Field Values
Constructor Detail

SessionMonitorModel

public SessionMonitorModel(int iCheckInterval)
SessionMonitorModel constructor.

Description:
Initializes the SessionMonitorModel.

Concurrency issues:
none

Preconditions:
iCheckInterval > 0

Postconditions:
The Main RunnerThread is running.

Parameters:
iCheckInterval - Interval used to check for new information.
Method Detail

stop

public void stop()
This functions stops the SessionMonitor.

Description:
_bActive is set to false and the current thread is interupted.

Concurrency issues:
none

Preconditions:
none

Postconditions:
none


getSessionsCounter

public long getSessionsCounter()
Returns the session count.

Description:
This function calls _oSessionManager.getSessionsCounter() to retrieve the session count.

Concurrency issues:
none

Preconditions:
none

Postconditions:
none

Returns:
long containing session count.

getRowCount

public int getRowCount()
Returns the current row count.

Specified by:
getRowCount in interface javax.swing.table.TableModel
See Also:
TableModel.getRowCount()

getColumnCount

public int getColumnCount()
Returns the current column count.

Specified by:
getColumnCount in interface javax.swing.table.TableModel
See Also:
TableModel.getColumnCount()

getValueAt

public java.lang.Object getValueAt(int iRow,
                                   int iColumn)
Returns the current value at a specific row and column.

Specified by:
getValueAt in interface javax.swing.table.TableModel
See Also:
TableModel.getValueAt(int, int)

getColumnName

public java.lang.String getColumnName(int iIndex)
Returns the name of the column based on iIndex.

Specified by:
getColumnName in interface javax.swing.table.TableModel
Overrides:
getColumnName in class javax.swing.table.AbstractTableModel
See Also:
TableModel.getColumnName(int)

run

public void run()
Main run function for the Runner Thread.

Specified by:
run in interface java.lang.Runnable
See Also:
Runnable.run()


Copyright © 2008 SURFnet BV. All Rights Reserved.