com.sun.multicast.reliable.transport
Interface RMStatistics

All Known Implementing Classes:
TRAMStats

public interface RMStatistics

An RMStatistics represents a basic transport layer statistics block. Support of this Statistics block is optional and as a result some transports may not support interface. Those that do must define at least one class that implements the RMStatistics interface. This class may have additional transport specific methods, but must support the minimal methods defined in this interface.

The RMStatistics of a transport is obtained from the RMStreamSocket or RMPacketSocket with the aid of getRMStatistics method.

Most transports will want to create a class that implements the RMStatistics interface.


Method Summary
 int getReceiverCount()
          Returns the count of receivers participating in the multicast session.
 java.net.InetAddress[] getReceiverList()
          Returns the list of receivers of the multicast session.
 int getSenderCount()
          Returns the count of senders participating in the multicast session.
 java.net.InetAddress[] getSenderList()
          Returns the list of senders of the multicast session.
 long getTotalDataReceive()
          Returns the bytecount of data received by this node.
 long getTotalDataReSent()
          Returns the bytecount of data retransmitted by this node to perform repairs.
 long getTotalDataSent()
          Returns the bytecount of data contributed to the multicast session.
 

Method Detail

getSenderCount

public int getSenderCount()
                   throws UnsupportedException
Returns the count of senders participating in the multicast session.
Returns:
int count of known senders of the multicast session.
Throws:
UnsupportedException - if RMStatistics block is not supported.

getSenderList

public java.net.InetAddress[] getSenderList()
                                     throws UnsupportedException
Returns the list of senders of the multicast session.
Returns:
InetAddress[] list of known senders of the multicast session.
Throws:
UnsupportedException - RMStatistics block if is not supported.

getReceiverCount

public int getReceiverCount()
                     throws UnsupportedException
Returns the count of receivers participating in the multicast session.
Returns:
int count of known receivers of the multicast session.
Throws:
UnsupportedException - if RMStatistics block is not supported.

getReceiverList

public java.net.InetAddress[] getReceiverList()
                                       throws UnsupportedException
Returns the list of receivers of the multicast session.
Returns:
InetAddress[] current list of known receivers of the multicast session.
Throws:
UnsupportedException - if RMStatistics block is not supported.

getTotalDataSent

public long getTotalDataSent()
                      throws UnsupportedException
Returns the bytecount of data contributed to the multicast session.
Returns:
int bytecount of data contributed to the session by this node.
Throws:
UnsupportedException - if RMStatistics block is not supported.

getTotalDataReSent

public long getTotalDataReSent()
                        throws UnsupportedException
Returns the bytecount of data retransmitted by this node to perform repairs.
Returns:
int bytecount of data retransmitted to the session by this node.
Throws:
UnsupportedException - if RMStatistics block is not supported.

getTotalDataReceive

public long getTotalDataReceive()
                         throws UnsupportedException
Returns the bytecount of data received by this node.
Returns:
int bytecount of data received by this node sofar.
Throws:
UnsupportedException - if RMStatistics block is not supported.


JavaTM Reliable MulticastTM Service version 1.1
Copyright (c) 2001, Sun Microsystems Laboratories, All rights reserved.