347. EPMO Open Source Coordination Office Redaction File Detail Report

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

347.1 Files compared

# Location File Last Modified
1 IV-eHMP_CIF.zip\IMAG_Source\VISA\Java\ROICommands\main\src\java\gov\va\med\imaging\roi\commands\mbean ROICommandsStatistics.java Mon Dec 4 21:35:20 2017 UTC
2 IV-eHMP_CIF.zip\IMAG_Source\VISA\Java\ROICommands\main\src\java\gov\va\med\imaging\roi\commands\mbean ROICommandsStatistics.java Mon Dec 4 22:05:22 2017 UTC

347.2 Comparison summary

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

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

347.4 Active regular expressions

No regular expressions were active.

347.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  20, 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.roi .commands. mbean;
  27  
  28   import gov .va.med.im aging.Imag ingMBean;
  29  
  30   import jav a.lang.man agement.Ma nagementFa ctory;
  31   import jav a.util.Has htable;
  32  
  33   import jav ax.managem ent.MBeanS erver;
  34   import jav ax.managem ent.Object Name;
  35  
  36   import org .apache.lo gging.log4 j.LogManag er;
  37   import org .apache.lo gging.log4 j.Logger;
  38  
  39   /**
  40    * @author         
WERFEJ
  41    *
  42    */
  43   public cla ss ROIComm andsStatis tics 
  44   implements  ROIComman dsStatisti csMBean
  45   {
  46           pr ivate fina l static L ogger logg er = LogMa nager.getL ogger(ROIC ommandsSta tistics.cl ass);
  47           
  48           pr ivate bool ean roiPer iodicProce ssing;
  49           pr ivate Stri ng roiPeri odicProces singError;
  50           pr ivate bool ean roiCom pletedItem sPurgeProc essing;
  51           pr ivate bool ean roiPro cessWorkIt emImmediat ely;
  52           
  53           pr ivate long  roiDisclo sureReques ts;
  54           pr ivate long  roiDisclo sureProces singErrors ;
  55           pr ivate long  roiDisclo suresCompl eted;
  56           pr ivate long  roiStudie sSentToExp ortQueue;
  57           pr ivate long  roiDisclo suresCance lled;
  58           
  59           pu blic ROICo mmandsStat istics()
  60           {
  61                    supe r();
  62                    this .roiPeriod icProcessi ng = false ;
  63                    this .roiPeriod icProcessi ngError =  null;
  64                    this .roiComple tedItemsPu rgeProcess ing = fals e;
  65                    this .roiDisclo sureReques ts = 0L;
  66                    this .roiDisclo sureProces singErrors  = 0L;
  67                    this .roiDisclo suresCompl eted = 0L;
  68                    this .roiStudie sSentToExp ortQueue =  0L;
  69                    this .roiDisclo suresCance lled = 0L;
  70                    this .roiProces sWorkItemI mmediately  = false;
  71           }
  72  
  73           pu blic boole an isRoiPe riodicProc essing()
  74           {
  75                    retu rn roiPeri odicProces sing;
  76           }
  77                                        
  78           pu blic Strin g getRoiPe riodicProc essingErro r()
  79           {
  80                    retu rn roiPeri odicProces singError;
  81           }
  82  
  83           pu blic void  setRoiPeri odicProces singError( String roi PeriodicPr ocessingEr ror)
  84           {
  85                    this .roiPeriod icProcessi ngError =  roiPeriodi cProcessin gError;
  86           }
  87  
  88           pu blic void  setRoiPeri odicProces sing(boole an roiPeri odicProces sing)
  89           {
  90                    this .roiPeriod icProcessi ng = roiPe riodicProc essing;
  91           }
  92           
  93           pu blic boole an isRoiCo mpletedIte msPurgePro cessing()
  94           {
  95                    retu rn roiComp letedItems PurgeProce ssing;
  96           }
  97  
  98           pu blic void  setRoiComp letedItems PurgeProce ssing(
  99                             boolea n roiCompl etedItemsP urgeProces sing)
  100           {
  101                    this .roiComple tedItemsPu rgeProcess ing = roiC ompletedIt emsPurgePr ocessing;
  102           }
  103  
  104           pu blic long  getRoiDisc losureRequ ests()
  105           {
  106                    retu rn roiDisc losureRequ ests;
  107           }
  108  
  109           pu blic void  setRoiDisc losureRequ ests(long  roiDisclos ureRequest s)
  110           {
  111                    this .roiDisclo sureReques ts = roiDi sclosureRe quests;
  112           }
  113  
  114           pu blic long  getRoiDisc losureProc essingErro rs()
  115           {
  116                    retu rn roiDisc losureProc essingErro rs;
  117           }
  118  
  119           pu blic void  setRoiDisc losureProc essingErro rs(long ro iDisclosur eProcessin gErrors)
  120           {
  121                    this .roiDisclo sureProces singErrors  = roiDisc losureProc essingErro rs;
  122           }
  123  
  124           pu blic long  getRoiDisc losuresCom pleted()
  125           {
  126                    retu rn roiDisc losuresCom pleted;
  127           }
  128  
  129           pu blic void  setRoiDisc losuresCom pleted(lon g roiDiscl osuresComp leted)
  130           {
  131                    this .roiDisclo suresCompl eted = roi Disclosure sCompleted ;
  132           }
  133  
  134           pu blic long  getRoiStud iesSentToE xportQueue ()
  135           {
  136                    retu rn roiStud iesSentToE xportQueue ;
  137           }
  138  
  139           pu blic void  setRoiStud iesSentToE xportQueue (long roiS tudiesSent ToExportQu eue)
  140           {
  141                    this .roiStudie sSentToExp ortQueue =  roiStudie sSentToExp ortQueue;
  142           }
  143  
  144           pu blic long  getRoiDisc losuresCan celled()
  145           {
  146                    retu rn roiDisc losuresCan celled;
  147           }
  148  
  149           pu blic void  setRoiDisc losuresCan celled(lon g roiDiscl osuresCanc elled)
  150           {
  151                    this .roiDisclo suresCance lled = roi Disclosure sCancelled ;
  152           }
  153  
  154           pu blic synch ronized vo id increme ntRoiDiscl osureReque sts()
  155           {
  156                    roiD isclosureR equests++;
  157           }
  158           
  159           pu blic synch ronized vo id increme ntRoiDiscl osureProce ssingError s()
  160           {
  161                    roiD isclosureP rocessingE rrors++;
  162           }
  163  
  164           pu blic synch ronized vo id increme ntRoiDiscl osuresComp leted()
  165           {
  166                    roiD isclosures Completed+ +;
  167           }
  168           
  169           pu blic synch ronized vo id increme ntRoiStudi esSentToEx portQueue( )
  170           {
  171                    roiS tudiesSent ToExportQu eue++;
  172           }
  173           
  174           pu blic synch ronized vo id increme ntRoiDiscl osuresCanc elled()
  175           {
  176                    roiD isclosures Cancelled+ +;
  177           }
  178  
  179           pu blic boole an isRoiPr ocessWorkI temImmedia tely()
  180           {
  181                    retu rn roiProc essWorkIte mImmediate ly;
  182           }
  183  
  184           pu blic void  setRoiProc essWorkIte mImmediate ly(
  185                             boolea n roiProce ssWorkItem Immediatel y)
  186           {
  187                    this .roiProces sWorkItemI mmediately  = roiProc essWorkIte mImmediate ly;
  188           }
  189  
  190  
  191           pr ivate stat ic ObjectN ame roiCom mandsProce ssingStati sticsMBean Name = nul l;
  192           
  193           pu blic stati c ROIComma ndsStatist ics roiCom mandsStati stics = nu ll;
  194           pu blic synch ronized st atic ROICo mmandsStat istics get RoiCommand sStatistic s()
  195           {
  196                    if(r oiCommands Statistics  == null)
  197                    {
  198                             roiCom mandsStati stics = ne w ROIComma ndsStatist ics();
  199                             regist erMBeanSer ver();
  200                    }
  201                    retu rn roiComm andsStatis tics;
  202           }
  203           
  204           pr ivate stat ic synchro nized void  registerM BeanServer ()
  205           {
  206                    if(r oiCommands Processing Statistics MBeanName  == null)
  207                    {
  208                             logger .info("Reg istering R OI Command s Statisti cs with JM X");
  209                             try
  210                             {
  211                         // add sta tistics
  212                                      MBeanSer ver mBeanS erver = Ma nagementFa ctory.getP latformMBe anServer() ;
  213                                      Hashtabl e<String,  String> mB eanPropert ies = new  Hashtable< String, St ring>();
  214                                      mBeanPro perties.pu t( "type",  "ROIProce ssingComma nds" );
  215                                      mBeanPro perties.pu t( "name",  "Statisti cs");
  216                                      roiComma ndsProcess ingStatist icsMBeanNa me = new O bjectName( ImagingMBe an.VIX_MBE AN_DOMAIN_ NAME, mBea nPropertie s);
  217                                      mBeanSer ver.regist erMBean(ro iCommandsS tatistics,  roiComman dsProcessi ngStatisti csMBeanNam e);
  218                             }
  219                             catch( Exception  ex)
  220                             {
  221                                      logger.e rror("Erro r register ing ROI Co mmands Sta tistics wi th JMX", e x);
  222                             }
  223                    }
  224           }
  225  
  226  
  227   }