51. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 2/7/2017 12:14:07 PM Eastern Standard Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.

51.1 Files compared

# Location File Last Modified
1 cpss.zip\cpss\src\main\java\gov\va\cpss\job ProcessFPSDataJob.java Wed Feb 1 21:07:26 2017 UTC
2 cpss.zip\cpss\src\main\java\gov\va\cpss\job ProcessFPSDataJob.java Fri Feb 3 20:54:32 2017 UTC

51.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 2 200
Changed 1 2
Inserted 0 0
Removed 0 0

51.3 Comparison options

Whitespace
Character case Differences in character case are significant
Line endings Differences in line endings (CR and LF characters) are ignored
CR/LF characters Not shown in the comparison detail

51.4 Active regular expressions

No regular expressions were active.

51.5 Comparison detail

  1   package go v.va.cpss. job;
  2  
  3   import sta tic gov.va .cpss.job. fps.FpsPro cessingCon stants.INP UT_DIRECTO RY_KEY;
  4   import sta tic gov.va .cpss.job. fps.FpsPro cessingCon stants.INP UT_RESOURC E_KEY;
  5   import sta tic gov.va .cpss.job. fps.FpsPro cessingCon stants.REC EIVED_ID_K EY;
  6  
  7   import jav a.io.File;
  8  
  9   import org .springfra mework.bat ch.core.Jo bExecution ;
  10   import org .springfra mework.bat ch.core.Jo bParameter s;
  11   import org .springfra mework.bat ch.core.Jo bParameter sBuilder;
  12   import org .springfra mework.bat ch.core.jo b.flow.Flo wJob;
  13   import org .springfra mework.bea ns.factory .annotatio n.Autowire d;
  14  
  15   import gov .va.cpss.m odel.fps.P SReceived;
  16   import gov .va.cpss.s ervice.Fps Service;
  17  
  18   /**
  19    * CBSS jo b to Proce ss FPS Dat a.
  20    * 
  21    * @author   D N   
  22    */
  23   public cla ss Process FPSDataJob  extends A bstractPro cessFileLi stJob {
  24  
  25           @A utowired
  26           pr ivate Flow Job Proces sFPSDataJo bBatch;
  27           
  28           /* *
  29            *  The servi ce used to  manage jo b issues.
  30            * /
  31           @A utowired
  32           pr otected Fp sService f psService;
  33           
  34           @A utowired
  35           pr ivate Stri ng process FPSServerT argetDirec tory;
  36           
  37           @A utowired
  38           pr ivate Stri ng process FPSServerA rchiveTarg etDirector y;
  39           
  40           @A utowired
  41           pr ivate Stri ng process FPSServerE rrorTarget Directory;
  42           
  43           @O verride
  44           pr otected Fl owJob getJ ob() {
  45                    retu rn Process FPSDataJob Batch;
  46           }
  47  
  48           @O verride
  49           pr otected bo olean proc essFile(St ring file,  int batch RunId, Flo wJob job)  {
  50                    PSRe ceived pR  = initiali zeJob(batc hRunId);
  51  
  52                    JobP arameters  parameters  = getPara meters(pR) ;
  53  
  54                    JobE xecution e xecution =  executeJo b(job, par ameters);
  55  
  56                    retu rn fpsServ ice.endPro cessFpsDat aJob(execu tion, pR);
  57           }
  58  
  59           /* *
  60            *  Initializ e the job  by calling  the job s ervice to  obtain a d atabase en try
  61            *  represent ing the PS Received f or this ru n.
  62            *  
  63            *  @return P SReceived  object ini tialized b y the JobS ervice.
  64            * /
  65           pr otected PS Received i nitializeJ ob(final i nt batchRu nId) {
  66  
  67                    // U se the job  service t o start th e job.
  68                    retu rn fpsServ ice.startP rocessFpsD ataJob(bat chRunId, ( new File(f ilename)). getName()) ;
  69           }
  70  
  71           /* *
  72            *  Build par ameters fo r the batc h job base d on the P SReceived  object.
  73            *  
  74            *  @param pR
  75            *              The PSRe ceived obj ect repres enting the  database  entry.
  76            *  @return J obParamete rs object  for this b atch job r un.
  77            * /
  78           pr otected Jo bParameter s getParam eters(PSRe ceived pR)  {
  79  
  80                    // B uild job p arameters  for the in put filena me, receiv ed primary  key id,
  81                    // a nd the cre ated or mo dified by  string.
  82                    retu rn new Job Parameters Builder(). addString( INPUT_RESO URCE_KEY,  filename). addString( INPUT_DIRE CTORY_KEY,  getDataDi rectory())
  83                                      .addLong (RECEIVED_ ID_KEY, ne w Long(pR. getId())). toJobParam eters();
  84           }
  85  
  86           @O verride
  87           pu blic Strin g getDataD irectory()  {
  88                    retu rn process FPSServerT argetDirec tory;
  89           }
  90  
  91           @O verride
  92           pu blic Strin g getArchi veSubDirec tory() {
  93                    retu rn process FPSServerA rchiveTarg etDirector y;
  94           }
  95  
  96           @O verride
  97           pu blic Strin g getError SubDirecto ry() {
  98                    retu rn process FPSServerE rrorTarget Directory;
  99           }
  100  
  101   }