Enum OutOfSpaceHandling

  • All Implemented Interfaces:
    Serializable, Comparable<OutOfSpaceHandling>, Constable

    public enum OutOfSpaceHandling
    extends Enum<OutOfSpaceHandling>
    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
    1. 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.
    2. Delete the source streams; in extreme situations like this; deleting data now is not much different from deleting data later.
    3. 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.
    At an initial glance, the DELETE_SRC_STREAMS_IF_FIRST_DEST_WHEN_OUT_OF_SPACE seems to make the most sense; so that's the default.
    Author:
    mshankar
    • Enum Constant Detail

      • SKIP_ETL_WHEN_OUT_OF_SPACE

        public static final OutOfSpaceHandling SKIP_ETL_WHEN_OUT_OF_SPACE
      • DELETE_SRC_STREAMS_WHEN_OUT_OF_SPACE

        public static final OutOfSpaceHandling DELETE_SRC_STREAMS_WHEN_OUT_OF_SPACE
      • DELETE_SRC_STREAMS_IF_FIRST_DEST_WHEN_OUT_OF_SPACE

        public static final OutOfSpaceHandling DELETE_SRC_STREAMS_IF_FIRST_DEST_WHEN_OUT_OF_SPACE
    • Method Detail

      • values

        public static OutOfSpaceHandling[] values()
        Returns an array containing the constants of this enum type, in the order they are declared.
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static OutOfSpaceHandling valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
        NullPointerException - if the argument is null