ostore.archive
Class ErasureDecodeException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--ostore.archive.ErasureException
|
+--ostore.archive.ErasureDecodeException
- All Implemented Interfaces:
- Serializable
- public class ErasureDecodeException
- extends ErasureException
The ErasureDecodeException is an ErasureException
that is thrown if an exception condition occurs during an erasure decode
process.
- Version:
- $Id: ErasureDecodeException.java,v 1.4 2003/11/17 23:52:43 emilong Exp $
- Author:
- Hakim Weatherspoon
- See Also:
Erasure,
ErasureException,
Serialized Form
|
Constructor Summary |
ErasureDecodeException(int need,
int recvd)
CONSTRUCTOR:
Initialize ErasureDecodeException class by specified
parameters. |
ErasureDecodeException(String msg)
CONSTRUCTOR:
Initialize ErasureDecodeException class by specified
parameters. |
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
ErasureDecodeException
public ErasureDecodeException(String msg)
- CONSTRUCTOR:
Initialize
ErasureDecodeException class by specified
parameters.
- Parameters:
msg - TODO
ErasureDecodeException
public ErasureDecodeException(int need,
int recvd)
- CONSTRUCTOR:
Initialize
ErasureDecodeException class by specified
parameters.
- Parameters:
need - = number of Disseminatables
required for decode.recvd - = number of Disseminatables
received thus far.
getNumNeeded
public int getNumNeeded()
getNumNeeded returns the number of
Disseminatables needed to recover msg.
- Returns:
- number of fragments needed to recover msg.
getNumReceived
public int getNumReceived()
getNumReceived returns the number of
Disseminatables received for recovery of msg.
- Returns:
- number of
Disseminatables received
for recovery of msg.