367. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 12/13/2018 10:35:30 AM 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.

367.1 Files compared

# Location File Last Modified
1 v12.5_iter_7_build 51.zip\TRM_Upgrade\src\main\java\gov\va\med\fw\scheduling AbstractScheduledProcess.java Fri Dec 7 17:36:18 2018 UTC
2 v12.5_iter_7_build 51.zip\TRM_Upgrade\src\main\java\gov\va\med\fw\scheduling AbstractScheduledProcess.java Wed Dec 12 22:26:42 2018 UTC

367.2 Comparison summary

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

367.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

367.4 Active regular expressions

No regular expressions were active.

367.5 Comparison detail

  1   /********* ********** ********** ********** ********** ********** *********
  2    * Copyrii ght 2005 V HA. All ri ghts reser ved
  3    ********* ********** ********** ********** ********** ********** *********/
  4  
  5   package go v.va.med.f w.scheduli ng;
  6  
  7   import gov .va.med.fw .service.A bstractCom ponent;
  8   import gov .va.med.fw .util.Inva lidConfigu rationExce ption;
  9  
  10   /**
  11    * Base cl ass for a  scheduled  process th at typical ly runs on  a separat e worker
  12    * thread.
  13    * 
  14    * <p>
  15    * Process es that ca n have mor e than one  instance  running at  the same  time
  16    * should  be configu red as Spr ing protot ype beans  (not singl eton). Thi s is
  17    * necessa ry for pro per handli ng of proc ess interr uption.
  18    * 
  19    * Created  Feb 1, 20 06 12:07:5 4 PM
  20    * 
  21    * DNS
  22    */
  23   public abs tract clas s Abstract ScheduledP rocess ext ends Abstr actCompone nt impleme nts
  24                    Sche duledProce ss {
  25           pr ivate Stri ng auditId ;
  26  
  27           bo olean inte rrupted =  false;
  28  
  29           pu blic final  void invo ke() throw s Exceptio n {
  30                    invo ke(null);
  31           }
  32  
  33           /* *
  34            *  (non-Java doc)
  35            *  
  36            *  @see gov. va.med.fw. scheduling .Scheduled Process#in voke(java. lang.Objec t)
  37            * /
  38           pu blic final  void invo ke(Schedul edProcessI nvocationC ontext con text) thro ws Excepti on {
  39                    try  {
  40                             if (is Interrupte d()) {
  41                                      if (logg er.isWarnE nabled())
  42                                               logger
  43                                                                .war n("This Sc heduledPro cess ["
  44                                                                                  + getAud itInfo()
  45                                                                                  + "] is  still in a n interrup ted state. ..."
  46                                                                                  + "Pleas e wait unt il it dete cts this a nd aborts  before try ing to exe cute again .");
  47                             } else  {
  48                                      executeP rocess(con text);
  49                             }
  50                    } fi nally {
  51                             setInt errupted(f alse);
  52                    }
  53           }
  54  
  55           pu blic void  interrupt( ) {
  56                    if ( logger.isW arnEnabled ())
  57                             logger .warn("Thi s Schedule dProcess [ " + getAud itInfo()
  58                                               + "] recei ved an int erruption  request");
  59                    setI nterrupted (true);
  60           }
  61  
  62           pu blic Strin g getAudit Info(Sched uledProces sInvocatio nContext c ontext) {
  63                    // d efault imp lementatio n
  64                    retu rn getAudi tInfo();
  65           }
  66  
  67           pu blic Strin g getAudit Info() {
  68                    Stri ng auditIn fo = audit Id != null  ? SCHEDUL ED_PROCESS _AUDIT_PRE FIX + audi tId
  69                                      : SCHEDU LED_PROCES S_AUDIT_PR EFIX + "Un specified" ;
  70                    retu rn auditIn fo;
  71           }
  72  
  73           pr otected ab stract voi d executeP rocess(Sch eduledProc essInvocat ionContext  context)
  74                             throws  Exception ;
  75  
  76           /* *
  77            *  @return R eturns the  auditId.
  78            * /
  79           pu blic Strin g getAudit Id() {
  80                    retu rn auditId ;
  81           }
  82  
  83           /* *
  84            *  @param au ditId
  85            *              The audi tId to set .
  86            * /
  87           pu blic void  setAuditId (String au ditId) {
  88                    this .auditId =  auditId;
  89           }
  90  
  91           /* *
  92            *  @return R eturns the  interrupt ed.
  93            * /
  94           pr otected bo olean isIn terrupted( ) {
  95                    retu rn interru pted;
  96           }
  97  
  98           /* *
  99            *  @param in terrupted
  100            *              The inte rrupted to  set.
  101            * /
  102           pr otected vo id setInte rrupted(bo olean inte rrupted) {
  103                    this .interrupt ed = inter rupted;
  104           }
  105  
  106           pu blic void  afterPrope rtiesSet()  {
  107                    // t his is sil ly to prop agate thro ws Excepti on everywh ere in thi s method
  108                    try  {
  109                             super. afterPrope rtiesSet() ;
  110                    } ca tch (Excep tion e) {
  111                             Runtim eException  e1 = new  InvalidCon figuration Exception(
  112                                               "Invalid c onfigurati on for ins tance of A bstractSch eduledProc ess");
  113                             e1.ini tCause(e);
  114                             throw  e1;
  115                    }
  116           }
  117   }