'listener',
'hub-listener',
'client-listener',
- 'node-id',
'node-status',
'tcp-port',
'udp-port',
$this->getStackerInstance()->pushNamed('announcement', 'announcement-data');
}
- /**
- * Starts the node id
- *
- * @return void
- */
- private function startNodeId () {
- // Push the node name on the stacker
- $this->getStackerInstance()->pushNamed('announcement', 'node-id');
- }
-
/**
* Starts the node status
*
$this->getStackerInstance()->popNamed('announcement');
}
- /**
- * Finishes the node id
- *
- * @return void
- */
- private function finishNodeId () {
- // Pop the last entry
- $this->getStackerInstance()->popNamed('announcement');
- }
-
/**
* Finishes the announcement data
*
<announcement>
<!-- Announcement data like, node id, session id and object types. //-->
<announcement-data>
- <!-- Our node id. This should be announced only to upper hubs. //-->
- <node-id>{?node_id?}</node-id>
<!-- Status of this node, see node_status.xml for details. //-->
<node-status>{?node_status?}</node-status>
+ <!-- The session id. This should be announced to all other hubs. //-->
+ <session-id>{?session_id?}</session-id>
<!-- Data from our listeners (e.g. which port) //-->
<listener>
<!-- Listener ports for hub connections //-->
<udp-port>{?node_udp_listen_port?}</udp-port>
</client-listener>
</listener>
- <!-- The session id. This should be announced to all other hubs. //-->
- <session-id>{?session_id?}</session-id>
</announcement-data>
</announcement>
<self-connect>
<!-- Self-connect data, e.g. session/hub id for verification //-->
<self-connect-data>
- <!-- Our node id. This should be announced only to upper hubs. //-->
+ <!-- Our node id. This should be kept private now. //-->
<node-id>{?node_id?}</node-id>
<!-- The session id. This should be announced to all other hubs. //-->
<session-id>{?session_id?}</session-id>