Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

For example, when the system.xml file has the following data, the MC2 base port is calculated as 20000 + 220 = 20220.

system.xml
Code Block
languagexmltitlesystem.xml
<?xml version="1.0" encoding="UTF-8"?>
<system version="1.1">
  <servers baseport="20000" server_type="1" starversion="**Eagle Version 13.1**">
...
    <server ignorewsdb="1" name="extractservice" offset="220" type="extractservice"/>

All other endpoints have an offset, which is added to the base port and results in a specific endpoint port number. MC2 initiates a TpeSend listener to process requests from the EagleMLWebService30 endpoint on the MC2 base port (20220 based on the example above).

REST API Calculations 

A REST API to the Eagle MC2 Extract Service is calculated as base port plus an offset of 207. The result is 20427 when using the example above. A REST API for health checks and information about the running instance of MC2 is calculated as port plus an offset of 202. The result is 20422 when using the example above. The information can be accessed at: http://mc2host:20422/actuator

This request returns a JSON document which links to all the other available management/monitoring links. The information can be accessed at http://mc2host:20422/health. This returns a simple health status check. A REST endpoint that reinitializes the rule cache is calculated as base port plus an offset of 206. The result is 20426 when using the example above. The URL is http://xn--http-4b7a//mc2host:20426/services/eagle/v2/commands/reinitrulecache.http://mc2host:20426/services/eagle/v2/commands/reinitrulecache.

...