Produced by Araxis Merge on 12/5/2017 12:06:44 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\ImagingDicomRouter\main\src\java\gov\va\med\imaging\core\router\commands | ProcessAsyncStorageQueueSendEmailCommandImpl.java | Mon Dec 4 21:35:22 2017 UTC |
| 2 | IV-eHMP_CIF.zip\IMAG_Source\VISA\Java\ImagingDicomRouter\main\src\java\gov\va\med\imaging\core\router\commands | ProcessAsyncStorageQueueSendEmailCommandImpl.java | Mon Dec 4 22:02:53 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 128 |
| Changed | 1 | 2 |
| 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 | package go v.va.med.i maging.cor e.router.c ommands; | |
| 2 | ||
| 3 | import gov .va.med.im aging.core .annotatio ns.routerf acade.Rout erCommandE xecution; | |
| 4 | import gov .va.med.im aging.core .interface s.exceptio ns.Connect ionExcepti on; | |
| 5 | import gov .va.med.im aging.core .interface s.exceptio ns.MethodE xception; | |
| 6 | import gov .va.med.im aging.core .interface s.router.C ommand; | |
| 7 | import gov .va.med.im aging.core .router.co mmands.sto rage.Proce ssAsyncSto rageQueueC ommandImpl ; | |
| 8 | import gov .va.med.im aging.dico m.DicomCon text; | |
| 9 | import gov .va.med.im aging.dico m.DicomRou ter; | |
| 10 | import gov .va.med.im aging.exch ange.busin ess.EmailM essage; | |
| 11 | import gov .va.med.im aging.exch ange.busin ess.dicom. DicomServe rConfigura tion; | |
| 12 | import gov .va.med.im aging.exch ange.busin ess.storag e.AsyncSto rageReques t; | |
| 13 | ||
| 14 | import org .apache.lo gging.log4 j.LogManag er; | |
| 15 | import org .apache.lo gging.log4 j.Logger; | |
| 16 | /* | |
| 17 | * Overrid es a metho d in the a synchronou s storage queue peri odic comma nd (define d in Core Router pro ject) | |
| 18 | * to be a ble to sub mit e-mail requests upon perma nently fai led archiv e attempts . | |
| 19 | * | |
| 20 | * @author
|
|
| 21 | * | |
| 22 | */ | |
| 23 | @RouterCom mandExecut ion(asynch ronous = t rue, distr ibutable = false) | |
| 24 | public cla ss Process AsyncStora geQueueSen dEmailComm andImpl ex tends | |
| 25 | Proc essAsyncSt orageQueue CommandImp l { | |
| 26 | ||
| 27 | pr ivate stat ic final l ong serial VersionUID = 4923784 727345L; | |
| 28 | pr ivate Logg er logger = LogManag er.getLogg er(Process AsyncStora geQueueSen dEmailComm andImpl.cl ass); | |
| 29 | ||
| 30 | /* * | |
| 31 | * @param re quest | |
| 32 | * @param eM ailTos | |
| 33 | * @param su bjectLine | |
| 34 | * @param th readId | |
| 35 | * | |
| 36 | * post Erro r message to e-mail queue (ove rride) | |
| 37 | * this post ToEmailQ i s the over ride of th e protecte d equivale nt signatu re within the Proces sAsyncStor ageQueueCo mmandImpl call in Co reRouter p roject. | |
| 38 | * / | |
| 39 | @O verride | |
| 40 | pu blic void postToEmai lQ(AsyncSt orageReque st request , String[] eMailTos, String su bjectLine, | |
| 41 | String threadId) { | |
| 42 | Emai lMessage e mail = new EmailMess age(eMailT os, | |
| 43 | subjectL ine, | |
| 44 | request. getLastErr or()); // the messag e body | |
| 45 | Dico mRouter rt r = DicomC ontext.get Router(); | |
| 46 | try { | |
| 47 | rtr.po stToEmailQ ueue(email , threadId ); | |
| 48 | } | |
| 49 | catc h (MethodE xception m e) { | |
| 50 | logger .error("Er ror queuei ng Email f or \n'" + request.ge tLastError () + "' - ThreadID" +threadId) ; | |
| 51 | } | |
| 52 | catc h (Connect ionExcepti on ce) { | |
| 53 | logger .error("DB Connectio n error wh ile queuei ng Email f or \n'" + request.ge tLastError () + "' - ThreadID" +threadId) ; | |
| 54 | } | |
| 55 | } | |
| 56 | ||
| 57 | @O verride | |
| 58 | pu blic Comma nd<Boolean > getNewPe riodicInst ance() thr ows Method Exception { | |
| 59 | Proc essAsyncSt orageQueue SendEmailC ommandImpl command = new Proce ssAsyncSto rageQueueS endEmailCo mmandImpl( ); | |
| 60 | comm and.setPer iodic(Dico mServerCon figuration .getConfig uration(). isArchiveE nabled()); | |
| 61 | comm and.setPer iodicExecu tionDelay( this.getPe riodicExec utionDelay ()); | |
| 62 | comm and.setCom mandContex t(this.get CommandCon text()); | |
| 63 | retu rn command ; | |
| 64 | } | |
| 65 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.