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
- Author:
- Justin F. Chapweske (justin@chapweske.com)
- See Also:
- Serialized Form
Constructor Summary |
PacketWrittenEvent(java.lang.Object source,
int blockNum,
int stripeNum,
int blockPacketCount)
|
Methods inherited from class java.util.EventObject |
getSource, toString |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
PacketWrittenEvent
public PacketWrittenEvent(java.lang.Object source,
int blockNum,
int stripeNum,
int blockPacketCount)
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.