|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.hd.d.pg2k.svrCore.FEC.FECConsts
public final class FECConsts
This holds compile-time constants for forward-error-correction (FEC) of exhibit data.
| Field Summary | |
|---|---|
static int |
BASIC_FEC_BLOCK_BYTES
Disc block size; postitive power of two larger than a disc sector. |
static int |
FIXABLE_UNIT_FEC_BLOCK_SIZE
FEC protection unit/block size; a positive power of two much larger than BASIC_FEC_BLOCK_BYTES. |
static java.lang.String |
FIXABLE_UNIT_FEC_CHECKSUM_ALG
The "fixable unit" block-checksum cryptographic checksum algorithm name. |
static int |
MIN_BASIC_BLOCKS_REPAIRABLE
Minimum number of "basic FEC block" failures per "fixable unit block" to be able to recover from; strictly positive. |
| Constructor Summary | |
|---|---|
private |
FECConsts()
Prevent construction of an instance. |
| Method Summary |
|---|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int BASIC_FEC_BLOCK_BYTES
Current common (2006) sector sizes are 512 bytes for magnetic media and 1024 bytes for optical media, with 4096 bytes being proposed as a new standard circa 2006.
We use the largest of these as our fundamental FEC block size.
public static final int FIXABLE_UNIT_FEC_BLOCK_SIZE
Any one exhibit will have a single fixable-unit block size, though some exhibits may transiently have a different-to-this size after a change in this value until the FEC data can be recomputed.
Its is useful be able to manipulate (multiple variants of) a whole such block in memory without straining the JVM/OS, and so a value from hundreds of kB to tens of MB is probably reasonable.
public static final java.lang.String FIXABLE_UNIT_FEC_CHECKSUM_ALG
Ideally it should also be different to any underlying filesystem checksum (such as hard-disc CRCs/ECCs and the ZFS SHA-256 block-check), so as to maximise the chance of this FEC algorithm caching something that the others miss.
public static final int MIN_BASIC_BLOCKS_REPAIRABLE
Since we are expecting the underlying filesystem to have a very low undetected/unrecoverable error rate then this can reasonably be as low as one.
We may be prepared to provide extra recovery/protection for popular and/or heavily-used and/or designated exhibits.
| Constructor Detail |
|---|
private FECConsts()
|
DHD Multimedia Gallery V1.60.69 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||