!--------------------------------------------------------------------
!
!  astrsp 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  10/24/01 44684   Goldst    Created initial version
!  001  01/30/02 45016   Goldst    Corrected OK_TO_UPDATE_DATABASE
!  002  11/13/03 49564   Rose      Install catalog population in the pipeline
!  003  03/17/04 50429   Goldst    Updated to support Unix Ingest
!  004  04/14/04 50429   Goldst    Corrected .RG to .RS
!  005  05/04/04 50429   Goldst    Corrected OSF_INGEST_ERR settings
!  006  07/20/04 35725   jschultz  change value of OSF_ERROR.RS mnemomic 
!                                  from 'e' to 'f'  
!       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 = astrsp
TASK         = <java -classpath ${OPUS_CLASSPATH}\:${DADS_CLASSPATH} INGRESPONSE/IngestResponse -p $PATH_FILE -r astrsp>
DESCRIPTION  = 'Astrometry archive response processing'
SYSTEM       = AST
CLASS        = ast
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.SC       = w     ! Trigger science catalog extraction

OSF_INGEST_ERR.RS    = e     ! Error archiving, ingest response complete

LOG_DIR = AST_LOG_DIR        ! Directory for astrometry dataset 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.ast    = Y
VIRTUAL_FILES.ast  = N
DATASET_DIR.ast    = NONE
DATASET_FILTER.ast = 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
