com.onionnetworks.fec.io
Class PacketWrittenEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--com.onionnetworks.fec.io.FECIOEvent
              |
              +--com.onionnetworks.fec.io.PacketWrittenEvent
All Implemented Interfaces:
java.io.Serializable

public class PacketWrittenEvent
extends FECIOEvent

This event signifies that a new packet was recieved and written to disk. (c) Copyright 2001 Onion Networks (c) Copyright 2000 OpenCola

See Also:
Serialized Form

Fields inherited from class java.util.EventObject
source
 
Constructor Summary
PacketWrittenEvent(java.lang.Object source, int blockNum, int stripeNum, int blockPacketCount)
           
 
Method Summary
 int getBlockNum()
           
 int getBlockPacketCount()
           
 int getStripeNum()
           
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PacketWrittenEvent

public PacketWrittenEvent(java.lang.Object source,
                          int blockNum,
                          int stripeNum,
                          int blockPacketCount)
Method Detail

getBlockNum

public int getBlockNum()
Returns:
the blockNum of the packet just written.

getStripeNum

public int getStripeNum()
Returns:
the stripeNum of the packet just written.

getBlockPacketCount

public int getBlockPacketCount()
Returns:
the blockPacketCount for this write. This value is used to tell how many packets have been written to disk at this time. Remember that more packets can be written to disk than need be for repair.