com.martealert
Class martealertRealTime
java.lang.Object
com.martealert.martealertTable
com.martealert.martealertRealTime
- All Implemented Interfaces:
- martealertConstants, martealertRealTimeInterface
- public class martealertRealTime
- extends martealertTable
- implements martealertRealTimeInterface
Fields inherited from class com.martealert.martealertTable |
_, ALIASVAR, columnNames, data, DEFAULT, GROUPBY, IDENT, INDEX, INDEXSEARCH, NAMEDVAR, RELATION, SELECT, TX, UNNAMEDVAR, VAR |
Fields inherited from interface com.martealert.martealertConstants |
AMBIGUOUS_FIELDS, ANALYZER, CLASSIFICATION, COMPLETION, FTS, FTSTZ, HOUR_IN_MILLIS, INTERVAL, IPADDRS, LASTJOIN, LTS, LTSTZ, MAXMSGID, MAXSEVERITY, MFTS, MLTS, MSGID, MSOURCEPORT, NALERTS, NOTNULL_FIELDS, NULL_FIELDS, NXCLASSIFICATION, ORDER_BY_ALERTS, ORDER_BY_MAXTIME, ORDER_BY_TIME, PRELUDE_TABLES, PROTOCOL, SENSOR, SEVERITY, SEVERITY_COMPLETION, SOURCE, SOURCEIP, SOURCEPORT, SOURCEUID, TARGET, TARGETIP, TARGETPORT, TARGETPORT_PROTOCOL, TARGETUID, TERMINAL, TIME, TIMETZ, TLAST, TOP, TOTALTIME |
Method Summary |
int |
getLastId()
Obtain identifier from most recient row without acceeding the database. |
void |
getLogsRealTime(java.sql.Connection con,
int lim)
Calculate and set into this last tuples limited by lim parameter.
|
int |
getSeverityColumn()
Get column number which has maximum severity for each martealertFirstLevel row. |
protected java.lang.String |
getSqlOrderBy()
|
protected java.lang.String |
getSqlTables(java.sql.Connection con,
int lim)
|
protected java.lang.String |
getSqlVars()
|
void |
reload(java.sql.Connection con,
int indx)
Calculate and set into this object tuples which identifier is equals to parameter indx or higher. |
Methods inherited from class com.martealert.martealertTable |
clear, getColumn, getColumnNames, getColumnSize, getData, getFTSColumn, getIgnoredColumnsPdf, getIpColumns, getLTSColumn, getMultilineColumns, getPercentColumns, getPortColumns, getProtocolColumns, getRow, getRowSize, getSqlRelation, getTableVector, getValue, getValue, getValue, printTable, reload, setColumnNames, setDataVector, setDataVector, setValue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
martealertRealTime
public martealertRealTime()
- Creates a new instance of martealertRealTime
reload
public void reload(java.sql.Connection con,
int indx)
throws java.sql.SQLException
- Calculate and set into this object tuples which identifier is equals to parameter indx or higher.
- Parameters:
con
- Connection variable to access the database.indx
- int with lowest index of the returned table stored in this.
- Throws:
java.sql.SQLException
- Syntax error calculating real time tuples.
getLogsRealTime
public void getLogsRealTime(java.sql.Connection con,
int lim)
throws java.sql.SQLException
- Calculate and set into this last tuples limited by lim parameter.
For example, if lim=20, they're stored last 20 tuples (most recients).
- Parameters:
con
- Connection variable to access the database.lim
- int limit.
- Throws:
java.sql.SQLException
- Syntax error calculating real time tuples.
getSqlVars
protected java.lang.String getSqlVars()
getSqlTables
protected java.lang.String getSqlTables(java.sql.Connection con,
int lim)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getSqlOrderBy
protected java.lang.String getSqlOrderBy()
getLastId
public int getLastId()
- Obtain identifier from most recient row without acceeding the database.
- Returns:
- int value of first row message identifier.
getSeverityColumn
public int getSeverityColumn()
- Get column number which has maximum severity for each martealertFirstLevel row.
- Overrides:
getSeverityColumn
in class martealertTable
- Returns:
- integer with severity column number.