Getting Server Information

Your exit can find out the state of the server by using the methods shown here.

Name

Description

getTID

Within business processing agents, returns the transaction ID assigned to this workflow.

isDebug

Returns true if debug tracing is set on.

isQA

Returns true if QA mode is set on.

An agent, XDChanInfoAgent, is available for use in process flows. It returns much of the same information as is returned by the info and other commands issued from the command shell.

In addition to the specific method calls, server information is available in read-only special registers. These are shown on the Register Settings page of the console. Among the registers are:

Name

Description

iwayversion

The version of the server.

iwayhome

The root location where the server is installed.

iwayconfig

The name of the configuration currently running. The console may show the name of the master configuration, but within any configuration, this register is set to the current configuration name.

iwayworkdir

The path to the configuration, through iwayhome.

iway.pid

The detectable process ID of the server.

iway.serverip

The IP address of the server.

iway.serverhost

The host name of the server.

iway.serverfullhost

Fully qualified, host name of the server, extended with the appropriate domain information as needed.

IBSE-port

Port on which SOAP messages are managed.

locale

The encoding in IANA form.

To aid analysis, the thread status was added to the report. A sample report is shown here.

?xml version="1.0" encoding="ISO-8859-1 " ?>
<info>
  <channels>
    <master name="internal" state="active" type="internal" completed="0" failed="0" active="0" available="1">
      <user mean="0.0" variance="0.0" ehrlang="1.0"/>
      <cpu mean="0.0" variance="0.0" ehrlang="1.0"/>
      <threads group="internal">
        <thread name="W.internal.1" state="timed_waiting"/>
      </threads>
    </master>
    <master name="file1" state="active" type="file" completed="0" failed="0" active="1" available="3">
      <user mean="0.0" variance="0.0" ehrlang="1.0"/>
      <cpu mean="0.0" variance="0.0" ehrlang="1.0"/>
      <threads group="file1">
        <thread name="W.file1.1" state="runnable"/>
        <thread name="W.file1.2" state="timed_waiting"/>
        <thread name="W.file1.3" state="timed_waiting"/>
      </threads>
    </master>
    <master name="mqin" state="active" type="mq" completed="0" failed="0" active="0" available="1">
      <user mean="0.0" variance="0.0" ehrlang="1.0"/>
      <cpu mean="0.0" variance="0.0" ehrlang="1.0"/>
      <threads group="mqin">
        <thread name="W.mqin.1" state="runnable"/>
      </threads>
    </master>
  </channels>
  <internalqs>
    <queue name="internal1" size="0"/>
  </internalqs>
</info>

iWay Software