Class ExtractTrvShrStats

java.lang.Object
com.orchestranetworks.cli.ExtractTrvShrStats

public final class ExtractTrvShrStats extends Object
Utility to extract advanced repository statistics from EBX generic tables.
Since:
6.2.3
  • Method Details

    • main

      public static void main(String[] args)
      Command-line extractor that exports advanced repository statistics from EBX technical tables.

      The tool runs outside the application server (no JNDI) and produces two CSV files.

      Usage

       java -Debx.properties=C:/path/to/ebx.properties -Debx.home=/path/to/ebx.home
            -cp "/path/to/ebx.jar:/path/to/lib/*"
            com.orchestranetworks.cli.ExtractTrvShrStats
       

      Classpath note: Ensure EBX runtime dependencies are available under lib/*.

      System properties

      • ebx.properties — path to the EBX properties file containing the database connection information and configuration (required).
      • ebx.home — base directory of the EBX installation; used as default output location if ebx.stats.directory is not specified (required).

      Configuration keys (read from ebx.properties)

      • ebx.stats.directory — output directory (default: ${ebx.home})
      • ebx.stats.details.filename — TRV details CSV name (default: TRV_DETAILS.csv)
      • ebx.stats.tlr.filename — consolidated per-TLR CSV name (default: TRV_BY_TLR.csv)
      • ebx.stats.overwrite — overwrite existing files (default: false)

      Logging: messages are written under the existing EBX categories (kernel). To avoid mixing with a live server’s logs, it is recommended that the ebx.home used by this CLI point to a directory different from any running EBX instance.

      Output

      Two CSV files are generated in ebx.stats.directory (or ${ebx.home} if unset): one with detailed statistics per TRV, and one with consolidated statistics per TLR.

      Notes

      • Runs as a CLI utility outside the application server (no JNDI required).
      • Operates in read-only mode; safe to run while EBX is running.
      • Single-instance, not thread-safe.
      • Supported EBX versions: 6.0 → 6.2.2.
      Parameters:
      args - not used