1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
5 <!-- Generated by javadoc (build 1.6.0_0) on Tue Feb 02 14:44:19 CET 2010 -->
10 <META NAME="date" CONTENT="2010-02-02">
12 <LINK REL ="stylesheet" TYPE="text/css" HREF="../../stylesheet.css" TITLE="Style">
14 <SCRIPT type="text/javascript">
15 function windowTitle()
17 if (location.href.indexOf('is-external=true') == -1) {
18 parent.document.title="Cluster";
27 <BODY BGCOLOR="white" onload="windowTitle();">
31 <!-- ========= START OF TOP NAVBAR ======= -->
32 <A NAME="navbar_top"><!-- --></A>
33 <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
34 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
36 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
37 <A NAME="navbar_top_firstrow"><!-- --></A>
38 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
39 <TR ALIGN="center" VALIGN="top">
40 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../and/Mapping/package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
41 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
42 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/Cluster.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
43 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
44 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
45 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
46 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
50 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
56 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
57 <A HREF="../../and/Mapping/Association.html" title="class in and.Mapping"><B>PREV CLASS</B></A>
58 <A HREF="../../and/Mapping/DefaultMapping.html" title="class in and.Mapping"><B>NEXT CLASS</B></A></FONT></TD>
59 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
60 <A HREF="../../index.html?and/Mapping/Cluster.html" target="_top"><B>FRAMES</B></A>
61 <A HREF="Cluster.html" target="_top"><B>NO FRAMES</B></A>
62 <SCRIPT type="text/javascript">
65 document.writeln('<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>');
70 <A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>
77 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
78 SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
79 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
80 DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
83 <A NAME="skip-navbar_top"></A>
84 <!-- ========= END OF TOP NAVBAR ========= -->
87 <!-- ======== START OF CLASS DATA ======== -->
95 <IMG SRC="../../resources/inherit.gif" ALT="extended by "><B>and.Mapping.Cluster</B>
98 <DT><B>All Implemented Interfaces:</B> <DD>java.io.Serializable</DD>
102 <DT><PRE>public class <B>Cluster</B><DT>extends java.lang.Object<DT>implements java.io.Serializable</DL>
106 Class representing a computing nodes cluster
111 <DT><B>Author:</B></DT>
112 <DD>Sébastien Miquée</DD>
113 <DT><B>See Also:</B><DD><A HREF="../../serialized-form.html#and.Mapping.Cluster">Serialized Form</A></DL>
118 <!-- ======== CONSTRUCTOR SUMMARY ======== -->
120 <A NAME="constructor_summary"><!-- --></A>
121 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
122 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
123 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
124 <B>Constructor Summary</B></FONT></TH>
126 <TR BGCOLOR="white" CLASS="TableRowColor">
127 <TD><CODE><B><A HREF="../../and/Mapping/Cluster.html#Cluster()">Cluster</A></B>()</CODE>
130 Default constructor.</TD>
132 <TR BGCOLOR="white" CLASS="TableRowColor">
133 <TD><CODE><B><A HREF="../../and/Mapping/Cluster.html#Cluster(int)">Cluster</A></B>(int _nb)</CODE>
136 Constructor.</TD>
138 <TR BGCOLOR="white" CLASS="TableRowColor">
139 <TD><CODE><B><A HREF="../../and/Mapping/Cluster.html#Cluster(int, java.lang.String)">Cluster</A></B>(int _nb,
140 java.lang.String _name)</CODE>
143 Constructor.</TD>
147 <!-- ========== METHOD SUMMARY =========== -->
149 <A NAME="method_summary"><!-- --></A>
150 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
151 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
152 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
153 <B>Method Summary</B></FONT></TH>
155 <TR BGCOLOR="white" CLASS="TableRowColor">
156 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
157 <CODE> void</CODE></FONT></TD>
158 <TD><CODE><B><A HREF="../../and/Mapping/Cluster.html#addGNode(and.Mapping.GNode)">addGNode</A></B>(<A HREF="../../and/Mapping/GNode.html" title="class in and.Mapping">GNode</A> _n)</CODE>
161 Adding a computing node to the cluster.</TD>
163 <TR BGCOLOR="white" CLASS="TableRowColor">
164 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
165 <CODE> java.util.ArrayList<<A HREF="../../and/Mapping/GNode.html" title="class in and.Mapping">GNode</A>></CODE></FONT></TD>
166 <TD><CODE><B><A HREF="../../and/Mapping/Cluster.html#getGNodes()">getGNodes</A></B>()</CODE>
169 Return the list of computing nodes which are in the cluster.</TD>
171 <TR BGCOLOR="white" CLASS="TableRowColor">
172 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
173 <CODE> java.lang.String</CODE></FONT></TD>
174 <TD><CODE><B><A HREF="../../and/Mapping/Cluster.html#getName()">getName</A></B>()</CODE>
177 Return cluster's name.</TD>
179 <TR BGCOLOR="white" CLASS="TableRowColor">
180 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
181 <CODE> int</CODE></FONT></TD>
182 <TD><CODE><B><A HREF="../../and/Mapping/Cluster.html#getNbGNode()">getNbGNode</A></B>()</CODE>
185 Return the amount of computing nodes in the cluster.</TD>
187 <TR BGCOLOR="white" CLASS="TableRowColor">
188 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
189 <CODE> java.lang.String</CODE></FONT></TD>
190 <TD><CODE><B><A HREF="../../and/Mapping/Cluster.html#getSite()">getSite</A></B>()</CODE>
193 Return the site's name in which the cluster is.</TD>
195 <TR BGCOLOR="white" CLASS="TableRowColor">
196 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
197 <CODE> void</CODE></FONT></TD>
198 <TD><CODE><B><A HREF="../../and/Mapping/Cluster.html#initIndice()">initIndice</A></B>()</CODE>
201 Initialization of indice variable.</TD>
203 <TR BGCOLOR="white" CLASS="TableRowColor">
204 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
205 <CODE> boolean</CODE></FONT></TD>
206 <TD><CODE><B><A HREF="../../and/Mapping/Cluster.html#isIn(and.Mapping.GNode)">isIn</A></B>(<A HREF="../../and/Mapping/GNode.html" title="class in and.Mapping">GNode</A> _g)</CODE>
209 Test if a computing node is in the cluster.</TD>
211 <TR BGCOLOR="white" CLASS="TableRowColor">
212 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
213 <CODE> <A HREF="../../and/Mapping/GNode.html" title="class in and.Mapping">GNode</A></CODE></FONT></TD>
214 <TD><CODE><B><A HREF="../../and/Mapping/Cluster.html#nextGNode()">nextGNode</A></B>()</CODE>
217 Return the next computing node in the cluster,
218 according to the indice variable.</TD>
220 <TR BGCOLOR="white" CLASS="TableRowColor">
221 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
222 <CODE> void</CODE></FONT></TD>
223 <TD><CODE><B><A HREF="../../and/Mapping/Cluster.html#removeGNode(and.Mapping.GNode)">removeGNode</A></B>(<A HREF="../../and/Mapping/GNode.html" title="class in and.Mapping">GNode</A> _dead)</CODE>
226 Remove a failed node from the cluster.</TD>
228 <TR BGCOLOR="white" CLASS="TableRowColor">
229 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
230 <CODE> void</CODE></FONT></TD>
231 <TD><CODE><B><A HREF="../../and/Mapping/Cluster.html#setName(java.lang.String)">setName</A></B>(java.lang.String _name)</CODE>
234 Set the name of the cluster.</TD>
236 <TR BGCOLOR="white" CLASS="TableRowColor">
237 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
238 <CODE> void</CODE></FONT></TD>
239 <TD><CODE><B><A HREF="../../and/Mapping/Cluster.html#setSite(java.lang.String)">setSite</A></B>(java.lang.String _site)</CODE>
242 Set the site in which the cluster is.</TD>
245 <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
246 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
247 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
248 <TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
250 <TR BGCOLOR="white" CLASS="TableRowColor">
251 <TD><CODE>equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
257 <!-- ========= CONSTRUCTOR DETAIL ======== -->
259 <A NAME="constructor_detail"><!-- --></A>
260 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
261 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
262 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
263 <B>Constructor Detail</B></FONT></TH>
267 <A NAME="Cluster()"><!-- --></A><H3>
270 public <B>Cluster</B>()</PRE>
272 <DD>Default constructor.
277 <A NAME="Cluster(int)"><!-- --></A><H3>
280 public <B>Cluster</B>(int _nb)</PRE>
285 <DT><B>Parameters:</B><DD><CODE>_nb</CODE> - The amount of computing nodes in the cluster</DL>
289 <A NAME="Cluster(int, java.lang.String)"><!-- --></A><H3>
292 public <B>Cluster</B>(int _nb,
293 java.lang.String _name)</PRE>
298 <DT><B>Parameters:</B><DD><CODE>_nb</CODE> - The amount of computing nodes in the cluster<DD><CODE>_name</CODE> - Cluster's name</DL>
301 <!-- ============ METHOD DETAIL ========== -->
303 <A NAME="method_detail"><!-- --></A>
304 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
305 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
306 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
307 <B>Method Detail</B></FONT></TH>
311 <A NAME="setName(java.lang.String)"><!-- --></A><H3>
314 public void <B>setName</B>(java.lang.String _name)</PRE>
316 <DD>Set the name of the cluster.
322 <DT><B>Parameters:</B><DD><CODE>_name</CODE> - Cluster's name</DL>
327 <A NAME="addGNode(and.Mapping.GNode)"><!-- --></A><H3>
330 public void <B>addGNode</B>(<A HREF="../../and/Mapping/GNode.html" title="class in and.Mapping">GNode</A> _n)</PRE>
332 <DD>Adding a computing node to the cluster.
338 <DT><B>Parameters:</B><DD><CODE>_n</CODE> - Node to be add</DL>
343 <A NAME="getGNodes()"><!-- --></A><H3>
346 public java.util.ArrayList<<A HREF="../../and/Mapping/GNode.html" title="class in and.Mapping">GNode</A>> <B>getGNodes</B>()</PRE>
348 <DD>Return the list of computing nodes which are in the cluster.
355 <DT><B>Returns:</B><DD>The list of nodes</DL>
360 <A NAME="getName()"><!-- --></A><H3>
363 public java.lang.String <B>getName</B>()</PRE>
365 <DD>Return cluster's name.
372 <DT><B>Returns:</B><DD>Cluster's name</DL>
377 <A NAME="getNbGNode()"><!-- --></A><H3>
380 public int <B>getNbGNode</B>()</PRE>
382 <DD>Return the amount of computing nodes in the cluster.
389 <DT><B>Returns:</B><DD>The amount of nodes</DL>
394 <A NAME="setSite(java.lang.String)"><!-- --></A><H3>
397 public void <B>setSite</B>(java.lang.String _site)</PRE>
399 <DD>Set the site in which the cluster is.
405 <DT><B>Parameters:</B><DD><CODE>_site</CODE> - Site's name</DL>
410 <A NAME="getSite()"><!-- --></A><H3>
413 public java.lang.String <B>getSite</B>()</PRE>
415 <DD>Return the site's name in which the cluster is.
422 <DT><B>Returns:</B><DD>The site's name</DL>
427 <A NAME="isIn(and.Mapping.GNode)"><!-- --></A><H3>
430 public boolean <B>isIn</B>(<A HREF="../../and/Mapping/GNode.html" title="class in and.Mapping">GNode</A> _g)</PRE>
432 <DD>Test if a computing node is in the cluster.
438 <DT><B>Parameters:</B><DD><CODE>_g</CODE> - The node to be tested
439 <DT><B>Returns:</B><DD>True is _g is in, False else</DL>
444 <A NAME="initIndice()"><!-- --></A><H3>
447 public void <B>initIndice</B>()</PRE>
449 <DD>Initialization of indice variable.
460 <A NAME="nextGNode()"><!-- --></A><H3>
463 public <A HREF="../../and/Mapping/GNode.html" title="class in and.Mapping">GNode</A> <B>nextGNode</B>()</PRE>
465 <DD>Return the next computing node in the cluster,
466 according to the indice variable.
473 <DT><B>Returns:</B><DD>The next node in the cluster</DL>
478 <A NAME="removeGNode(and.Mapping.GNode)"><!-- --></A><H3>
481 public void <B>removeGNode</B>(<A HREF="../../and/Mapping/GNode.html" title="class in and.Mapping">GNode</A> _dead)</PRE>
483 <DD>Remove a failed node from the cluster.
489 <DT><B>Parameters:</B><DD><CODE>_dead</CODE> - The failed node</DL>
492 <!-- ========= END OF CLASS DATA ========= -->
496 <!-- ======= START OF BOTTOM NAVBAR ====== -->
497 <A NAME="navbar_bottom"><!-- --></A>
498 <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
499 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
501 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
502 <A NAME="navbar_bottom_firstrow"><!-- --></A>
503 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
504 <TR ALIGN="center" VALIGN="top">
505 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../and/Mapping/package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
506 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
507 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/Cluster.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
508 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
509 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
510 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
511 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
515 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
521 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
522 <A HREF="../../and/Mapping/Association.html" title="class in and.Mapping"><B>PREV CLASS</B></A>
523 <A HREF="../../and/Mapping/DefaultMapping.html" title="class in and.Mapping"><B>NEXT CLASS</B></A></FONT></TD>
524 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
525 <A HREF="../../index.html?and/Mapping/Cluster.html" target="_top"><B>FRAMES</B></A>
526 <A HREF="Cluster.html" target="_top"><B>NO FRAMES</B></A>
527 <SCRIPT type="text/javascript">
530 document.writeln('<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>');
535 <A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>
542 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
543 SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
544 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
545 DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
548 <A NAME="skip-navbar_bottom"></A>
549 <!-- ======== END OF BOTTOM NAVBAR ======= -->