792. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 10/18/2018 2:02:20 PM Central Daylight 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.

792.1 Files compared

# Location File Last Modified
1 VIX_SIV_v3_0_patch_201_build_8.zip\v3.0_patch_201_build_8\VISA\Java\MockDataGenerationImpl\main\src\java\gov\va\med\imaging\core\interfaces AbstractMockFacadeRouterImpl.java Thu Oct 11 13:30:12 2018 UTC
2 VIX_SIV_v3_0_patch_201_build_8.zip\v3.0_patch_201_build_8\VISA\Java\MockDataGenerationImpl\main\src\java\gov\va\med\imaging\core\interfaces AbstractMockFacadeRouterImpl.java Wed Oct 17 19:01:09 2018 UTC

792.2 Comparison summary

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

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

792.4 Active regular expressions

No regular expressions were active.

792.5 Comparison detail

  1   /**
  2    * 
  3    */
  4   package go v.va.med.i maging.cor e.interfac es;
  5  
  6   import jav a.util.Col lection;
  7   import jav a.util.Map ;
  8   import jav a.util.con current.Ca llable;
  9   import jav a.util.con current.Ex ecutors;
  10   import jav a.util.con current.Sc heduledExe cutorServi ce;
  11   import gov .va.med.Da taGenerati onConfigur ation;
  12   import gov .va.med.Ge nericDataG enerator;
  13   import gov .va.med.Ne tworkSimul atingInput Stream;
  14   import gov .va.med.Ma sterDataGe nerator;
  15   import gov .va.med.Ge nericDataG enerator.M ode;
  16   import gov .va.med.Ne tworkSimul atingInput Stream.DEL AY_MODE;
  17   import gov .va.med.Ne tworkSimul atingInput Stream.EXC EPTION_MOD E;
  18   import gov .va.med.im aging.core .interface s.FacadeRo uter;
  19   import gov .va.med.im aging.core .interface s.router.A synchronou sCommandRe sult;
  20   import gov .va.med.im aging.core .interface s.router.A synchronou sCommandRe sultListen er;
  21   import gov .va.med.im aging.core .interface s.router.C ommand;
  22   import gov .va.med.im aging.core .interface s.router.N ullCommand ;
  23   import org .apache.lo gging.log4 j.LogManag er;
  24   import org .apache.lo gging.log4 j.Logger;
  25  
  26   /**
  27    * @author   PII
  28    *
  29    */
  30   public abs tract clas s Abstract MockFacade RouterImpl
  31   implements  FacadeRou ter
  32   {
  33           pr ivate stat ic Schedul edExecutor Service ex ecutor = E xecutors.n ewSingleTh readSchedu ledExecuto r();
  34           pr ivate stat ic Generic DataGenera tor.Mode m ode = Gene ricDataGen erator.Mod e.RANDOMIZ E;
  35           pr ivate stat ic Network Simulating InputStrea m.EXCEPTIO N_MODE ioE xceptionMo de = Netwo rkSimulati ngInputStr eam.EXCEPT ION_MODE.R ELIABLE; 
  36           pr ivate stat ic Network Simulating InputStrea m.DELAY_MO DE delayMo de = Netwo rkSimulati ngInputStr eam.DELAY_ MODE.NONE;  
  37           pr ivate fina l GenericD ataGenerat or dataGen erator;
  38  
  39           pu blic stati c GenericD ataGenerat or.Mode ge tMode()
  40           {
  41                    retu rn mode;
  42           }
  43  
  44           pu blic stati c NetworkS imulatingI nputStream .EXCEPTION _MODE getI oException Mode()
  45           {
  46                    retu rn ioExcep tionMode;
  47           }
  48  
  49           pu blic stati c NetworkS imulatingI nputStream .DELAY_MOD E getDelay Mode()
  50           {
  51                    retu rn delayMo de;
  52           }
  53  
  54           pu blic stati c void set IoExceptio nMode(Netw orkSimulat ingInputSt ream.EXCEP TION_MODE  ioExceptio nMode)
  55           {
  56                    Abst ractMockFa cadeRouter Impl.ioExc eptionMode  = ioExcep tionMode;
  57           }
  58  
  59           pu blic stati c void set DelayMode( NetworkSim ulatingInp utStream.D ELAY_MODE  delayMode)
  60           {
  61                    Abst ractMockFa cadeRouter Impl.delay Mode = del ayMode;
  62           }
  63  
  64           pu blic stati c void set Mode(Gener icDataGene rator.Mode  mode)
  65           {
  66                    Abst ractMockFa cadeRouter Impl.mode  = mode;
  67           }
  68  
  69           pu blic Abstr actMockFac adeRouterI mpl()
  70           {
  71                    data Generator  = new Mast erDataGene rator(
  72                             new Da taGenerati onConfigur ation(mode , ioExcept ionMode, d elayMode)
  73                    );
  74           }
  75           
  76           pr ivate Gene ricDataGen erator get DataGenera tor()
  77           {
  78                    retu rn this.da taGenerato r;
  79           }
  80  
  81           /* *
  82            *  
  83            *  @param <T >
  84            *  @param ty pe
  85            *  @return
  86            * /
  87           pr otected <T  extends O bject> T c reateInsta nce(Class< T> type)
  88           {
  89                    retu rn getData Generator( ).createIn stance(typ e);
  90           }
  91           
  92           pr otected <T  extends C ollection< E>, E exte nds Object > T create Collection Instance(C lass<T> co llectionTy pe, Class< E> element Type)
  93           {
  94                    retu rn (T)getD ataGenerat or().creat eCollectio nInstance( collection Type, elem entType);
  95           }
  96           
  97           pr otected <T  extends M ap<K, V>,  K extends  Object, V  extends Ob ject> T cr eateMapIns tance(
  98                    Clas s<T> mapTy pe, 
  99                    Clas s<K> keyTy pe, 
  100                    Clas s<V> value Type)
  101           {
  102                    retu rn (T)getD ataGenerat or().creat eMapInstan ce(mapType , keyType,  valueType );
  103           }
  104           
  105           pr ivate void  asynchron ouslyNotif yListener( Object o,  Asynchrono usCommandR esultListe ner listen er)
  106           {
  107                    exec utor.submi t( new Not ableNotifi er(o, list ener) );
  108           }
  109           
  110           cl ass Notabl eNotifier
  111           im plements C allable<Vo id>
  112           {
  113                    priv ate final  Object o;
  114                    priv ate final  Asynchrono usCommandR esultListe ner listen er;
  115                    
  116                    Nota bleNotifie r(Object o , Asynchro nousComman dResultLis tener list ener)
  117                    {
  118                             this.o  = o;
  119                             this.l istener =  listener;
  120                    }
  121                    
  122                    @Ove rride
  123                    publ ic Void ca ll() 
  124                    thro ws Excepti on
  125                    {
  126                             listen er.command Complete(  new Asynch ronousComm andResult( new NullCo mmand(), o ));
  127                             return  null;
  128                    }
  129           }
  130           
  131           /* *
  132            *  
  133            *  @return
  134            * /
  135           pr ivate Logg er getMyLo gger()
  136           {
  137                    retu rn LogMana ger.getLog ger(Abstra ctMockFaca deRouterIm pl.class);
  138           }
  139           
  140           
  141   }