18727. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 9/19/2018 2:22:26 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.

18727.1 Files compared

# Location File Last Modified
1 JLV_2.7_src.zip\VistaDataService\src\main\java\gov\va\med\vds\common AppConfig.java Fri Jul 20 22:32:12 2018 UTC
2 JLV_2.7_src.zip\VistaDataService\src\main\java\gov\va\med\vds\common AppConfig.java Tue Sep 18 19:41:46 2018 UTC

18727.2 Comparison summary

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

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

18727.4 Active regular expressions

No regular expressions were active.

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