!--------------------------------------------------------------------
!
!  instalj RESOURCE FILE
!
!      Jython-version of the resource file for calling the DADS/NSA instal
!      code.
!
!--------------------------------------------------------------------
!                          REVISION HISTORY
!--------------------------------------------------------------------
!            PR
!   DATE   NUMBER  User      Description
! -------- ------  --------- -------------------------------------
! 10/09/03 49550   Goldst    Created initial version
! 12/19/03 49554   Heller
! 06/24/04 51412   Sherbert  For PR 50437 Remove DISPLAY_ORDER
! 07/05/07 57074   Heller    Move opustonsa.jar to dads tree
! 08/06/07 49671   MSwam     Add DADS_CLASSPATH
! 08/30/10 59963   Sherbert  rm fuse
! 08/30/10 65745   Sherbert  ACS life data_id adjustment; add new sti/cos cums
! 09/18/12 72255   Sherbert  get rid of DSQUERY
! 09/27/12 72255   Sherbert  add DB_TYPE
! 04/29/13 74104   MSwam     Try jython version
!--------------------------------------------------------------------

PROCESS_NAME = instalj
TASK         = <xpoll -p $PATH_FILE -r instalj>
COMMAND      = in_IngestInstall_OPUS.jy

DESCRIPTION  = 'Ingest data files into NSA'
SYSTEM       = INGEST
CLASS        = all

OSF_RANK = 1              

OSF_TRIGGER1.RQ      = w  !Trigger to add dataset to NSA
OSF_TRIGGER1.DATA_ID = HST
OSF_PROCESSING.RQ    = p  !Processing

XPOLL_STATE.00  = OSF_SUCCESS    ! Normal: Completed instal request
OSF_SUCCESS.RQ     = c           !
OSF_SUCCESS.RS     = z           ! sleep for instal response

XPOLL_STATE.01  = OSF_FAILURE    ! Failed: did not complete instal request
OSF_FAILURE.RQ     = f           !
OSF_FAILURE.UP     = a           ! set Alarm status

XPOLL_ERROR.RQ    = x            ! Set osf to this if exit state is undefined.

POLLING_TIME         = 1 !Wait (seconds) before polling for next   

! Setup for OpusInstallProxy

MAX_NSA_EXCEPTIONS = 100
MAX_DB_EXCEPTIONS = 100
NSA_CLIENT_ID = OpusInstallAllPipes
NSA_PATH_ROOT = NSA_PATH_ROOT
SERVER_URL =  SERVER_URL
PROXY_LOG_FILE = PROXY_LOG_FILE
LINK_FILE_DIR = LINK_FILE_DIR

! Messages are also sent to an observation log file in this location
DATASET_LOG_DIR   = DATASET_LOG_DIR 
MISSION           = MISSION

! forces values from path to be used
ENV.DB_TYPE     = DB_TYPE       ! database type to use.
ENV.ARCH_DB     = ARCH_DB 
ENV.ARCH_SERVER = ARCH_SERVER

ENV.OK_TO_UPDATE_DATABASE = OK_TO_UPDATE_DATABASE

! add password
PASSWORD = REQUIRED
PASSWORD_PROMPT = nsa_password

! Priority can be set to INSTALL_LOW_PRI, INSTALL_MID_PRI and INSTALL_HIGH_PRI
! for each instrument

PRIORITY_TYPE = CLASS 
PRIORITY.MSC  = INSTALL_MID_PRI 
PRIORITY.MTL  = INSTALL_MID_PRI 
PRIORITY.SMS  = INSTALL_MID_PRI
PRIORITY.AST  = INSTALL_MID_PRI 
PRIORITY.ORB  = INSTALL_MID_PRI 
PRIORITY.ANC  = INSTALL_MID_PRI 
PRIORITY.DMP  = INSTALL_MID_PRI 
PRIORITY.PDQ  = INSTALL_MID_PRI 
PRIORITY.PRB  = INSTALL_MID_PRI 
PRIORITY.DIA  = INSTALL_MID_PRI 
PRIORITY.POD  = INSTALL_MID_PRI 
PRIORITY.SSI  = INSTALL_MID_PRI 
PRIORITY.ACM  = INSTALL_MID_PRI
PRIORITY.TVI  = INSTALL_MID_PRI 
PRIORITY.TVL  = INSTALL_MID_PRI 
PRIORITY.EPC  = INSTALL_MID_PRI 
PRIORITY.CDB  = INSTALL_MID_PRI 
PRIORITY.CTB  = INSTALL_MID_PRI 
PRIORITY.DLG  = INSTALL_MID_PRI 
PRIORITY.SGT  = INSTALL_MID_PRI 
PRIORITY.EDT  = INSTALL_MID_PRI 
PRIORITY.ASN  = INSTALL_MID_PRI 
PRIORITY.CAL  = INSTALL_MID_PRI 
PRIORITY.OMS  = INSTALL_MID_PRI
PRIORITY.CSI  = INSTALL_MID_PRI 
