!-------------------------------------------------------------------------------
!
!      PITEST RESOURCE FILE
!
!-------------------------------------------------------------------------------

PROCESS_NAME = PITEST           ! Short name for process id
TASK = <pi_passtest -p $PATH_FILE -r pitest>
CLASS = pac
DESCRIPTION = 'PACOR-A interface'
SYSTEM = PACOR

USERNAME           = MAIN_USERNAME  ! Username for loging into PACOR
PASSWORD_KEY       = MAIN_PROMPT    ! prompt for password issued by PMG
PORT_NUMBER        = MAIN_PORT      ! 4070 for testing, 4080 for OPS
REMOTE_HOST        = REMOTE_HOST    ! remote host machine name
REMOTE_SYSTEM      = REMOTE_SYSTEM  ! Use DDF_MSE with DDF; use Pacor-A with Pacor_A
CLI_MODE_RATE      = CLI_MODE_RATE  ! minutes idle before client mode attempt
CLI_FAIL_RESET     = CLI_MODE_RESET ! minutes until CLI_FAIL mode reset

OSF_RANK = 1
OSF_TRIGGER1.DN = w             ! Waiting for a DDN to be sent

TIME_RANK = 2
DELTA_TIME = 000:00:00:30       ! time trigger to check for commands/input
 
OSF_PROCESSING.AN  = p          ! Set the processing flag to 'Processing'
OSF_DAN_COMPLETE.AN = c         ! Done when DAN received successfully

OSF_DAN_COMPLETE.AA = w         ! ""
OSF_DAN_ERROR.AN = f            ! Set when error receiving DAN
OSF_DAA_COMPLETE.AA = c         ! Set when DAA sent successfully
OSF_DAA_COMPLETE.FT = w         ! ""
OSF_DAA_FAILURE.AA = f          ! Set when software problem encountered
OSF_DAA_ERROR.AA = e            ! Set when bad DAN sent by PACOR (DDF) (disp != 0)

OSF_DDN_PROC.DN = p             ! Sending DDN
OSF_DDN_PROC.AN = c                  ! Set back from P set by polling routines
OSF_DUPLICATE.DN = c            ! Found PODDANS record matching file_id
OSF_DUPLICATE.DA = w            ! Waiting on the DDA
OSF_DUPLICATE.SW = d            ! ""
OSF_LONG_DDN.DN = c             ! LONG DDN sent; mark complete and
OSF_LONG_DDN.DA = w             ! wait for DDA but
OSF_LONG_DDN.SW = n             ! skip the swapper and
OSF_LONG_DDN.CL = w             ! trigger cleaning once DDA is received
OSF_DDN_ERROR.DN = f            ! Error sending DDN
OSF_DDN_DONE.DN = c             ! DDN sent
OSF_DDN_DONE.DA = w             ! Waiting on the DDA
OSF_DDN_DONE.SW = w             ! Go ahead and swap
OSF_CLIENT_FAIL.DN = w          ! Failed to make PACOR (DDF) client connection

OSF_GOT_DDA.DA = c              ! Received DDA
OSF_DDA_ERROR.DA = f            ! Problem encountered processing DDA

POLLING_TIME  = 10              ! Polling time
OUTPATH       = OPUS_DDF_DIR    ! Output directory for the STIS
MINBLOCKS     = 50000           ! blocks required on output disk

ENV.OPUS_DB = OPUS_DB
ENV.DSQUERY = DSQUERY
ENV.OPUS_DDF_DIR = OPUS_DDF_DIR
ENV.OPUS_RT_DIR  = OPUS_RT_DIR
