Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > bd5c3d824c3db63ffd9226c15941e6ad > files > 661

mozart-1.4.0-1mdv2010.0.i586.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>2 Monitoring remote Mozart engines</TITLE><LINK href="ozdoc.css" rel="stylesheet" type="text/css"></HEAD><BODY><TABLE align="center" border="0" cellpadding="6" cellspacing="6" class="nav"><TR bgcolor="#DDDDDD"><TD><A href="node1.html#chapter.chapter1">&lt;&lt; Prev</A></TD><TD><A href="index.html">- Up -</A></TD><TD><A href="node3.html#chapter.chapter2">Next &gt;&gt;</A></TD></TR></TABLE><DIV id="chapter.remote"><H1><A name="chapter.remote">2 Monitoring remote Mozart engines</A></H1><P>In <A href="node1.html#chapter.chapter1">Chapter&nbsp;1</A> we have seen how the Distribution Panel can be used to monitor communication to and from its own site. The Distribution Panel can also be used to monitor communication between remote Mozart engines. The communication frame can be opened locally for especially connected remote engines. This is a feature useful in distributed debugging, but must be used with care. Connecting creates extra communication that must be taken into account when viewing the statistics and may alter the behaviour of the application. </P><P>To connect Distribution Panels do the following: </P><DL><DT><CODE>{DistributionPanel<SPAN class="keyword">.</SPAN>server&nbsp;?P}</CODE> </DT><DD><P>This call prepares the DistributionPanel to act as a server able to monitor connected engines. A port is returned and is to be used for such connections. </P></DD><DT><CODE>{DistributionPanel<SPAN class="keyword">.</SPAN>client&nbsp;P}</CODE> </DT><DD><P>If <CODE>P</CODE> is a port created by <CODE>{DistributionPanel<SPAN class="keyword">.</SPAN>server?P}</CODE> this will connect the calling ozengine to the ozengine who created P. </P></DD></DL><P> </P><P>In the Distribution Panel of the server, an asterix (<CODE><SPAN class="keyword">*</SPAN></CODE>) will appear next to the site of connected clients. By right clicking such a site, the communication frame of that client will be opened in a seperate window at the server and the client will be told to start sending information on its communication. When the new window is closed the reports will be stopped. </P></DIV><TABLE align="center" border="0" cellpadding="6" cellspacing="6" class="nav"><TR bgcolor="#DDDDDD"><TD><A href="node1.html#chapter.chapter1">&lt;&lt; Prev</A></TD><TD><A href="index.html">- Up -</A></TD><TD><A href="node3.html#chapter.chapter2">Next &gt;&gt;</A></TD></TR></TABLE><HR><ADDRESS><A href="http://www.sics.se/~erik">Erik&nbsp;Klintskog</A> and&nbsp;<A href="http://www.sics.se/~annan">Anna&nbsp;Neiderud</A><BR><SPAN class="version">Version 1.4.0 (20090610)</SPAN></ADDRESS></BODY></HTML>