Produced by Araxis Merge on 12/5/2017 12:06:46 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.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | IV-eHMP_CIF.zip\IMAG_Source\VISA\Java\ImagingRouter\main\src\java\gov\va\med\imaging\router\commands\mbean | DODRequests.java | Mon Dec 4 21:35:20 2017 UTC |
| 2 | IV-eHMP_CIF.zip\IMAG_Source\VISA\Java\ImagingRouter\main\src\java\gov\va\med\imaging\router\commands\mbean | DODRequests.java | Mon Dec 4 22:03:31 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 3 | 344 |
| Changed | 2 | 4 |
| Inserted | 0 | 0 |
| Removed | 0 | 0 |
| 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 |
No regular expressions were active.
| 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 26, 2012 | |
| 6 | Site Nam e: Washin gton OI Fi eld Office , Silver S pring, MD | |
| 7 | Developer:
|
|
| 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.rou ter.comman ds.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
|
|
| 41 | * | |
| 42 | */ | |
| 43 | public cla ss DODRequ ests | |
| 44 | implements DODReques tsMBean | |
| 45 | { | |
| 46 | pr ivate fina l static L ogger logg er = LogMa nager.getL ogger(DODR equests.cl ass); | |
| 47 | ||
| 48 | pr ivate long totalDodP atientArti factReques ts; | |
| 49 | pr ivate long totalDodE xamRequest s; | |
| 50 | pr ivate long nonCorrel atedDodPat ientArtifa ctRequests ; | |
| 51 | pr ivate long nonCorrel atedDodExa mRequests; | |
| 52 | ||
| 53 | pu blic DODRe quests() | |
| 54 | { | |
| 55 | supe r(); | |
| 56 | tota lDodExamRe quests = 0 L; | |
| 57 | tota lDodPatien tArtifactR equests = 0L; | |
| 58 | nonC orrelatedD odExamRequ ests = 0L; | |
| 59 | nonC orrelatedD odPatientA rtifactReq uests = 0L ; | |
| 60 | } | |
| 61 | ||
| 62 | /* (non-Java doc) | |
| 63 | * @see gov. va.med.ima ging.route r.commands .mbean.DOD RequestsMB ean#getTot alDodPatie ntArtifact Requests() | |
| 64 | * / | |
| 65 | @O verride | |
| 66 | pu blic long getTotalDo dPatientAr tifactRequ ests() | |
| 67 | { | |
| 68 | retu rn totalDo dPatientAr tifactRequ ests; | |
| 69 | } | |
| 70 | ||
| 71 | /* (non-Java doc) | |
| 72 | * @see gov. va.med.ima ging.route r.commands .mbean.DOD RequestsMB ean#getTot alDodExamR equests() | |
| 73 | * / | |
| 74 | @O verride | |
| 75 | pu blic long getTotalDo dExamReque sts() | |
| 76 | { | |
| 77 | retu rn totalDo dExamReque sts; | |
| 78 | } | |
| 79 | ||
| 80 | /* (non-Java doc) | |
| 81 | * @see gov. va.med.ima ging.route r.commands .mbean.DOD RequestsMB ean#getNon Correlated DodPatient ArtifactRe quests() | |
| 82 | * / | |
| 83 | @O verride | |
| 84 | pu blic long getNonCorr elatedDodP atientArti factReques ts() | |
| 85 | { | |
| 86 | retu rn nonCorr elatedDodP atientArti factReques ts; | |
| 87 | } | |
| 88 | ||
| 89 | /* (non-Java doc) | |
| 90 | * @see gov. va.med.ima ging.route r.commands .mbean.DOD RequestsMB ean#getDod NonCorrela tedDodExam Requests() | |
| 91 | * / | |
| 92 | @O verride | |
| 93 | pu blic long getNonCorr elatedDodE xamRequest s() | |
| 94 | { | |
| 95 | retu rn nonCorr elatedDodE xamRequest s; | |
| 96 | } | |
| 97 | ||
| 98 | pu blic void setTotalDo dPatientAr tifactRequ ests( | |
| 99 | long t otalDodPat ientArtifa ctRequests ) | |
| 100 | { | |
| 101 | this .totalDodP atientArti factReques ts = total DodPatient ArtifactRe quests; | |
| 102 | } | |
| 103 | ||
| 104 | pu blic void setTotalDo dExamReque sts(long t otalDodExa mRequests) | |
| 105 | { | |
| 106 | this .totalDodE xamRequest s = totalD odExamRequ ests; | |
| 107 | } | |
| 108 | ||
| 109 | pu blic void setNonCorr elatedDodP atientArti factReques ts( | |
| 110 | long n onCorrelat edDodPatie ntArtifact Requests) | |
| 111 | { | |
| 112 | this .nonCorrel atedDodPat ientArtifa ctRequests = nonCorr elatedDodP atientArti factReques ts; | |
| 113 | } | |
| 114 | ||
| 115 | pu blic void setNonCorr elatedDodE xamRequest s(long non Correlated DodExamReq uests) | |
| 116 | { | |
| 117 | this .nonCorrel atedDodExa mRequests = nonCorre latedDodEx amRequests ; | |
| 118 | } | |
| 119 | ||
| 120 | pu blic void incrementN onCorrelat edDodExamR equests() | |
| 121 | { | |
| 122 | this .nonCorrel atedDodExa mRequests+ +; | |
| 123 | } | |
| 124 | ||
| 125 | pu blic void incrementN onCorrelat edDodPatie ntArtifact Requests() | |
| 126 | { | |
| 127 | this .nonCorrel atedDodPat ientArtifa ctRequests ++; | |
| 128 | } | |
| 129 | ||
| 130 | pu blic void incrementT otalDodExa mRequests( ) | |
| 131 | { | |
| 132 | this .totalDodE xamRequest s++; | |
| 133 | } | |
| 134 | ||
| 135 | pu blic void incrementT otalDodPat ientArtifa ctRequests () | |
| 136 | { | |
| 137 | this .totalDodP atientArti factReques ts++; | |
| 138 | } | |
| 139 | ||
| 140 | pr ivate stat ic ObjectN ame dodReq uestsMBean Name = nul l; | |
| 141 | ||
| 142 | pu blic stati c DODReque sts dodReq uests = nu ll; | |
| 143 | pu blic synch ronized st atic DODRe quests get RoiCommand sStatistic s() | |
| 144 | { | |
| 145 | if(d odRequests == null) | |
| 146 | { | |
| 147 | dodReq uests = ne w DODReque sts(); | |
| 148 | regist erMBeanSer ver(); | |
| 149 | } | |
| 150 | retu rn dodRequ ests; | |
| 151 | } | |
| 152 | ||
| 153 | pr ivate stat ic synchro nized void registerM BeanServer () | |
| 154 | { | |
| 155 | if(d odRequests MBeanName == null) | |
| 156 | { | |
| 157 | logger .info("Reg istering D OD Request s with JMX "); | |
| 158 | try | |
| 159 | { | |
| 160 | // add sta tistics | |
| 161 | MBeanSer ver mBeanS erver = Ma nagementFa ctory.getP latformMBe anServer() ; | |
| 162 | Hashtabl e<String, String> mB eanPropert ies = new Hashtable< String, St ring>(); | |
| 163 | mBeanPro perties.pu t( "type", "DODReque sts" ); | |
| 164 | mBeanPro perties.pu t( "name", "Statisti cs"); | |
| 165 | dodReque stsMBeanNa me = new O bjectName( ImagingMBe an.VIX_MBE AN_DOMAIN_ NAME, mBea nPropertie s); | |
| 166 | mBeanSer ver.regist erMBean(do dRequests, dodReques tsMBeanNam e); | |
| 167 | } | |
| 168 | catch( Exception ex) | |
| 169 | { | |
| 170 | logger.e rror("Erro r register ing DOD Re quests wit h JMX", ex ); | |
| 171 | } | |
| 172 | } | |
| 173 | } | |
| 174 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.