Skip to main content

XINA Import

Overview

The XINA Import application is a utility for importing XINA API actions as JSON files. This application is distributed as a Java jar file and requires Java 11 or greater to run.

Download

xina_import.jar

log4j2.xml (log configuration file)

Usage

 java -Dlog4j.configurationFile="path to log4j2.xml" \
      -jar "path to xina_import.jar" \
      [additional arguments...]
ArgumentInfoDefault
-host <hostname>the XINA Tunnel host"localhost"
-post <port>the XINA Tunnel port41740
-movejson <path>directory to move JSON files to after importnone (files are not moved)
-movefile <path>directory to move other files to after importnone (files are not moved)
-deljsonif set, permanently delete JSON files after importfalse
-delfileif set, permanently delete other files after importfalse
-dir <path>path to directory containing files to import
-watch <path>path to directory to watch for files to import
-recursiveif true in dir or watch mode, searches directory recursively for JSON filesfalse

XINA Import has three modes of operation:

File List

JSON files can be listed explicitly. They will be imported in the specified order.

 java -Dlog4j.configurationFile="path to log4j2.xml" \
      -jar "path to xina_import.jar" \
      [JSON file path] \
      [JSON file path]...
Directory

If the -dir argument is used, XINA Import will attempt to import all *.json files in the specified directory in alphabetical order. It is recommended to include -movejson or -deljson to track progress, in case the import is interrupted.

 java -Dlog4j.configurationFile="path to log4j2.xml" \
      -jar "path to xina_import.jar" \
      -dir "path to directory" \
      -movejson "path to different directory"
Watch

If the -watch argument is used, XINA Import will attempt to import all *.json files in the specified directory in alphabetical order. Once complete, the directory is watched for any new JSON files, which are imported as they become available. It is required to include -movejson or -deljson, as otherwise files would be continuously re-imported.

 java -Dlog4j.configurationFile="path to log4j2.xml" \
      -jar "path to xina_import.jar" \
      -watch "path to directory" \
      -movejson "path to different directory"