Server nodes contain two XML metadata streams: info and schedule. Some stream elements are read-only, while others are writable. They can be obtained using the getMetaData method on the WiretapNodeHandle object for the server node, or using the wiretap_get_metadata command-line tool. They are set using the setMetaData method and wiretap_set_metadata command.
The following table summarizes the purpose of the server node metadata streams
| Metadata Stream | Description |
|---|---|
| info | Basic information relating to server identification, available adapters/plug-ins, job processing activity, and others. |
| schedule | Get or set a schedule indicating when the node is available to process jobs. |
The Server node info metadata stream allows you to retrieve basic server information including its state, available adapters/plug-ins, current job (if any), and so on. Most elements are read-only. The returned metadata is structured as follows:
<info>
<name>hostname</name>
<id>server ID</id>
<state>server state</state>
<currentJobId>job ID/currentJobId>
<perfIndex>performance index</perfIndex>
<description>description</description>
<plugins>
<plugin>
<name>name</name>
<version>version</version>
<description>description</description>
</plugin>
</plugins>
</info>
The following table explains the elements in the info metadata stream:
| Element | Type | Comments |
|---|---|---|
| <info> | complex | Container for the other elements |
| <name> | string | Server name (host name) Read-only. |
| <server ID> | integer | Node ID of the server Read-only. |
| <server state> | string | A token indicating the current activity of the server:
|
| <currentJobId> | integer | The job’s id as assigned by the Backburner Manager. Read-only. |
| <perfIndex> | decimal | A value in the range [0–1] indicating the performance level of the server, relative to the other servers on the same job. A score of 1 indicates this is the best-performing server. Read-only. |
| <description> | string | A short description of the server. Writable. |
| <plugins> <plugin> |
complex | Containers for elements detailing the installed adapters/plug-ins. |
| <name> | string | The adapter/plug-in name, for example:
|
| <version> | string | Adapter/plug-in version number. Read-only. |
| <description> | string | A short description of the adapter/plug-in. Read-only. |
The following use of the wiretap_get_metadata command returns the metadata for a server named slave1 on a host called rossendale:Backburner.
wiretap_get_metadata -h rossendale:Backburner -n slave1 -s info <info> <name>slave1</name> <id>slave1</id> <state>absent</state> <currentJobId>1318676208</currentJobId> <perfIndex>1.0</perfIndex> <description>Burn Node #10</description> <plugins> <plugin> <name>burn</name> <version>2010.1</version> <description>description1</description> </plugin> <plugin> <name>Wire</name> <version>version1</version> <description>description1</description> </plugin> </plugins> </info>
The Server node schedule metadata stream is a writable stream for viewing and setting server availability. The stream is formatted as follows:
<schedule>sun,mon,tue,...,sat</schedule>
The following table explains the elements in the schedule metadata stream:
| Element | Type | Comments |
|---|---|---|
| <schedule> | integer | A comma-separated list, one entry for each day of the week indicating server availability. Each entry is the integer representation of a 24-bit binary value. There is one bit for each hour in the day. When the bit is on, the server is available for that hour. For example:
This element is writable. |
The following use of the wiretap_get_metadata command returns the schedule metadata for a server named slave1 on a host called rossendale:Backburner.
In this example, the server is scheduled for availability between Monday to Friday from 7 p.m to 7 a.m, and all of Saturday. It is unavailable on Sundays. This might be the case for a creative workstation used as a render node after-hours.
wiretap_get_metadata -h rossendale:Backburner -n slave1 -s schedule <schedule>0,16711711,16711711,16711711, 16711711,16711711,16777215</schedule>