52. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 5/1/2018 12:02:04 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.

52.1 Files compared

# Location File Last Modified
1 C:\AraxisMergeCompare\Pri_un\ZIP\JLV_2.6.2.0.3_src\VistaDataService\src\main\java\gov\va\med\vds\common AppConfig.java Thu Mar 29 22:08:32 2018 UTC
2 C:\AraxisMergeCompare\Pri_re\ZIP\JLV_2.6.2.0.3_src\VistaDataService\src\main\java\gov\va\med\vds\common AppConfig.java Tue May 1 13:44:04 2018 UTC

52.2 Comparison summary

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

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

52.4 Active regular expressions

No regular expressions were active.

52.5 Comparison detail

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