Destinations

Destinations for ipp data are described in a database table.

mysql> describe rcDestination;
+--------------+--------------+------+-----+---------+----------------+
| Field        | Type         | Null | Key | Default | Extra          |
+--------------+--------------+------+-----+---------+----------------+
| dest_id      | bigint(20)   | NO   | PRI | NULL    | auto_increment | 
| name         | varchar(64)  | YES  |     | NULL    |                | 
| status_uri   | varchar(255) | YES  |     | NULL    |                | 
| comment      | varchar(255) | YES  |     | NULL    |                | 
| last_fileset | varchar(255) | YES  |     | NULL    |                | 
| state        | varchar(64)  | YES  |     | NULL    |                | 
| prod_id      | bigint(20)   | YES  | MUL | NULL    |                | 
+--------------+--------------+------+-----+---------+----------------+
7 rows in set (0.00 sec)

status_uri is the uri of the status page. The ipp distribution server queries this site to determine whether the destination has successfully downloaded a fileset.

Each destination expresses zero or more interests in data it would like to get. This is described by the table rcInterest

state is either 'enabled' or 'disabled' which controls whether the site is queried for status updates and whether the destination's 'interests' are considered when the system decides which data to bundle.

mysql> describe  rcInterest;
+-----------+-------------+------+-----+---------+----------------+
| Field     | Type        | Null | Key | Default | Extra          |
+-----------+-------------+------+-----+---------+----------------+
| int_id    | bigint(20)  | NO   | PRI | NULL    | auto_increment | 
| dest_id   | bigint(20)  | YES  | MUL | NULL    |                | 
| target_id | bigint(20)  | YES  | MUL | NULL    |                | 
| state     | varchar(64) | YES  |     | NULL    |                | 
+-----------+-------------+------+-----+---------+----------------+
4 rows in set (0.00 sec)