Enum Class OutOfSpaceHandling
- All Implemented Interfaces:
Serializable,Comparable<OutOfSpaceHandling>,Constable
How should ETL deal with running out of space in the dest?
Should we delete the source streams? This would mean that we would lose data.
If we do not delete the source streams, then the source itself will start filling up and then the previous source and so on.
Eventually the engine write thread will have to check space availability before each write and that would be very time consuming.
Some choices; this can be set in archappl.properties
- Fill up the source; aka, skip ETL this time around and hope the sysadmin gets to freeing space on the dest before the next round.
- Delete the source streams; in extreme situations like this; deleting data now is not much different from deleting data later.
- Delete the source streams only if the source is the first destination. This should theoretically let you fill up all the sources without having to have the engine check on each and every write.
- Author:
- mshankar
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic OutOfSpaceHandlingReturns the enum constant of this class with the specified name.static OutOfSpaceHandling[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SKIP_ETL_WHEN_OUT_OF_SPACE
-
DELETE_SRC_STREAMS_WHEN_OUT_OF_SPACE
-
DELETE_SRC_STREAMS_IF_FIRST_DEST_WHEN_OUT_OF_SPACE
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-