!--------------------------------------------------------------------
!
!      CDBDEL RESOURCE FILE
!
!
!	This file is used to define various values for the
!	command CDBDEL.
!
!--------------------------------------------------------------------
!                          REVISION HISTORY
!--------------------------------------------------------------------
!  MOD             PR
! LEVEL   DATE   NUMBER    User  Description
! ----- -------- ------    ------ -------------------------------------
!  000  10/08/98 36608     MSwam   first version
!  001  11/13/98 36860_02  MSwam   fix CLASS entry
!  002  06/25/99 38324     WMiller Set ENV vars
!  003  12/07/99 37784     MSwam   Add MIN_DELETION_AGE,WAIT_SOME_MORE
!  004  01/14/02 44949     Slowinski  change min deletion age to 14
!       05/27/03 48141     MSwam   Change data_id for trigger to ref,add nodel
!       02/18/05 51570     Sontag  Handle unexpected error statuses
!--------------------------------------------------------------------
!
COMMAND                 = cdbdel.sh
TASK                    = <xpoll -p $PATH_FILE -r cdbdel> 
!
CLASS = cdb
DESCRIPTION = 'delete obsolete reference files' 
SYSTEM = CDBS
!
OSF_RANK           = 1
OSF_TRIGGER1.DE    = w          ! Need a 'Wait' flag to proceed
OSF_TRIGGER1.DATA_ID = ref

OSF_PROCESSING.DE  = p          ! Set the processing flag to 'Processing'

OSF_NORMAL.DE      = c          ! Normal: Completed this process
OSF_NORMAL.CL      = w          ! Normal: Waiting for next process

OSF_ERROR.DE       = e          ! Error:  Set the error flag

WAIT_SOME_MORE.DE  = z          ! Catalog is not old enough yet

NO_DELETIONS_NEEDED.DE = n      ! Catalog does not contain any deletions
NO_DELETIONS_NEEDED.CL = w

POLLING_TIME       = 60         !required
XPOLL_ERROR_COUNT  = 1          !this many XPOLL errors will cause the
                                !process to go ABSENT
!
! Valid exit codes for COMMAND that allow XPOLL to continue.
! (The labels are not used for TIME events)
XPOLL_STATE.00 = OSF_NORMAL
XPOLL_STATE.01 = OSF_ERROR
XPOLL_STATE.02 = WAIT_SOME_MORE
XPOLL_STATE.03 = NO_DELETIONS_NEEDED
XPOLL_ERROR.DE = x              ! handle entirely unexpected failure cases

ENV.CATALOG_FILE_EXT        = .cat   !file extension for catalogs
ENV.CDB_DELETION_DIR        = cdbs_input_dir
ENV.MIN_DELETION_AGE    = 14 !catalog must be at least this many days old
