com.onionnetworks.fec.io
Class PacketWrittenEvent

java.lang.Object
  extended by java.util.EventObject
      extended by com.onionnetworks.fec.io.FECIOEvent
          extended by 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

Author:
Justin F. Chapweske (justin@chapweske.com)
See Also:
Serialized Form

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
equals, 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.


Copyright © 2002 Onion Networks. All Rights Reserved.