216. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 12/5/2017 12:06:42 PM Central 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.

216.1 Files compared

# Location File Last Modified
1 IV-eHMP_CIF.zip\IMAG_Source\VISA\Java\ImageGearDataSourceProvider\main\src\java\gov\va\med\imaging\imagegear\datasource ImageGearWorkerThread.java Mon Dec 4 21:35:06 2017 UTC
2 IV-eHMP_CIF.zip\IMAG_Source\VISA\Java\ImageGearDataSourceProvider\main\src\java\gov\va\med\imaging\imagegear\datasource ImageGearWorkerThread.java Mon Dec 4 22:01:13 2017 UTC

216.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 3 190
Changed 2 4
Inserted 0 0
Removed 0 0

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

216.4 Active regular expressions

No regular expressions were active.

216.5 Comparison detail

  1   /**
  2    * 
  3     Package:  MAG - Vis tA Imaging
  4     WARNING:  Per VHA D irective 2 004-038, t his routin e should n ot be modi fied.
  5     Date Cre ated: Apr  30, 2012
  6     Site Nam e:  Washin gton OI Fi eld Office , Silver S pring, MD
  7       Developer:          
WERFEJ
  8     Descript ion: 
  9  
  10           ;;  +-------- ---------- ---------- ---------- ---------- ---------- ---------- +
  11           ;;  Property  of the US  Government .
  12           ;;  No permis sion to co py or redi stribute t his softwa re is give n.
  13           ;;  Use of un released v ersions of  this soft ware requi res the us er
  14           ;;   to execu te a writt en test ag reement wi th the Vis tA Imaging
  15           ;;   Developm ent Office  of the De partment o f Veterans  Affairs,
  16           ;;   telephon e (301) 73 4-0100.
  17           ;;
  18           ;;  The Food  and Drug A dministrat ion classi fies this  software a s
  19           ;;  a Class I I medical  device.  A s such, it  may not b e changed
  20           ;;  in any wa y.  Modifi cations to  this soft ware may r esult in a n
  21           ;;  adulterat ed medical  device un der 21CFR8 20, the us e of which
  22           ;;  is consid ered to be  a violati on of US F ederal Sta tutes.
  23           ;;  +-------- ---------- ---------- ---------- ---------- ---------- ---------- +
  24  
  25    */
  26   package go v.va.med.i maging.ima gegear.dat asource;
  27  
  28   import jav a.util.con current.Co untDownLat ch;
  29  
  30   import org .apache.lo gging.log4 j.LogManag er;
  31   import org .apache.lo gging.log4 j.Logger;
  32  
  33   /**
  34    * Thread  to do work  executing  a process .  This th read will  wait for t he complet ion of the  process.
  35    * 
  36    * @author         
WERFEJ
  37    *
  38    */
  39   public cla ss ImageGe arWorkerTh read
  40   extends Th read
  41   {
  42           pr ivate fina l Process  process;
  43           pr ivate fina l CountDow nLatch cou ntdownLatc h;
  44           pr ivate fina l String d escription ;
  45           pr ivate int  exitCode;
  46           
  47           pr ivate fina l static L ogger logg er = LogMa nager.getL ogger(Imag eGearWorke rThread.cl ass);
  48           
  49           pr ivate stat ic long th readId = 0 ;
  50           
  51           pr ivate sync hronized s tatic long  getThread Id()
  52           {
  53                    if(t hreadId >=  Long.MAX_ VALUE)
  54                    {
  55                             thread Id = 0;
  56                             return  threadId;
  57                    }
  58                    else
  59                             
  60                    retu rn ++threa dId;
  61           }
  62           
  63           pu blic Image GearWorker Thread(Pro cess proce ss, CountD ownLatch c ountdownLa tch, Strin g descript ion)
  64           {
  65                    supe r("ImageGe arWorker-"  + getThre adId());
  66                    this .process =  process;
  67                    this .exitCode  = -1;
  68                    this .countdown Latch = co untdownLat ch;
  69                    this .descripti on = descr iption;
  70           }
  71  
  72           pu blic int g etExitCode ()
  73           {
  74                    retu rn exitCod e;
  75           }
  76  
  77           pu blic void  setExitCod e(int exit Code)
  78           {
  79                    this .exitCode  = exitCode ;
  80           }
  81  
  82           @O verride
  83           pu blic void  run()
  84           {
  85                    try
  86                    {
  87                             logger .debug("Ex ecuting pr ocess '" +  descripti on + "'.") ;
  88                             exitCo de = proce ss.waitFor ();
  89                             logger .debug("Pr ocess comp leted with  exit code  '" + exit Code + "'. ");
  90                             countd ownLatch.c ountDown() ;
  91                    } 
  92                    catc h (Interru ptedExcept ion e)
  93                    {
  94                             logger .warn("Int erruptedEx ception in  thread ["  + this.ge tName() +  "], " + e. getMessage ());
  95                    }
  96           }
  97   }