127. EPMO Open Source Coordination Office Redaction File Detail Report

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

127.1 Files compared

# Location File Last Modified
1 IV-eHMP_CIF.zip\IMAG_Source\VISA\Java\CoreValueObjects\main\src\java\gov\va\med\imaging\exchange TimedCacheFactory.java Mon Dec 4 21:34:36 2017 UTC
2 IV-eHMP_CIF.zip\IMAG_Source\VISA\Java\CoreValueObjects\main\src\java\gov\va\med\imaging\exchange TimedCacheFactory.java Mon Dec 4 21:58:45 2017 UTC

127.2 Comparison summary

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

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

127.4 Active regular expressions

No regular expressions were active.

127.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: Nove mber, 2009
  6     Site Nam e:  Washin gton OI Fi eld Office , Silver S pring, MD
  7     Develope r:  vhaisw louthj
  8     Descript ion: 
  9           Ba se timed c ache. Hold s cached i tems and i mplements  the TimerT ask.run()  event to p urge cache  items aft er a desir ed amount  of time.
  10  
  11           ;;  +-------- ---------- ---------- ---------- ---------- ---------- ---------- +
  12           ;;  Property  of the US  Government .
  13           ;;  No permis sion to co py or redi stribute t his softwa re is give n.
  14           ;;  Use of un released v ersions of  this soft ware requi res the us er
  15           ;;   to execu te a writt en test ag reement wi th the Vis tA Imaging
  16           ;;   Developm ent Office  of the De partment o f Veterans  Affairs,
  17           ;;   telephon e (301) 73 4-0100.
  18           ;;
  19           ;;  The Food  and Drug A dministrat ion classi fies this  software a s
  20           ;;  a Class I I medical  device.  A s such, it  may not b e changed
  21           ;;  in any wa y.  Modifi cations to  this soft ware may r esult in a n
  22           ;;  adulterat ed medical  device un der 21CFR8 20, the us e of which
  23           ;;  is consid ered to be  a violati on of US F ederal Sta tutes.
  24           ;;  +-------- ---------- ---------- ---------- ---------- ---------- ---------- +
  25  
  26    */
  27   package go v.va.med.i maging.exc hange;
  28  
  29   import jav a.util.Col lection;
  30   import jav a.util.Has hMap;
  31   import jav a.util.Ite rator;
  32   import jav a.util.Map ;
  33   import jav a.util.Tim erTask;
  34   import jav a.util.con current.Co ncurrentHa shMap;
  35  
  36   import org .apache.lo gging.log4 j.LogManag er;
  37   import org .apache.lo gging.log4 j.Logger;
  38  
  39   /**
  40    * Base ti med cache.  Holds cac hed items  and implem ents the T imerTask.r un() event  to purge  cache item s after a  desired am ount of ti me.
  41    * 
  42    * @author         
WERFEJ
  43    *
  44    */
  45   public cla ss TimedCa cheFactory  
  46   {
  47           
  48           pr ivate stat ic Map<Obj ect, Timed Cache> map OfCaches =  new Concu rrentHashM ap<Object,  TimedCach e>();
  49           
  50           pr ivate Logg er logger  = LogManag er.getLogg er(getClas s());
  51           
  52           pu blic stati c <T exten ds BaseTim edCacheVal ueItem> Ti medCache<T > getTimed Cache(Stri ng storedO bjectName)
  53           {
  54                    if ( mapOfCache s.contains Key(stored ObjectName ))
  55                    {
  56                             return  mapOfCach es.get(sto redObjectN ame);
  57                    }
  58                    else
  59                    {
  60                             TimedC ache<T> ne wCache = n ew TimedCa che<T>(sto redObjectN ame);
  61                             mapOfC aches.put( storedObje ctName, ne wCache);
  62                             return  newCache;
  63                    }
  64           }
  65           
  66           pu blic stati c <T exten ds BaseTim edCacheVal ueItem> Ti medCache<T > purgeTim edCache(St ring store dObjectNam e)
  67           {
  68                    if ( mapOfCache s.contains Key(stored ObjectName ))
  69                    {
  70                             mapOfC aches.remo ve(storedO bjectName) ;
  71                    }
  72                    Time dCache<T>  newCache =  new Timed Cache<T>(s toredObjec tName);
  73                    mapO fCaches.pu t(storedOb jectName,  newCache);
  74                    retu rn newCach e;
  75           }
  76  
  77   }