com.martealert
Class martealertAgents

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

public class martealertAgents
extends martealertTable
implements martealertAgentsInterface


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.martealertAgentsInterface
AGENTS_ADDRESS, AGENTS_ANALYZERID, AGENTS_HEARTBEAT_INTERVAL, AGENTS_LAST_HEARTBEAT_TIME, AGENTS_NAME, AGENTS_OS, AGENTS_STATUS, AGENTS_TYPE, AGENTS_VERSION, OFFLINE, ONLINE, ONLINE_INTERVAL, PRELUDE_HTABLES
 
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
 
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
 
Constructor Summary
martealertAgents()
          Creates a new instance of martealertAgents
 
Method Summary
 void deleteProbe(java.sql.Connection con, int[] row, javax.swing.JTextArea jtext, javax.swing.JProgressBar jprogbar)
          Delete an agent (probe) from table obtained with this.setAgents.
 void setAgents(java.sql.Connection con)
          Set to this object only probes which lastest heartbeat was received earlier than time specified in constant ONLINE_INTERVAL.
 void setOfflineProbes(java.sql.Connection con)
          Set to this martealertAgents table all probes which lastest heartbeat was received more than ONLINE_INTERVAL ago.
 
Methods inherited from class com.martealert.martealertTable
clear, getColumn, getColumnNames, getColumnSize, getData, getFTSColumn, getIgnoredColumnsPdf, getIpColumns, getLTSColumn, getMultilineColumns, getPercentColumns, getPortColumns, getProtocolColumns, getRow, getRowSize, getSeverityColumn, 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

martealertAgents

public martealertAgents()
Creates a new instance of martealertAgents

Method Detail

setOfflineProbes

public void setOfflineProbes(java.sql.Connection con)
                      throws java.sql.SQLException
Set to this martealertAgents table all probes which lastest heartbeat was received more than ONLINE_INTERVAL ago. ONLINE_INTERVAL is defined in martealertAgentsInterface.

Parameters:
con - Connection to access the database.
Throws:
java.sql.SQLException

setAgents

public void setAgents(java.sql.Connection con)
               throws java.sql.SQLException
Set to this object only probes which lastest heartbeat was received earlier than time specified in constant ONLINE_INTERVAL.

Parameters:
con - Connection to access the database.
Throws:
java.sql.SQLException

deleteProbe

public void deleteProbe(java.sql.Connection con,
                        int[] row,
                        javax.swing.JTextArea jtext,
                        javax.swing.JProgressBar jprogbar)
                 throws java.sql.SQLException
Delete an agent (probe) from table obtained with this.setAgents. It's delete all rows with heartbeat index 'H' for all analyzer identifiers obtained from rows passed in param int[]row.

Parameters:
con - Connection to access the database.
row - int[] with rows which probes are going deleted.
Throws:
java.sql.SQLException - Sql syntax error.


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: