Produced by Araxis Merge on 8/1/2019 1:42:42 PM Eastern 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.
# | Location | File | Last Modified |
---|---|---|---|
1 | JLV_2_8_0_0_0_July_2019.zip\JLV_2_8_0_0_0_July_2019\JLVVistaDataService\src\main\java\gov\va\med\vds\common | AppConfig.java | Mon Jul 8 18:58:42 2019 UTC |
2 | JLV_2_8_0_0_0_July_2019.zip\JLV_2_8_0_0_0_July_2019\JLVVistaDataService\src\main\java\gov\va\med\vds\common | AppConfig.java | Tue Jul 30 20:02:27 2019 UTC |
Description | Between Files 1 and 2 |
|
---|---|---|
Text Blocks | Lines | |
Unchanged | 2 | 1798 |
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 | /* | |
2 | * Janus 4 .0 (c) | |
3 | * Copyrig ht (c) 201 6 Hawaii R esource Gr oup LLC. A ll Rights Reserved. | |
4 | * Develop ed for the Pacific T elehealth & Technolo gy Hui and the Pacif ic Joint I nformation Technolog y Center | |
5 | * Contrib utors: | |
6 | * Ho norable Se nator Dani el K. Inou ye | |
7 | * VA Pacific I slands Hea lth Care S ystem | |
8 | * Tr ipler Army Medical C enter | |
9 | */ | |
10 | ||
11 | ||
12 | package go v.va.med.v ds.common; | |
13 | ||
14 | import gov .va.med.fo undations. utilities. EncryptUti l; | |
15 | import gov .va.med.rp c.StringUt ils; | |
16 | import gov .va.med.vh ahon.commo n.Utils; | |
17 | import org .slf4j.Log ger; | |
18 | import org .slf4j.Log gerFactory ; | |
19 | ||
20 | import jav a.io.FileI nputStream ; | |
21 | import jav a.io.FileN otFoundExc eption; | |
22 | import jav a.io.IOExc eption; | |
23 | import jav a.io.Input Stream; | |
24 | import jav a.util.Has hSet; | |
25 | import jav a.util.Pro perties; | |
26 | import jav a.util.Set ; | |
27 | ||
28 | /** | |
29 | * User: D N S | |
30 | * Date: 8 /29/11 | |
31 | * Time: 2 :36 PM | |
32 | */ | |
33 | public cla ss AppConf ig { | |
34 | privat e static f inal Logge r LOGGER = LoggerFac tory.getLo gger(AppCo nfig.class ); | |
35 | ||
36 | privat e static f inal Strin g AGENCY_V A = "appco nfig.agenc y.va"; | |
37 | privat e static f inal Strin g AGENCY_D OD = "appc onfig.agen cy.dod"; | |
38 | privat e static f inal Strin g LOG4J_PR OPS = "app config.log 4j.props"; | |
39 | privat e static f inal Strin g APP_ENVI RONMENT = "app.envir onment"; | |
40 | privat e static f inal Strin g APP_VERS ION = "app .version"; | |
41 | privat e static f inal Strin g NON_BSE_ SECURITY_P HRASE = "a ppconfig.a uthenticat ion.nonBse SecurityPh rase"; | |
42 | privat e static f inal Strin g REQUEST_ TIMEOUT_MS = "appcon fig.reques t.timeout. ms"; | |
43 | privat e static f inal Strin g CONNECTI ON_TIMEOUT _MS = "app config.con nection.ti meout.ms"; | |
44 | ||
45 | privat e static f inal Strin g VLER_DQ_ URL = "app config.vle r.dq.url"; | |
46 | privat e static f inal Strin g VLER_DR_ URL = "app config.vle r.dr.url"; | |
47 | privat e static f inal Strin g VLER_DQ_ START_DATE _YEAR = "a ppconfig.v ler.dq.sta rtDateYear "; | |
48 | privat e static f inal Strin g VLER_DQ_ END_DATE_Y EAR_OFFSET = "appcon fig.vler.d q.endDateY earOffset" ; | |
49 | // priv ate static final Str ing VLER_P D_URL = "a ppconfig.v ler.pd.url "; | |
50 | // priv ate static final Str ing VLER_P A_URL = "a ppconfig.v ler.pa.url "; | |
51 | privat e static f inal Strin g VLER_DAS _URL = "ap pconfig.vl er.das.url "; | |
52 | privat e static f inal Strin g VLER_DAS _CALLBACK = "appconf ig.vler.da s.callback "; | |
53 | privat e static f inal Strin g VLER_DAS _EMPTY_NAR RATIVES = "appconfig .vler.das. emptyNarra tives"; | |
54 | ||
55 | privat e static f inal Strin g EVIX_STU DYQUERY_UR L = "appco nfig.evix. studyquery .url"; | |
56 | privat e static f inal Strin g EVIX_VIX _ENDPOINT = "appconf ig.evix.vi xEndpoint" ; | |
57 | privat e static f inal Strin g EVIX_REQ UEST_TIMEO UT = "appc onfig.evix .request.t imeout.ms" ; | |
58 | privat e static f inal Strin g EVIX_CON NECTION_TI MEOUT = "a ppconfig.e vix.connec tion.timeo ut.ms"; | |
59 | privat e static f inal Strin g EVIX_VAL IDATION_BY PASS = "ap pconfig.ev ix.isVixVa lidationBy pass"; | |
60 | ||
61 | //cons tants | |
62 | privat e static f inal Strin g PROTOCOL _RPC = "RP C"; | |
63 | privat e static f inal Strin g PROTOCOL _CACHE = " CACHE"; | |
64 | privat e static f inal Strin g DATASOUR CE = "appc onfig.data source"; | |
65 | ||
66 | privat e final st atic int R PC_CONNECT ION_THREAD _CORE_POOL _SIZE_DEFA ULT = 200; | |
67 | privat e final st atic int R PC_CONNECT ION_THREAD _MAX_POOL_ SIZE_DEFAU LT = 600; | |
68 | privat e final st atic int R PC_CONNECT ION_THREAD _BLOCKING_ QUEUE_SIZE _DEFAULT = 25; | |
69 | ||
70 | privat e final st atic int P ARSER_THRE AD_CORE_PO OL_SIZE_DE FAULT = 10 0; | |
71 | privat e final st atic int P ARSER_THRE AD_MAX_POO L_SIZE_DEF AULT = 300 ; | |
72 | privat e final st atic int P ARSER_THRE AD_BLOCKIN G_QUEUE_SI ZE_DEFAULT = 25; | |
73 | ||
74 | privat e final st atic int T HREAD_TIME OUT_SECOND S_DEFAULT = 120; | |
75 | privat e final st atic int T HREAD_KEEP ALIVE_SECO NDS_DEFAUL T = 60; | |
76 | ||
77 | privat e final in t MAX_DATA = 3000000 0; | |
78 | privat e final in t EXPECTED _BUFFER_DA TA = 1024; | |
79 | ||
80 | privat e static f inal Strin g DISABLE_ CACHED_THR EAD_POOL = "appconfi g.thread.d isableCach edThreadPo ol"; | |
81 | privat e static f inal Strin g DISABLE_ SINGLE_PAR SE_THREAD_ POOL = "ap pconfig.th read.disab leSinglePa rsePool"; | |
82 | privat e static f inal Strin g RPC_CONN ECTION_THR EAD_USE_MA X_CACHED_P OOL_SIZE = "appconfi g.rpc.thre ad.useMaxC achedPoolS ize"; | |
83 | ||
84 | privat e static f inal Strin g RPC_CONN ECTION_THR EAD_CORE_P OOL_SIZE = "appconfi g.rpc.thre ad.corePoo lSize"; | |
85 | privat e static f inal Strin g RPC_CONN ECTION_THR EAD_MAX_PO OL_SIZE = "appconfig .rpc.threa d.maxPoolS ize"; | |
86 | privat e static f inal Strin g RPC_CONN ECTION_THR EAD_BLOCKI NG_QUEUE_S IZE = "app config.rpc .thread.bl ockingQueu eSize"; | |
87 | privat e static f inal Strin g RPC_CONN ECTION_THR EAD_TIMEOU T_SECONDS = "appconf ig.rpc.thr ead.timeou t.seconds" ; | |
88 | privat e static f inal Strin g RPC_CONN ECTION_THR EAD_POOL_K EEP_ALIVE_ SECONDS = "appconfig .rpc.threa d.keepaliv e.seconds" ; | |
89 | ||
90 | privat e static f inal Strin g PARSER_T HREAD_CORE _POOL_SIZE = "appcon fig.parse. thread.cor ePoolSize" ; | |
91 | privat e static f inal Strin g PARSER_T HREAD_MAX_ POOL_SIZE = "appconf ig.parse.t hread.maxP oolSize"; | |
92 | privat e static f inal Strin g PARSER_T HREAD_BLOC KING_QUEUE _SIZE = "a ppconfig.p arse.threa d.blocking QueueSize" ; | |
93 | privat e static f inal Strin g PARSER_T HREAD_TIME OUT_SECOND S = "appco nfig.parse .thread.ti meout.seco nds"; | |
94 | privat e static f inal Strin g PARSER_T HREAD_POOL _KEEP_ALIV E_SECONDS = "appconf ig.parse.t hread.keep alive.seco nds"; | |
95 | privat e static f inal Strin g PARSER_T HREAD_USE_ MAX_CACHED _POOL_SIZE = "appcon fig.parse. thread.use MaxPoolSiz e"; | |
96 | ||
97 | privat e static f inal Strin g PARSER_T HREAD_CORE _POOL_SIZE _ENCOUNTER S = "appco nfig.parse .thread.co rePoolSize .encounter s"; | |
98 | privat e static f inal Strin g PARSER_T HREAD_MAX_ POOL_SIZE_ ENCOUNTERS = "appcon fig.parse. thread.max PoolSize.e ncounters" ; | |
99 | privat e static f inal Strin g PARSER_T HREAD_BLOC KING_QUEUE _SIZE_ENCO UNTERS = " appconfig. parse.thre ad.blockin gQueueSize .encounter s"; | |
100 | privat e static f inal Strin g PARSER_T HREAD_CORE _POOL_SIZE _LABS = "a ppconfig.p arse.threa d.corePool Size.labs" ; | |
101 | privat e static f inal Strin g PARSER_T HREAD_MAX_ POOL_SIZE_ LABS = "ap pconfig.pa rse.thread .maxPoolSi ze.labs"; | |
102 | privat e static f inal Strin g PARSER_T HREAD_BLOC KING_QUEUE _SIZE_LABS = "appcon fig.parse. thread.blo ckingQueue Size.labs" ; | |
103 | privat e static f inal Strin g PARSER_T HREAD_CORE _POOL_SIZE _NOTES = " appconfig. parse.thre ad.corePoo lSize.note s"; | |
104 | privat e static f inal Strin g PARSER_T HREAD_MAX_ POOL_SIZE_ NOTES = "a ppconfig.p arse.threa d.maxPoolS ize.notes" ; | |
105 | privat e static f inal Strin g PARSER_T HREAD_BLOC KING_QUEUE _SIZE_NOTE S = "appco nfig.parse .thread.bl ockingQueu eSize.note s"; | |
106 | privat e static f inal Strin g PARSER_T HREAD_CORE _POOL_SIZE _ORDERS = "appconfig .parse.thr ead.corePo olSize.ord ers"; | |
107 | privat e static f inal Strin g PARSER_T HREAD_MAX_ POOL_SIZE_ ORDERS = " appconfig. parse.thre ad.maxPool Size.order s"; | |
108 | privat e static f inal Strin g PARSER_T HREAD_BLOC KING_QUEUE _SIZE_ORDE RS = "appc onfig.pars e.thread.b lockingQue ueSize.ord ers"; | |
109 | privat e static f inal Strin g PARSER_T HREAD_CORE _POOL_SIZE _MEDS = "a ppconfig.p arse.threa d.corePool Size.meds" ; | |
110 | privat e static f inal Strin g PARSER_T HREAD_MAX_ POOL_SIZE_ MEDS = "ap pconfig.pa rse.thread .maxPoolSi ze.meds"; | |
111 | privat e static f inal Strin g PARSER_T HREAD_BLOC KING_QUEUE _SIZE_MEDS = "appcon fig.parse. thread.blo ckingQueue Size.meds" ; | |
112 | ||
113 | ||
114 | privat e static f inal int P ARSER_BATC H_SIZE_DEF AULT = 25; | |
115 | privat e static f inal Strin g PARSER_B ATCH_SIZE_ ORDERS = " appconfig. parse.batc hSize.orde rs"; | |
116 | privat e static f inal Strin g PARSER_B ATCH_SIZE_ NOTES = "a ppconfig.p arse.batch Size.notes "; | |
117 | privat e static f inal Strin g PARSER_B ATCH_SIZE_ APPOINTMEN TS = "appc onfig.pars e.batchSiz e.appointm ents"; | |
118 | privat e static f inal Strin g PARSER_B ATCH_SIZE_ ENCOUNTERS = "appcon fig.parse. batchSize. encounters "; | |
119 | privat e static f inal Strin g PARSER_B ATCH_SIZE_ ALLERGIES = "appconf ig.parse.b atchSize.a llergies"; | |
120 | privat e static f inal Strin g PARSER_B ATCH_SIZE_ REMINDERS = "appconf ig.parse.b atchSize.r eminders"; | |
121 | privat e static f inal Strin g PARSER_B ATCH_SIZE_ IMMUNIZATI ONS = "app config.par se.batchSi ze.immuniz ations"; | |
122 | privat e static f inal Strin g PARSER_B ATCH_SIZE_ INSURANCE = "appconf ig.parse.b atchSize.i nsurance"; | |
123 | privat e static f inal Strin g PARSER_B ATCH_SIZE_ LAB_PANELS = "appcon fig.parse. batchSize. lab.panels "; | |
124 | privat e static f inal Strin g PARSER_B ATCH_SIZE_ LAB_ACCESS IONS = "ap pconfig.pa rse.batchS ize.lab.ac cessions"; | |
125 | privat e static f inal Strin g PARSER_B ATCH_SIZE_ MEDICATION S = "appco nfig.parse .batchSize .medicatio ns"; | |
126 | privat e static f inal Strin g PARSER_B ATCH_SIZE_ PATIENT_FL AGS = "app config.par se.batchSi ze.patient .flags"; | |
127 | privat e static f inal Strin g PARSER_B ATCH_SIZE_ PCE = "app config.par se.batchSi ze.pce"; | |
128 | privat e static f inal Strin g PARSER_B ATCH_SIZE_ RADIOLOGY = "appconf ig.parse.b atchSize.r adiology"; | |
129 | privat e static f inal Strin g PARSER_B ATCH_SIZE_ VITALS = " appconfig. parse.batc hSize.vita ls"; | |
130 | ||
131 | //rest configs | |
132 | privat e static f inal Strin g REST_CON NECTION_TI MEOUT_MS = "appconfi g.vler.das .REST_CONN ECTION_TIM EOUT_MS"; | |
133 | privat e static f inal Strin g REST_REA D_TIMEOUT_ MS = "appc onfig.vler .das.REST_ READ_TIMEO UT_MS"; | |
134 | privat e static f inal Strin g IS_DAS_C ACHE_ENABL ED = "appc onfig.vler .das.CACHE _ENABLED"; | |
135 | privat e static f inal Strin g DAS_TEST _PAT = "ap pconfig.vl er.das.tes tpat"; | |
136 | privat e static f inal Strin g DAS_ENAB LE_COMMUNI TY_SUMMARI ES = "appc onfig.vler .das.enabl eHealthSum maries"; | |
137 | privat e static f inal Strin g DAS_DISA BLE_SSL_VE RIFICATION = "appcon fig.vler.d as.disable SSLVerific ation"; | |
138 | ||
139 | privat e static f inal Strin g USE_ENHA NCED_DEBUG = "appcon fig.debug. enhanced"; | |
140 | ||
141 | privat e static f inal Strin g ENCRYPTI ON_KEY_ARR AY = "appc onfig.encr yption.key .array"; | |
142 | ||
143 | privat e static f inal Strin g BSE_TOKE N_ENABLED = "appconf ig.bse.tok en.enabled "; | |
144 | privat e static f inal Strin g BSE_TOKE N_PHRASE = "appconfi g.bse.toke n.bseToken Phrase"; | |
145 | ||
146 | privat e static f inal Strin g HS_ADHOC _CLINICAL_ REMINDER_L IST = "app config.hea lthSummary Adhoc.clin icalRemind er.list"; | |
147 | privat e static f inal Strin g ADVANCE_ DIRECTIVES _LIST = "a ppconfig.a dvancedDir ectives.li st"; | |
148 | ||
149 | privat e static f inal AppCo nfig INSTA NCE = new AppConfig( ); | |
150 | ||
151 | privat e Properti es appProp erties; | |
152 | ||
153 | privat e AppConfi g() { | |
154 | ||
155 | ap pPropertie s = new Pr operties() ; | |
156 | ||
157 | lo adAppMetaP roperties( ); | |
158 | lo adAppConfi gPropertie s(); | |
159 | } | |
160 | ||
161 | privat e void loa dAppMetaPr operties() { | |
162 | St ring prope rtiesFile = "applica tion.prope rties"; | |
163 | ||
164 | In putStream inputStrea m = null; | |
165 | ||
166 | Cl assLoader classLoade r = AppCon fig.class. getClassLo ader(); | |
167 | if (classLoa der != nul l) { | |
168 | inputStr eam = clas sLoader.ge tResourceA sStream(pr opertiesFi le); | |
169 | } | |
170 | ||
171 | tr y { | |
172 | appPrope rties.load (inputStre am); | |
173 | } catch (IOE xception e ) { | |
174 | LOGGER.e rror("Fail ed load ap plication. properties : " + e.ge tMessage() ); | |
175 | throw ne w RuntimeE xception(e ); | |
176 | } finally { | |
177 | try { | |
178 | if ( inputStrea m != null) { | |
179 | inputStrea m.close(); | |
180 | } | |
181 | } catch (IOExcepti on e) { | |
182 | LOGG ER.error(e .getMessag e()); | |
183 | } | |
184 | } | |
185 | } | |
186 | ||
187 | privat e void loa dAppConfig Properties () { | |
188 | St ring prope rtiesFile = "vistada taservice. properties "; | |
189 | ||
190 | In putStream inputStrea m = null; | |
191 | ||
192 | Cl assLoader classLoade r = AppCon fig.class. getClassLo ader(); | |
193 | if (classLoa der != nul l) { | |
194 | inputStr eam = clas sLoader.ge tResourceA sStream(pr opertiesFi le); | |
195 | } | |
196 | ||
197 | if (inputStr eam != nul l) { | |
198 | try { | |
199 | appP roperties. load(input Stream); | |
200 | } catch (IOExcepti on e) { | |
201 | LOGG ER.error(" Failed loa d appconfi g properti es: " + e. getMessage ()); | |
202 | thro w new Runt imeExcepti on(e); | |
203 | } finall y { | |
204 | try { | |
205 | inputStrea m.close(); | |
206 | } ca tch (IOExc eption e) { | |
207 | LOGGER.err or(e.getMe ssage()); | |
208 | } | |
209 | } | |
210 | } | |
211 | ||
212 | tr y { | |
213 | ||
214 | inputStr eam = new FileInputS tream(prop ertiesFile ); | |
215 | ||
216 | try { | |
217 | appP roperties. load(input Stream); | |
218 | } catch (IOExcepti on e) { | |
219 | LOGG ER.error(" Failed loa d appconfi g properti es: " + e. getLocaliz edMessage( )); | |
220 | thro w new Runt imeExcepti on(e); | |
221 | } finall y { | |
222 | try { | |
223 | inputStrea m.close(); | |
224 | } ca tch (IOExc eption e) { | |
225 | LOGGER.err or(e.getMe ssage()); | |
226 | } | |
227 | } | |
228 | ||
229 | } catch (Fil eNotFoundE xception e ) { | |
230 | LOGGER.i nfo("Faile d to load appconfig from file (vistadata service.pr operties) -" | |
231 | + " utiliz ing defaul t appconfi g properti es."); | |
232 | ||
233 | } | |
234 | } | |
235 | ||
236 | public static fi nal AppCon fig getIns tance() { | |
237 | re turn INSTA NCE; | |
238 | } | |
239 | ||
240 | public final Str ing getPro tocolRPC() { | |
241 | re turn PROTO COL_RPC; | |
242 | } | |
243 | ||
244 | public final Str ing getPro tocolCache () { | |
245 | re turn PROTO COL_CACHE; | |
246 | } | |
247 | ||
248 | public final Str ing getAge ncyVA() { | |
249 | re turn appPr operties.g etProperty (AGENCY_VA ); | |
250 | } | |
251 | ||
252 | public final Str ing getAge ncyDOD() { | |
253 | re turn appPr operties.g etProperty (AGENCY_DO D); | |
254 | } | |
255 | ||
256 | public final Str ing getLog 4jProperti es() { | |
257 | re turn appPr operties.g etProperty (LOG4J_PRO PS); | |
258 | } | |
259 | ||
260 | public final Str ing getApp Environmen t() { | |
261 | re turn appPr operties.g etProperty (APP_ENVIR ONMENT); | |
262 | } | |
263 | ||
264 | public final Str ing getApp Version() { | |
265 | re turn appPr operties.g etProperty (APP_VERSI ON); | |
266 | } | |
267 | ||
268 | public final Str ing getNon BseSecurit yPhrase() { | |
269 | re turn appPr operties.g etProperty (NON_BSE_S ECURITY_PH RASE); | |
270 | } | |
271 | ||
272 | public final Str ing getBse TokenPhras e(){ | |
273 | re turn Encry ptUtil.dec rypt(appPr operties.g etProperty (BSE_TOKEN _PHRASE)); | |
274 | } | |
275 | ||
276 | public final int getConnec tionTimeou tMs() { | |
277 | re turn Integ er.parseIn t(appPrope rties.getP roperty(CO NNECTION_T IMEOUT_MS) ); | |
278 | } | |
279 | ||
280 | public final int getReques tTimeoutMs () { | |
281 | re turn Integ er.parseIn t(appPrope rties.getP roperty(RE QUEST_TIME OUT_MS)); | |
282 | } | |
283 | ||
284 | public final Str ing getVLE R_DQ_URL() { | |
285 | re turn appPr operties.g etProperty (VLER_DQ_U RL); | |
286 | } | |
287 | ||
288 | public final Str ing getVLE R_DR_URL() { | |
289 | re turn appPr operties.g etProperty (VLER_DR_U RL); | |
290 | } | |
291 | ||
292 | public final Str ing getVLE R_DAS_URL( ) { | |
293 | re turn Encry ptUtil.dec rypt(appPr operties.g etProperty (VLER_DAS_ URL)); | |
294 | } | |
295 | ||
296 | public final Str ing getVLE R_DQ_START _DATE_YEAR () { | |
297 | re turn appPr operties.g etProperty (VLER_DQ_S TART_DATE_ YEAR, ""); | |
298 | } | |
299 | ||
300 | public final Str ing getVLE R_DQ_END_D ATE_YEAR_O FFSET() { | |
301 | re turn appPr operties.g etProperty (VLER_DQ_E ND_DATE_YE AR_OFFSET, ""); | |
302 | } | |
303 | ||
304 | public final Str ing getVLE R_DAS_CALL BACK() { | |
305 | re turn appPr operties.g etProperty (VLER_DAS_ CALLBACK); | |
306 | } | |
307 | ||
308 | public final Str ing getVLE R_DAS_EMPT Y_NARRATIV ES() { | |
309 | re turn appPr operties.g etProperty (VLER_DAS_ EMPTY_NARR ATIVES, "< text></tex t>,<text/> "); | |
310 | } | |
311 | public final Str ing getEvi xStudyquer yUrl() { r eturn Encr yptUtil.de crypt(appP roperties. getPropert y(EVIX_STU DYQUERY_UR L));} | |
312 | ||
313 | public final Str ing getEvi xVixEndpoi nt() { ret urn Encryp tUtil.decr ypt(appPro perties.ge tProperty( EVIX_VIX_E NDPOINT)); } | |
314 | ||
315 | public final boo lean isVix Validation Bypass(){ | |
316 | re turn Boole an.valueOf (appProper ties.getPr operty(EVI X_VALIDATI ON_BYPASS, "false")) ; | |
317 | } | |
318 | ||
319 | public final int getEvixRe questTimeo ut() { | |
320 | re turn Integ er.parseIn t(appPrope rties.getP roperty(EV IX_REQUEST _TIMEOUT)) ; | |
321 | } | |
322 | ||
323 | public final int getEvixCo nnectionTi meout() { | |
324 | re turn Integ er.parseIn t(appPrope rties.getP roperty(EV IX_CONNECT ION_TIMEOU T)); | |
325 | } | |
326 | ||
327 | public final Str ing getDat aSource() { | |
328 | re turn Encry ptUtil.dec rypt(appPr operties.g etProperty (DATASOURC E)); | |
329 | } | |
330 | ||
331 | public int getRe stConnecti onTimeoutM S() { | |
332 | re turn Integ er.parseIn t(appPrope rties.getP roperty(RE ST_CONNECT ION_TIMEOU T_MS)); | |
333 | } | |
334 | ||
335 | public int getRe stReadTime outMS() { | |
336 | re turn Integ er.parseIn t(appPrope rties.getP roperty(RE ST_READ_TI MEOUT_MS)) ; | |
337 | } | |
338 | ||
339 | public int getMA X_DATA() { | |
340 | re turn MAX_D ATA; | |
341 | } | |
342 | ||
343 | public int getEX PECTED_BUF FER_DATA() { | |
344 | re turn EXPEC TED_BUFFER _DATA; | |
345 | } | |
346 | ||
347 | public Propertie s getPrope rties() { | |
348 | re turn appPr operties; | |
349 | } | |
350 | ||
351 | public final boo lean enabl eDASCommun itySummari es(){ | |
352 | re turn Boole an.valueOf (appProper ties.getPr operty(DAS _ENABLE_CO MMUNITY_SU MMARIES)); | |
353 | } | |
354 | ||
355 | public final boo lean disab leDASSSLVe rify(){ | |
356 | re turn Boole an.valueOf (appProper ties.getPr operty(DAS _DISABLE_S SL_VERIFIC ATION, "fa lse")); | |
357 | } | |
358 | ||
359 | public final Str ing getDas TestPat() {return ap pPropertie s.getPrope rty(DAS_TE ST_PAT, "" ); } | |
360 | ||
361 | // publ ic final S tring getV LER_PD_URL () | |
362 | // { | |
363 | // return app Properties .getProper ty(VLER_PD _URL); | |
364 | // } | |
365 | // | |
366 | // publ ic final S tring getV LER_PA_URL () | |
367 | // { | |
368 | // return app Properties .getProper ty(VLER_PA _URL); | |
369 | // } | |
370 | ||
371 | public final boo lean disab leCachedTh readPool() { | |
372 | re turn Boole an.valueOf (appProper ties.getPr operty(DIS ABLE_CACHE D_THREAD_P OOL)); | |
373 | } | |
374 | ||
375 | public final bo olean disa bleSingleP arsePool() { | |
376 | re turn Boole an.valueOf (appProper ties.getPr operty(DIS ABLE_SINGL E_PARSE_TH READ_POOL) ); | |
377 | } | |
378 | ||
379 | public final bo olean useC onnectionC achedThrea dPoolMaxSi ze() { | |
380 | re turn Boole an.valueOf (appProper ties.getPr operty(RPC _CONNECTIO N_THREAD_U SE_MAX_CAC HED_POOL_S IZE)); | |
381 | } | |
382 | ||
383 | public final bo olean useP arseCached ThreadPool MaxSize () { | |
384 | re turn Boole an.valueOf (appProper ties.getPr operty(PAR SER_THREAD _USE_MAX_C ACHED_POOL _SIZE)); | |
385 | } | |
386 | ||
387 | public final int getRPCCon nectionMax ThreadPool Size() { | |
388 | in t rtn; | |
389 | tr y { | |
390 | rtn = In teger.pars eInt(appPr operties.g etProperty (RPC_CONNE CTION_THRE AD_MAX_POO L_SIZE)); | |
391 | } catch (Num berFormatE xception n fe) { | |
392 | rtn = RP C_CONNECTI ON_THREAD_ MAX_POOL_S IZE_DEFAUL T; | |
393 | } | |
394 | re turn rtn; | |
395 | } | |
396 | ||
397 | public final int getRPCCon nectionThr eadBlockin gQueueSize () { | |
398 | in t rtn; | |
399 | tr y { | |
400 | rtn = In teger.pars eInt(appPr operties.g etProperty (RPC_CONNE CTION_THRE AD_BLOCKIN G_QUEUE_SI ZE)); | |
401 | } catch (Num berFormatE xception n fe) { | |
402 | rtn = RP C_CONNECTI ON_THREAD_ BLOCKING_Q UEUE_SIZE_ DEFAULT; | |
403 | } | |
404 | re turn rtn; | |
405 | } | |
406 | ||
407 | public final int getRPCCon nectionThr eadTimeout Seconds() { | |
408 | in t rtn; | |
409 | tr y { | |
410 | rtn = In teger.pars eInt(appPr operties.g etProperty (RPC_CONNE CTION_THRE AD_TIMEOUT _SECONDS)) ; | |
411 | } catch (Num berFormatE xception n fe) { | |
412 | rtn = TH READ_TIMEO UT_SECONDS _DEFAULT; | |
413 | } | |
414 | re turn rtn; | |
415 | } | |
416 | ||
417 | public final int getParser MaxThreadP oolSize() { | |
418 | in t rtn; | |
419 | tr y { | |
420 | rtn = In teger.pars eInt(appPr operties.g etProperty (PARSER_TH READ_MAX_P OOL_SIZE)) ; | |
421 | } catch (Num berFormatE xception n fe) { | |
422 | rtn = PA RSER_THREA D_MAX_POOL _SIZE_DEFA ULT; | |
423 | } | |
424 | re turn rtn; | |
425 | } | |
426 | ||
427 | public final int getParser ThreadBloc kingQueueS ize() { | |
428 | in t rtn; | |
429 | tr y { | |
430 | rtn = In teger.pars eInt(appPr operties.g etProperty (PARSER_TH READ_BLOCK ING_QUEUE_ SIZE)); | |
431 | } catch (Num berFormatE xception n fe) { | |
432 | rtn = PA RSER_THREA D_BLOCKING _QUEUE_SIZ E_DEFAULT; | |
433 | } | |
434 | re turn rtn; | |
435 | } | |
436 | ||
437 | public final int getParser ThreadTime outSeconds () { | |
438 | in t rtn; | |
439 | tr y { | |
440 | rtn = In teger.pars eInt(appPr operties.g etProperty (PARSER_TH READ_TIMEO UT_SECONDS )); | |
441 | } catch (Num berFormatE xception n fe) { | |
442 | rtn = TH READ_TIMEO UT_SECONDS _DEFAULT; | |
443 | } | |
444 | re turn rtn; | |
445 | } | |
446 | ||
447 | public final int getRpcCor eThreadPoo lSize() { | |
448 | in t rtn; | |
449 | tr y { | |
450 | rtn = In teger.pars eInt(appPr operties.g etProperty (RPC_CONNE CTION_THRE AD_CORE_PO OL_SIZE)); | |
451 | } catch (Num berFormatE xception n fe) { | |
452 | rtn = RP C_CONNECTI ON_THREAD_ CORE_POOL_ SIZE_DEFAU LT; | |
453 | } | |
454 | re turn rtn; | |
455 | } | |
456 | ||
457 | public final int getRpcThr eadPoolKee pAliveSeco nds() { | |
458 | in t rtn; | |
459 | tr y { | |
460 | rtn = In teger.pars eInt(appPr operties.g etProperty (RPC_CONNE CTION_THRE AD_POOL_KE EP_ALIVE_S ECONDS)); | |
461 | } catch (Num berFormatE xception n fe) { | |
462 | rtn = TH READ_KEEPA LIVE_SECON DS_DEFAULT ; | |
463 | } | |
464 | re turn rtn; | |
465 | } | |
466 | ||
467 | public final int getParser CoreThread PoolSize() { | |
468 | in t rtn; | |
469 | tr y { | |
470 | rtn = In teger.pars eInt(appPr operties.g etProperty (PARSER_TH READ_CORE_ POOL_SIZE) ); | |
471 | } catch (Num berFormatE xception n fe) { | |
472 | rtn = PA RSER_THREA D_CORE_POO L_SIZE_DEF AULT; | |
473 | } | |
474 | re turn rtn; | |
475 | } | |
476 | ||
477 | public final int getParser ThreadPool KeepAliveS econds() { | |
478 | in t rtn; | |
479 | tr y { | |
480 | rtn = In teger.pars eInt(appPr operties.g etProperty (PARSER_TH READ_POOL_ KEEP_ALIVE _SECONDS)) ; | |
481 | } catch (Num berFormatE xception n fe) { | |
482 | rtn = TH READ_KEEPA LIVE_SECON DS_DEFAULT ; | |
483 | } | |
484 | re turn rtn; | |
485 | } | |
486 | ||
487 | public final int getParser CoreThread PoolSizeEn counters() { | |
488 | in t rtn; | |
489 | tr y { | |
490 | rtn = In teger.pars eInt(appPr operties.g etProperty (PARSER_TH READ_CORE_ POOL_SIZE_ ENCOUNTERS )); | |
491 | } catch (Num berFormatE xception n fe) { | |
492 | rtn = ge tParserCor eThreadPoo lSize(); | |
493 | } | |
494 | re turn rtn; | |
495 | } | |
496 | ||
497 | public final int getParser MaxThreadP oolSizeEnc ounters() { | |
498 | in t rtn; | |
499 | tr y { | |
500 | rtn = In teger.pars eInt(appPr operties.g etProperty (PARSER_TH READ_MAX_P OOL_SIZE_E NCOUNTERS) ); | |
501 | } catch (Num berFormatE xception n fe) { | |
502 | rtn = ge tParserMax ThreadPool Size(); | |
503 | } | |
504 | re turn rtn; | |
505 | } | |
506 | ||
507 | public final int getParser ThreadBloc kingQueueS izeEncount ers() { | |
508 | in t rtn; | |
509 | tr y { | |
510 | rtn = In teger.pars eInt(appPr operties.g etProperty (PARSER_TH READ_BLOCK ING_QUEUE_ SIZE_ENCOU NTERS)); | |
511 | } catch (Num berFormatE xception n fe) { | |
512 | rtn = ge tParserThr eadBlockin gQueueSize (); | |
513 | } | |
514 | re turn rtn; | |
515 | } | |
516 | ||
517 | public final int getParser CoreThread PoolSizeLa bs() { | |
518 | in t rtn; | |
519 | tr y { | |
520 | rtn = In teger.pars eInt(appPr operties.g etProperty (PARSER_TH READ_CORE_ POOL_SIZE_ LABS)); | |
521 | } catch (Num berFormatE xception n fe) { | |
522 | rtn = ge tParserCor eThreadPoo lSize(); | |
523 | } | |
524 | re turn rtn; | |
525 | } | |
526 | ||
527 | public final int getParser MaxThreadP oolSizeLab s() { | |
528 | in t rtn; | |
529 | tr y { | |
530 | rtn = In teger.pars eInt(appPr operties.g etProperty (PARSER_TH READ_MAX_P OOL_SIZE_L ABS)); | |
531 | } catch (Num berFormatE xception n fe) { | |
532 | rtn = ge tParserMax ThreadPool Size(); | |
533 | } | |
534 | re turn rtn; | |
535 | } | |
536 | ||
537 | public final int getParser ThreadBloc kingQueueS izeLabs() { | |
538 | in t rtn; | |
539 | tr y { | |
540 | rtn = In teger.pars eInt(appPr operties.g etProperty (PARSER_TH READ_BLOCK ING_QUEUE_ SIZE_LABS) ); | |
541 | } catch (Num berFormatE xception n fe) { | |
542 | rtn = ge tParserThr eadBlockin gQueueSize (); | |
543 | } | |
544 | re turn rtn; | |
545 | } | |
546 | ||
547 | public final int getParser CoreThread PoolSizeNo tes() { | |
548 | in t rtn; | |
549 | tr y { | |
550 | rtn = In teger.pars eInt(appPr operties.g etProperty (PARSER_TH READ_CORE_ POOL_SIZE_ NOTES)); | |
551 | } catch (Num berFormatE xception n fe) { | |
552 | rtn = ge tParserCor eThreadPoo lSize(); | |
553 | } | |
554 | re turn rtn; | |
555 | } | |
556 | ||
557 | public final int getParser MaxThreadP oolSizeNot es() { | |
558 | in t rtn; | |
559 | tr y { | |
560 | rtn = In teger.pars eInt(appPr operties.g etProperty (PARSER_TH READ_MAX_P OOL_SIZE_N OTES)); | |
561 | } catch (Num berFormatE xception n fe) { | |
562 | rtn = ge tParserMax ThreadPool Size(); | |
563 | } | |
564 | re turn rtn; | |
565 | } | |
566 | ||
567 | public final int getParser ThreadBloc kingQueueS izeNotes() { | |
568 | in t rtn; | |
569 | tr y { | |
570 | rtn = In teger.pars eInt(appPr operties.g etProperty (PARSER_TH READ_BLOCK ING_QUEUE_ SIZE_NOTES )); | |
571 | } catch (Num berFormatE xception n fe) { | |
572 | rtn = ge tParserThr eadBlockin gQueueSize (); | |
573 | } | |
574 | re turn rtn; | |
575 | } | |
576 | ||
577 | public final int getParser CoreThread PoolSizeOr ders() { | |
578 | in t rtn; | |
579 | tr y { | |
580 | rtn = In teger.pars eInt(appPr operties.g etProperty (PARSER_TH READ_CORE_ POOL_SIZE_ ORDERS)); | |
581 | } catch (Num berFormatE xception n fe) { | |
582 | rtn = ge tParserCor eThreadPoo lSize(); | |
583 | } | |
584 | re turn rtn; | |
585 | } | |
586 | ||
587 | public final int getParser MaxThreadP oolSizeOrd ers() { | |
588 | in t rtn; | |
589 | tr y { | |
590 | rtn = In teger.pars eInt(appPr operties.g etProperty (PARSER_TH READ_MAX_P OOL_SIZE_O RDERS)); | |
591 | } catch (Num berFormatE xception n fe) { | |
592 | rtn = ge tParserMax ThreadPool Size(); | |
593 | } | |
594 | re turn rtn; | |
595 | } | |
596 | ||
597 | public final int getParser ThreadBloc kingQueueS izeOrders( ) { | |
598 | in t rtn; | |
599 | tr y { | |
600 | rtn = In teger.pars eInt(appPr operties.g etProperty (PARSER_TH READ_BLOCK ING_QUEUE_ SIZE_ORDER S)); | |
601 | } catch (Num berFormatE xception n fe) { | |
602 | rtn = ge tParserThr eadBlockin gQueueSize (); | |
603 | } | |
604 | re turn rtn; | |
605 | } | |
606 | ||
607 | public final int getParser CoreThread PoolSizeMe ds() { | |
608 | in t rtn; | |
609 | tr y { | |
610 | rtn = In teger.pars eInt(appPr operties.g etProperty (PARSER_TH READ_CORE_ POOL_SIZE_ MEDS)); | |
611 | } catch (Num berFormatE xception n fe) { | |
612 | rtn = ge tParserCor eThreadPoo lSize(); | |
613 | } | |
614 | re turn rtn; | |
615 | } | |
616 | ||
617 | public final int getParser MaxThreadP oolSizeMed s() { | |
618 | in t rtn; | |
619 | tr y { | |
620 | rtn = In teger.pars eInt(appPr operties.g etProperty (PARSER_TH READ_MAX_P OOL_SIZE_M EDS)); | |
621 | } catch (Num berFormatE xception n fe) { | |
622 | rtn = ge tParserMax ThreadPool Size(); | |
623 | } | |
624 | re turn rtn; | |
625 | } | |
626 | ||
627 | public final int getParser ThreadBloc kingQueueS izeMeds() { | |
628 | in t rtn; | |
629 | tr y { | |
630 | rtn = In teger.pars eInt(appPr operties.g etProperty (PARSER_TH READ_BLOCK ING_QUEUE_ SIZE_MEDS) ); | |
631 | } catch (Num berFormatE xception n fe) { | |
632 | rtn = ge tParserThr eadBlockin gQueueSize (); | |
633 | } | |
634 | re turn rtn; | |
635 | } | |
636 | ||
637 | // tru e for runn ing enhanc ed debug c ode | |
638 | public final boo lean useEn hancedDebu g() { | |
639 | re turn Boole an.valueOf (appProper ties.getPr operty(USE _ENHANCED_ DEBUG)); | |
640 | } | |
641 | ||
642 | // tru e for runn ing enhanc ed debug c ode | |
643 | public final boo lean bseTo kenEnabled () { | |
644 | re turn Boole an.valueOf (appProper ties.getPr operty(BSE _TOKEN_ENA BLED)); | |
645 | } | |
646 | ||
647 | public static fi nal byte[] getEmptyB ytes(){ | |
648 | re turn new b yte[16]; | |
649 | } | |
650 | ||
651 | public final byt e[] getEnc ryptionKey () { | |
652 | if (!StringU tils.isEmp ty(appProp erties.get Property(E NCRYPTION_ KEY_ARRAY) )) { | |
653 | return U tils.parse ByteArray1 6(appPrope rties.getP roperty(EN CRYPTION_K EY_ARRAY)) ; | |
654 | } else { | |
655 | return g etEmptyByt es(); | |
656 | } | |
657 | } | |
658 | ||
659 | public final int getParser BatchSizeO rders() { | |
660 | in t rtn; | |
661 | tr y { | |
662 | rtn = In teger.pars eInt(appPr operties.g etProperty (PARSER_BA TCH_SIZE_O RDERS)); | |
663 | } catch (Num berFormatE xception n fe) { | |
664 | try { | |
665 | rtn = Integer. parseInt(a ppProperti es.getProp erty(PARSE R_BATCH_SI ZE_ORDERS) ); | |
666 | } catch (NumberFor matExcepti on nfe2) { | |
667 | rtn = PARSER_B ATCH_SIZE_ DEFAULT; | |
668 | } | |
669 | } | |
670 | re turn rtn; | |
671 | } | |
672 | ||
673 | public final int getParser BatchSizeN otes() { | |
674 | in t rtn; | |
675 | tr y { | |
676 | rtn = In teger.pars eInt(appPr operties.g etProperty (PARSER_BA TCH_SIZE_N OTES)); | |
677 | } catch (Num berFormatE xception n fe) { | |
678 | try { | |
679 | rtn = Integer. parseInt(a ppProperti es.getProp erty(PARSE R_BATCH_SI ZE_NOTES)) ; | |
680 | } catch (NumberFor matExcepti on nfe2) { | |
681 | rtn = PARSER_B ATCH_SIZE_ DEFAULT; | |
682 | } | |
683 | } | |
684 | re turn rtn; | |
685 | } | |
686 | ||
687 | public final int getParser BatchSizeA ppointment s() { | |
688 | in t rtn; | |
689 | tr y { | |
690 | rtn = In teger.pars eInt(appPr operties.g etProperty (PARSER_BA TCH_SIZE_A PPOINTMENT S)); | |
691 | } catch (Num berFormatE xception n fe) { | |
692 | try { | |
693 | rtn = Integer. parseInt(a ppProperti es.getProp erty(PARSE R_BATCH_SI ZE_APPOINT MENTS)); | |
694 | } catch (NumberFor matExcepti on nfe2) { | |
695 | rtn = PARSER_B ATCH_SIZE_ DEFAULT; | |
696 | } | |
697 | } | |
698 | re turn rtn; | |
699 | } | |
700 | ||
701 | public final int getParser BatchSizeE ncounters( ) { | |
702 | in t rtn; | |
703 | tr y { | |
704 | rtn = In teger.pars eInt(appPr operties.g etProperty (PARSER_BA TCH_SIZE_E NCOUNTERS) ); | |
705 | } catch (Num berFormatE xception n fe) { | |
706 | try { | |
707 | rtn = Integer. parseInt(a ppProperti es.getProp erty(PARSE R_BATCH_SI ZE_ENCOUNT ERS)); | |
708 | } catch (NumberFor matExcepti on nfe2) { | |
709 | rtn = PARSER_B ATCH_SIZE_ DEFAULT; | |
710 | } | |
711 | } | |
712 | re turn rtn; | |
713 | } | |
714 | ||
715 | public final int getParser BatchSizeA llergies() { | |
716 | in t rtn; | |
717 | tr y { | |
718 | rtn = In teger.pars eInt(appPr operties.g etProperty (PARSER_BA TCH_SIZE_A LLERGIES)) ; | |
719 | } catch (Num berFormatE xception n fe) { | |
720 | try { | |
721 | rtn = Integer. parseInt(a ppProperti es.getProp erty(PARSE R_BATCH_SI ZE_ALLERGI ES)); | |
722 | } catch (NumberFor matExcepti on nfe2) { | |
723 | rtn = PARSER_B ATCH_SIZE_ DEFAULT; | |
724 | } | |
725 | } | |
726 | re turn rtn; | |
727 | } | |
728 | ||
729 | public final int getParser BatchSizeR eminders() { | |
730 | in t rtn; | |
731 | tr y { | |
732 | rtn = In teger.pars eInt(appPr operties.g etProperty (PARSER_BA TCH_SIZE_R EMINDERS)) ; | |
733 | } catch (Num berFormatE xception n fe) { | |
734 | try { | |
735 | rtn = Integer. parseInt(a ppProperti es.getProp erty(PARSE R_BATCH_SI ZE_REMINDE RS)); | |
736 | } catch (NumberFor matExcepti on nfe2) { | |
737 | rtn = PARSER_B ATCH_SIZE_ DEFAULT; | |
738 | } | |
739 | } | |
740 | re turn rtn; | |
741 | } | |
742 | ||
743 | public final int getParser BatchSizeI mmunizatio ns() { | |
744 | in t rtn; | |
745 | tr y { | |
746 | rtn = In teger.pars eInt(appPr operties.g etProperty (PARSER_BA TCH_SIZE_I MMUNIZATIO NS)); | |
747 | } catch (Num berFormatE xception n fe) { | |
748 | try { | |
749 | rtn = Integer. parseInt(a ppProperti es.getProp erty(PARSE R_BATCH_SI ZE_IMMUNIZ ATIONS)); | |
750 | } catch (NumberFor matExcepti on nfe2) { | |
751 | rtn = PARSER_B ATCH_SIZE_ DEFAULT; | |
752 | } | |
753 | } | |
754 | re turn rtn; | |
755 | } | |
756 | ||
757 | public final int getParser BatchSizeI nsurance() { | |
758 | in t rtn; | |
759 | tr y { | |
760 | rtn = In teger.pars eInt(appPr operties.g etProperty (PARSER_BA TCH_SIZE_I NSURANCE)) ; | |
761 | } catch (Num berFormatE xception n fe) { | |
762 | try { | |
763 | rtn = Integer. parseInt(a ppProperti es.getProp erty(PARSE R_BATCH_SI ZE_INSURAN CE)); | |
764 | } catch (NumberFor matExcepti on nfe2) { | |
765 | rtn = PARSER_B ATCH_SIZE_ DEFAULT; | |
766 | } | |
767 | } | |
768 | re turn rtn; | |
769 | } | |
770 | ||
771 | public final int getParser BatchSizeL abPanels() { | |
772 | in t rtn; | |
773 | tr y { | |
774 | rtn = In teger.pars eInt(appPr operties.g etProperty (PARSER_BA TCH_SIZE_L AB_PANELS) ); | |
775 | } catch (Num berFormatE xception n fe) { | |
776 | try { | |
777 | rtn = Integer. parseInt(a ppProperti es.getProp erty(PARSE R_BATCH_SI ZE_LAB_PAN ELS)); | |
778 | } catch (NumberFor matExcepti on nfe2) { | |
779 | rtn = PARSER_B ATCH_SIZE_ DEFAULT; | |
780 | } | |
781 | } | |
782 | re turn rtn; | |
783 | } | |
784 | ||
785 | public final int getParser BatchSizeL abAccessio ns() { | |
786 | in t rtn; | |
787 | tr y { | |
788 | rtn = In teger.pars eInt(appPr operties.g etProperty (PARSER_BA TCH_SIZE_L AB_ACCESSI ONS)); | |
789 | } catch (Num berFormatE xception n fe) { | |
790 | try { | |
791 | rtn = Integer. parseInt(a ppProperti es.getProp erty(PARSE R_BATCH_SI ZE_LAB_ACC ESSIONS)); | |
792 | } catch (NumberFor matExcepti on nfe2) { | |
793 | rtn = PARSER_B ATCH_SIZE_ DEFAULT; | |
794 | } | |
795 | } | |
796 | re turn rtn; | |
797 | } | |
798 | ||
799 | public final int getParser BatchSizeM edications () { | |
800 | in t rtn; | |
801 | tr y { | |
802 | rtn = In teger.pars eInt(appPr operties.g etProperty (PARSER_BA TCH_SIZE_M EDICATIONS )); | |
803 | } catch (Num berFormatE xception n fe) { | |
804 | try { | |
805 | rtn = Integer. parseInt(a ppProperti es.getProp erty(PARSE R_BATCH_SI ZE_MEDICAT IONS)); | |
806 | } catch (NumberFor matExcepti on nfe2) { | |
807 | rtn = PARSER_B ATCH_SIZE_ DEFAULT; | |
808 | } | |
809 | } | |
810 | re turn rtn; | |
811 | } | |
812 | ||
813 | public final int getParser BatchSizeP atientFlag s() { | |
814 | in t rtn; | |
815 | tr y { | |
816 | rtn = In teger.pars eInt(appPr operties.g etProperty (PARSER_BA TCH_SIZE_P ATIENT_FLA GS)); | |
817 | } catch (Num berFormatE xception n fe) { | |
818 | try { | |
819 | rtn = Integer. parseInt(a ppProperti es.getProp erty(PARSE R_BATCH_SI ZE_PATIENT _FLAGS)); | |
820 | } catch (NumberFor matExcepti on nfe2) { | |
821 | rtn = PARSER_B ATCH_SIZE_ DEFAULT; | |
822 | } | |
823 | } | |
824 | re turn rtn; | |
825 | } | |
826 | ||
827 | public final int getParser BatchSizeP CE() { | |
828 | in t rtn; | |
829 | tr y { | |
830 | rtn = In teger.pars eInt(appPr operties.g etProperty (PARSER_BA TCH_SIZE_P CE)); | |
831 | } catch (Num berFormatE xception n fe) { | |
832 | try { | |
833 | rtn = Integer. parseInt(a ppProperti es.getProp erty(PARSE R_BATCH_SI ZE_PCE)); | |
834 | } catch (NumberFor matExcepti on nfe2) { | |
835 | rtn = PARSER_B ATCH_SIZE_ DEFAULT; | |
836 | } | |
837 | } | |
838 | re turn rtn; | |
839 | } | |
840 | ||
841 | public final int getParser BatchSizeR adiology() { | |
842 | in t rtn; | |
843 | tr y { | |
844 | rtn = In teger.pars eInt(appPr operties.g etProperty (PARSER_BA TCH_SIZE_R ADIOLOGY)) ; | |
845 | } catch (Num berFormatE xception n fe) { | |
846 | try { | |
847 | rtn = Integer. parseInt(a ppProperti es.getProp erty(PARSE R_BATCH_SI ZE_RADIOLO GY)); | |
848 | } catch (NumberFor matExcepti on nfe2) { | |
849 | rtn = PARSER_B ATCH_SIZE_ DEFAULT; | |
850 | } | |
851 | } | |
852 | re turn rtn; | |
853 | } | |
854 | ||
855 | public final int getParser BatchSizeV itals() { | |
856 | in t rtn; | |
857 | tr y { | |
858 | rtn = In teger.pars eInt(appPr operties.g etProperty (PARSER_BA TCH_SIZE_V ITALS)); | |
859 | } catch (Num berFormatE xception n fe) { | |
860 | try { | |
861 | rtn = Integer. parseInt(a ppProperti es.getProp erty(PARSE R_BATCH_SI ZE_VITALS) ); | |
862 | } catch (NumberFor matExcepti on nfe2) { | |
863 | rtn = PARSER_B ATCH_SIZE_ DEFAULT; | |
864 | } | |
865 | } | |
866 | re turn rtn; | |
867 | } | |
868 | ||
869 | public final Set <String> g etClinical ReminderNa meSetUpper Case() { | |
870 | Ha shSet<Stri ng> rtn = new HashSe t<>(); | |
871 | ||
872 | tr y { | |
873 | String[] namesArra y = String Utils.spli t(appPrope rties.getP roperty(HS _ADHOC_CLI NICAL_REMI NDER_LIST) , StringUt ils.CARET) ; | |
874 | ||
875 | for (Str ing name : namesArra y) { | |
876 | rtn. add(name.t rim().toUp perCase()) ; | |
877 | } | |
878 | } catch (Ill egalArgume ntExceptio n | NullPo interExcep tion e) { | |
879 | LOGGER.e rror("Prob lem gettin g VistA Cl inical Rem inder list from conf ig file: " + e.getMe ssage()); | |
880 | } | |
881 | ||
882 | re turn rtn; | |
883 | } | |
884 | ||
885 | public final Set <String> g etAdvanceD irectiveTi tleSetUppe rCase() { | |
886 | Ha shSet<Stri ng> rtn = new HashSe t<>(); | |
887 | ||
888 | tr y { | |
889 | String[] namesArra y = String Utils.spli t(appPrope rties.getP roperty(AD VANCE_DIRE CTIVES_LIS T), String Utils.CARE T); | |
890 | ||
891 | for (Str ing name : namesArra y) { | |
892 | rtn. add(name.t rim().toUp perCase()) ; | |
893 | } | |
894 | } catch (Ill egalArgume ntExceptio n | NullPo interExcep tion e) { | |
895 | LOGGER.e rror("Prob lem gettin g VistA Ad vance Dire ctive titl e list fro m config f ile: " + e .getMessag e()); | |
896 | } | |
897 | ||
898 | re turn rtn; | |
899 | } | |
900 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.