raccoon.tibco.tibrv.hoststatus.db
Class DbListener

java.lang.Object
  extended by raccoon.tibco.tibrv.hoststatus.db.DbListener
All Implemented Interfaces:
com.tibco.tibrv.TibrvMsgCallback

public class DbListener
extends java.lang.Object
implements com.tibco.tibrv.TibrvMsgCallback

An information listener that generates statistical information and inserts into a JDBC Database. This listener supposes that the messages passed on are DbHostStatus messages generated by a TIB/Rendezvous Daemon or a TIB/Rendezvous Routing Daemon.

Since:
Raccoon v1.0
Version:
$Id:$
Author:
Cedric ROUVRAIS

Field Summary
static java.lang.String TIBRV_STATUS_BYTES_RECEIVED
          The field in the DbHostStatus Message representing the number of bytes received
static java.lang.String TIBRV_STATUS_BYTES_SENT
          The field in the DbHostStatus Message representing the number of bytes sent
static java.lang.String TIBRV_STATUS_HTTP_ADDR
          The field in the DbHostStatus Message representing the HTTP Addresse of the administration GUI
static java.lang.String TIBRV_STATUS_HTTP_PORT
          The field in the DbHostStatus Message representing the HTTP Port of the administration GUI
static java.lang.String TIBRV_STATUS_MESSAGES_RECEIVED
          The field in the DbHostStatus Message representing the number of messages received
static java.lang.String TIBRV_STATUS_MESSAGES_SENT
          The field in the DbHostStatus Message representing the number of messages sent
static java.lang.String TIBRV_STATUS_PACKETS_MISSED
          The field in the DbHostStatus Message representing the number of packets missed
static java.lang.String TIBRV_STATUS_PACKETS_RECEIVED
          The field in the DbHostStatus Message representing the number of packets received
static java.lang.String TIBRV_STATUS_PACKETS_RESENT
          The field in the DbHostStatus Message representing the number of packets resent
static java.lang.String TIBRV_STATUS_PACKETS_SENT
          The field in the DbHostStatus Message representing the number of packets sent
static java.lang.String TIBRV_STATUS_VERSION
          The field in the DbHostStatus Message representing the version of TIB/Rendezvous used
 
Constructor Summary
DbListener(java.lang.String pService, java.lang.String pConfigKPI, DbWriter pStatWriter, ILogger pLogger)
          Instanciates the new listener that is attached to a database
 
Method Summary
 void onMsg(com.tibco.tibrv.TibrvListener pTibrvListener, com.tibco.tibrv.TibrvMsg pTibrvMsg)
          Invoked each time a new message arrives.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TIBRV_STATUS_VERSION

public static final java.lang.String TIBRV_STATUS_VERSION
The field in the DbHostStatus Message representing the version of TIB/Rendezvous used

See Also:
Constant Field Values

TIBRV_STATUS_HTTP_ADDR

public static final java.lang.String TIBRV_STATUS_HTTP_ADDR
The field in the DbHostStatus Message representing the HTTP Addresse of the administration GUI

See Also:
Constant Field Values

TIBRV_STATUS_HTTP_PORT

public static final java.lang.String TIBRV_STATUS_HTTP_PORT
The field in the DbHostStatus Message representing the HTTP Port of the administration GUI

See Also:
Constant Field Values

TIBRV_STATUS_PACKETS_MISSED

public static final java.lang.String TIBRV_STATUS_PACKETS_MISSED
The field in the DbHostStatus Message representing the number of packets missed

See Also:
Constant Field Values

TIBRV_STATUS_PACKETS_RESENT

public static final java.lang.String TIBRV_STATUS_PACKETS_RESENT
The field in the DbHostStatus Message representing the number of packets resent

See Also:
Constant Field Values

TIBRV_STATUS_PACKETS_SENT

public static final java.lang.String TIBRV_STATUS_PACKETS_SENT
The field in the DbHostStatus Message representing the number of packets sent

See Also:
Constant Field Values

TIBRV_STATUS_PACKETS_RECEIVED

public static final java.lang.String TIBRV_STATUS_PACKETS_RECEIVED
The field in the DbHostStatus Message representing the number of packets received

See Also:
Constant Field Values

TIBRV_STATUS_BYTES_RECEIVED

public static final java.lang.String TIBRV_STATUS_BYTES_RECEIVED
The field in the DbHostStatus Message representing the number of bytes received

See Also:
Constant Field Values

TIBRV_STATUS_BYTES_SENT

public static final java.lang.String TIBRV_STATUS_BYTES_SENT
The field in the DbHostStatus Message representing the number of bytes sent

See Also:
Constant Field Values

TIBRV_STATUS_MESSAGES_RECEIVED

public static final java.lang.String TIBRV_STATUS_MESSAGES_RECEIVED
The field in the DbHostStatus Message representing the number of messages received

See Also:
Constant Field Values

TIBRV_STATUS_MESSAGES_SENT

public static final java.lang.String TIBRV_STATUS_MESSAGES_SENT
The field in the DbHostStatus Message representing the number of messages sent

See Also:
Constant Field Values
Constructor Detail

DbListener

public DbListener(java.lang.String pService,
                  java.lang.String pConfigKPI,
                  DbWriter pStatWriter,
                  ILogger pLogger)
Instanciates the new listener that is attached to a database

Parameters:
pService - the Rendezvous service on which the daemon is connected to.
pConfigKPI - the name of the configuration used.
pStatWriter - the database writer.
Method Detail

onMsg

public void onMsg(com.tibco.tibrv.TibrvListener pTibrvListener,
                  com.tibco.tibrv.TibrvMsg pTibrvMsg)
Invoked each time a new message arrives.

Specified by:
onMsg in interface com.tibco.tibrv.TibrvMsgCallback
Parameters:
pTibrvListener - the listener from which the message arrived.
pTibrvMsg - the TIB/Rendezvous message.


Copyright null null. All Rights Reserved.