com.martealert
Class martealertRealTime

java.lang.Object
  extended bycom.martealert.martealertTable
      extended bycom.martealert.martealertRealTime
All Implemented Interfaces:
martealertConstants, martealertRealTimeInterface

public class martealertRealTime
extends martealertTable
implements martealertRealTimeInterface


Field Summary
 
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.martealertRealTimeInterface
REAL_TIME_CLASSIFICATION, REAL_TIME_COMPLETION, REAL_TIME_MSGID, REAL_TIME_SEVERITY, REAL_TIME_SOURCEIP, REAL_TIME_TARGETIP, REAL_TIME_TIME
 
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
 
Constructor Summary
martealertRealTime()
          Creates a new instance of martealertRealTime
 
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
 

Constructor Detail

martealertRealTime

public martealertRealTime()
Creates a new instance of martealertRealTime

Method Detail

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.


e-REdING. Biblioteca de la Escuela Superior de Ingenieros de Sevilla.


DISEÑO DE UNA PLATAFORMA DE GESTIÓN Y MONITORIZACIÓN DE EVENTOS DE SEGURIDAD

: Galera Ruiz, Alejandro David
: Ingeniería Telecomunicación
Contenido del proyecto: