!--------------------------------------------------------------------
!
!  cdbrsp RESOURCE FILE
!
!      This file is used to construct the trigger, error, and success 
!      status fields in the observation status file.
!
!--------------------------------------------------------------------
!                          REVISION HISTORY
!--------------------------------------------------------------------
!  MOD             PR
! LEVEL   DATE   NUMBER  User      Description
! ----- -------- ------  ------    -------------------------------------
!  000  12/09/03 50429   Goldst    Initial Version to support Unix Ingest
!  001  04/09/04 50429   Goldst    Corrected CDBS_LOG_DIR
!  002  04/12/04 48141   MSwam     Remove unneeded CDBS_SERVER,CDBS_DB
!  003  04/14/04 50429   Goldst    Corrected .RG to .RS
!  004  07/20/04 35725   jschultz  change value of OSF_ERROR.RS mnemomic 
!                                  from 'e' to 'f' and change value of 
!                                  OSF_INGEST_ERR.RS from 'f' to 'e'
!       08/12/10 64432   MSwam     use path-defined DB_TYPE (SYBASE or MSSQL)
!       08/16/10 64432   MSwam     add DADS_CLASSPATH to pick up MSSQL jars
!-----------------------------------------------------------------------

!---------------------
! General process Info
!---------------------
PROCESS_NAME = cdbrsp
TASK         = <java -classpath ${OPUS_CLASSPATH}\:${DADS_CLASSPATH} INGRESPONSE/IngestResponse -p $PATH_FILE -r cdbrsp>
DESCRIPTION  = 'CDBS archive response processing'
SYSTEM       = CDBS
CLASS        = cdb
MISSION      = HST
INTERNAL_POLLING_PROCESS  =  TRUE
POLLING_TIME = 10            ! Response time of the application.
OSF_RANK = 1                 ! First Trigger

!--------------------------
! OSF triggers and settings
!--------------------------
OSF_TRIGGER1.RS      = w     ! Trigger for succesful archiving
OSF_TRIGGER1.RQ      = c     ! Trigger for succesful archiving
OSF_TRIGGER2.RS      = b     ! Trigger for error in archiving
OSF_PROCESSING.RS    = p     ! Ingest reponse processing
OSF_ERROR.RS         = f     ! Ingest response error
OSF_SUCCESS.RS       = c     ! Ingest response successful completion
OSF_SUCCESS.CL       = w     ! Trigger next stage
OSF_INGEST_ERR.RS    = e     ! Error archiving, ingest response complete

LOG_DIR = cdbs_archive_log_dir  ! Directory for archiving log files

!------------------------
! Message reporting level
!------------------------
MSG_RPT_LVL = JMSG_REPORT_LEVEL    ! Message report level use. Set
                                   ! MSG_RPT_LVL equal to JMSG_REPORT_LEVEL
				   ! to cause the report level to be set
				   ! to the value in the pipeline path file.
				   ! Otherwise set MSG_RPT_LVL = to one of the 
				   ! following: ALL, NONE, DIAG, INFO, WARN,
				   ! ERROR, and FATAL
!--------------
! Database info
!--------------
DB_TYPE              = DB_TYPE     ! Database type in use.
OPUS_DB_SERVER       = OPUS_SERVER ! OPUS database server to use. Set 
                                   ! OPUS_DB_SERVER  equal to OPUS_SERVER. This
				   ! will cause the server to be set to the 
				   ! that OPUS_DB_SERVER is set to in the path
				   ! file.
ARCH_DB_SERVER       = ARCH_SERVER ! ARCH database server to use. Set 
                                   ! ARCH_DB_SERVER  equal to ARCH_SERVER. This
				   ! will cause the sever to be set to the
				   ! value that ARCH_DB_SERVER is set to in the path
				   ! file.
OPUS_DB_NAME         = OPUS_DB     ! OPUS database to use.Set OPUS_DB_NAME  
                                   ! equal to OPUS_DB. This will cause
				   ! the database to be set to the value
				   ! that OPUS_DB is set to in the path file.
ARCH_DB_NAME         = ARCH_DB     ! ARCH database to use. Set ARCH_DB_NAME
                                   ! equal to ARCH_DB. This will cause
				   ! the database to be set to the value
				   ! that ARCH_DB is set to in the path file.
!----------------------
! Archive response info
!----------------------
UPDATE_OPUS.cdb    = Y
VIRTUAL_FILES.cdb  = N
DATASET_DIR.cdb    = NONE
DATASET_FILTER.cdb = NONE

UPDATE_OPUS.ctb    = Y
VIRTUAL_FILES.ctb  = N
DATASET_DIR.ctb    = NONE
DATASET_FILTER.ctb = NONE
!-----------------------------------
! Forces values from path to be used
!-----------------------------------
ENV.OPUS_DB = OPUS_DB
ENV.ARCH_DB = ARCH_DB
ENV.OPUS_SERVER = OPUS_SERVER
ENV.ARCH_SERVER = ARCH_SERVER
ENV.OK_TO_UPDATE_DATABASE = OK_TO_UPDATE_DATABASE
