25.01.2015 Views

Managing Ensemble Productions - InterSystems Documentation

Managing Ensemble Productions - InterSystems Documentation

Managing Ensemble Productions - InterSystems Documentation

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

What to Manage<br />

• Mode — The execution mode for the job: Background or Foreground. This is the value you set when defining the host<br />

using the [<strong>Ensemble</strong>] > [<strong>Productions</strong>] configuration display. If you selected the Foreground check box, the Mode field<br />

reads Foreground; otherwise it reads Background.<br />

• Status — Dequeuing, Running, Error, or Quiescent. Most jobs run in less than 1 millisecond, so it is almost impossible<br />

to see an entry on the Jobs page with a Running status, unless it is stuck in an infinite loop of some kind. All jobs<br />

should become Quiescent during production shutdown, and if one does not do so, there may be a problem with it. In<br />

all other cases entries on the Jobs page have a Status value of Dequeuing.<br />

<strong>Ensemble</strong> may terminate a job, in which case its last known status prior to termination appears in the Status column,<br />

and the background color of the row is red. This is called a “dead” job.<br />

• Detail — This string contains information relating to the Status field. If the status of the job is Running, the Detail field<br />

is blank. If the status of the job is Dequeuing or Quiescent, the Detail field lists the following information:<br />

– The current queue name (for public queues such as Ens.Actor)<br />

– The job ID (for private queues associated with specific business hosts).<br />

• Active Message — If there is currently a message from this job, this column displays it.<br />

• State — Dead, Starting, or Alive.<br />

In each row, the background color indicates the job’s status, as follows:<br />

• Blue — A startup job.<br />

• (Neutral) — Jobs that are Dequeuing, Running, or Quiescent.<br />

• Pink — A job that has Error status but is not dead.<br />

• Red — A dead job.<br />

3.10 Working with Messages<br />

All communication that passes between configuration items in <strong>Ensemble</strong> is accomplished using messages. A message has<br />

a header, which is the same for all messages and contains data fields that help route the message through the system. A<br />

message also contains a body, which provides different fields depending on the message contents.<br />

Every message class is one of two types: request or response. There may be request classes that do not have a corresponding<br />

response class defined, but every response is (conceptually) paired with a request. Any request class may be synchronous<br />

(waits for a response) or asynchronous (does not wait) in its implementation. These decisions are made by the class developer<br />

and they are not configurable once the production is complete.<br />

<strong>Ensemble</strong> offers some built-in message classes to handle various types of message content. Other message classes may be<br />

defined by class developers to fulfill a specific production need. Without exception, all instantiated messages have complete<br />

tracking information stored in the <strong>Ensemble</strong> message warehouse, and this information is available at all times to the<br />

<strong>Ensemble</strong> Management Portal pages devoted to messages.<br />

Since messages are the primary “currency” of action and communication within <strong>Ensemble</strong>, there are a large number of<br />

management tasks associated with messages. The following table lists what you can do to work with messages using the<br />

<strong>Ensemble</strong> Management Portal.<br />

Message Task<br />

Filter and view messages in various ways.<br />

Sequence of Portal Commands<br />

Message Browser<br />

36 <strong>Managing</strong> <strong>Ensemble</strong> <strong>Productions</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!