|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.table.AbstractTableModel
org.aselect.agent.admin.TicketMonitorModel
public class TicketMonitorModel
Monitors the tickets that are issued by the A-Select Agent.
Description:
This method monitors the issued tickets of the A-Select Agent. This class
implements Runnable in which it periodically checks the TicketManager for
issued ticket. The data is used by the AdminMonitor for display in the GUI.
Concurrency issues:
None.
Field Summary | |
---|---|
static java.lang.String |
MODULE
The MODULE name. |
Fields inherited from class javax.swing.table.AbstractTableModel |
---|
listenerList |
Constructor Summary | |
---|---|
TicketMonitorModel(int iCheckInterval)
Initializes the class. |
Method Summary | |
---|---|
int |
getColumnCount()
Returns the number of columns. |
java.lang.String |
getColumnName(int xIndex)
Returns the colum nname. |
int |
getRowCount()
Returns the number of rows. |
long |
getTicketsCounter()
|
java.lang.Object |
getValueAt(int iRow,
int iColumn)
Returns the value of an information items in this model. |
void |
run()
Loops and upon wakeup (monitoring interval), fetches the ticket information from the TicketManager. |
void |
stop()
Stops monitoring. |
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 |
---|
public static final java.lang.String MODULE
Constructor Detail |
---|
public TicketMonitorModel(int iCheckInterval) throws java.lang.NumberFormatException, ASelectConfigException
iCheckInterval
- the monitoring interval (in seconds) to wait for updating the
ticket information.
ASelectConfigException
- on configuration error. @ throws NumberFormatException on non-parseable
max_tickets
config item.
java.lang.NumberFormatException
- If 'max_tickets' parameter is incorrect.Method Detail |
---|
public void stop()
public long getTicketsCounter()
public int getRowCount()
getRowCount
in interface javax.swing.table.TableModel
TableModel.getRowCount()
public int getColumnCount()
getColumnCount
in interface javax.swing.table.TableModel
TableModel.getColumnCount()
public java.lang.Object getValueAt(int iRow, int iColumn)
getValueAt
in interface javax.swing.table.TableModel
TableModel.getValueAt(int, int)
public java.lang.String getColumnName(int xIndex)
getColumnName
in interface javax.swing.table.TableModel
getColumnName
in class javax.swing.table.AbstractTableModel
TableModel.getColumnName(int)
public void run()
run
in interface java.lang.Runnable
Runnable.run()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |