Class CodeUpdater

java.lang.Object
edu.suffolk.litlab.efspserver.ecfcodes.CodeUpdater

public class CodeUpdater extends Object
Updates the Tyler "Codes" for each court in a jurisdiction.

There are 3 main steps to download a code for a Tyler court: 1. calling `getPolicy` (see FilingReviewMDEPort) for a court to get the URLs that the codes are available at. - this URL can change, but tbh doesn't change often. It takes approximately 1 for a call to getPolicy to complete. 2. downloading the codes, which are zip files available at the above URL. - You need the court itself, the table that you are downloading. Currently, we take the input stream and divert it directly to the XMLStream reader, so we don't need to write out to a file. 3. updating the Postgres codes database - this takes the XMLStreamReader, unmarshalls it into a java object, and uses that to populate the code database. Most code for that is in CodeDatabase.

We parallelize this as much as possible, which means steps 1 and 2 are done in batch, and each court / court-table item is done in parallel. Step 3, however, can't seem to be parallelized, due to java issues. See https://github.com/SuffolkLITLab/EfileProxyServer/issues/111

For TX, IL, and MA, it takes ~45 minutes to refresh all of the codes.

  • Field Details

    • ecf4ElemToTableName

      public static final Map<String,String> ecf4ElemToTableName
  • Constructor Details

    • CodeUpdater

      public CodeUpdater(String pathToKeystore, String x509Password)
  • Method Details