raccoon.tibco.tibrv.hoststatus.file
Class FileListener

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

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

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

Since:
TIBCO Rendezvous Training v0.1
Version:
0.1
Author:
Cedric ROUVRAIS

Field Summary
static java.lang.String TIBRV_STATUS_BYTES_RECEIVED
          The field in the HostStatus Message representing the number of bytes received
static java.lang.String TIBRV_STATUS_BYTES_SENT
          The field in the HostStatus Message representing the number of bytes sent
static java.lang.String TIBRV_STATUS_HTTP_ADDR
          The field in the HostStatus Message representing the HTTP Addresse of the administration GUI
static java.lang.String TIBRV_STATUS_HTTP_PORT
          The field in the HostStatus Message representing the HTTP Port of the administration GUI
static java.lang.String TIBRV_STATUS_MESSAGES_RECEIVED
          The field in the HostStatus Message representing the number of messages received
static java.lang.String TIBRV_STATUS_MESSAGES_SENT
          The field in the HostStatus Message representing the number of messages sent
static java.lang.String TIBRV_STATUS_PACKETS_MISSED
          The field in the HostStatus Message representing the number of packets missed
static java.lang.String TIBRV_STATUS_PACKETS_RECEIVED
          The field in the HostStatus Message representing the number of packets received
static java.lang.String TIBRV_STATUS_PACKETS_RESENT
          The field in the HostStatus Message representing the number of packets resent
static java.lang.String TIBRV_STATUS_PACKETS_SENT
          The field in the HostStatus Message representing the number of packets sent
static java.lang.String TIBRV_STATUS_VERSION
          The field in the HostStatus Message representing the version of TIB/Rendezvous used
 
Constructor Summary
FileListener(java.lang.String pService)
          Instanciates the listener and assigns the service from which it will receive the messages.
 
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 HostStatus 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 HostStatus 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 HostStatus 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 HostStatus 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 HostStatus 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 HostStatus 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 HostStatus 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 HostStatus 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 HostStatus 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 HostStatus 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 HostStatus Message representing the number of messages sent

See Also:
Constant Field Values
Constructor Detail

FileListener

public FileListener(java.lang.String pService)
             throws java.lang.Exception
Instanciates the listener and assigns the service from which it will receive the messages.

Parameters:
pService - the service to which this listener is attached.
Throws:
java.lang.Exception - if Host information header couldn't be created.
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.