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_18) on Mon Feb 08 15:16:13 CET 2010 -->
10 <META NAME="date" CONTENT="2010-02-08">
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="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
43 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
44 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
45 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
49 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
55 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
56 <A HREF="../../and/Mapping/Association.html" title="class in and.Mapping"><B>PREV CLASS</B></A>
57 <A HREF="../../and/Mapping/DefaultMapping.html" title="class in and.Mapping"><B>NEXT CLASS</B></A></FONT></TD>
58 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
59 <A HREF="../../index.html?and/Mapping/Cluster.html" target="_top"><B>FRAMES</B></A>
60 <A HREF="Cluster.html" target="_top"><B>NO FRAMES</B></A>
61 <SCRIPT type="text/javascript">
64 document.writeln('<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>');
69 <A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>
76 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
77 SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
78 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
79 DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
82 <A NAME="skip-navbar_top"></A>
83 <!-- ========= END OF TOP NAVBAR ========= -->
86 <!-- ======== START OF CLASS DATA ======== -->
94 <IMG SRC="../../resources/inherit.gif" ALT="extended by "><B>and.Mapping.Cluster</B>
97 <DT><B>All Implemented Interfaces:</B> <DD>java.io.Serializable</DD>
101 <DT><PRE>public class <B>Cluster</B><DT>extends java.lang.Object<DT>implements java.io.Serializable</DL>
105 Class representing a computing nodes cluster
110 <DT><B>See Also:</B><DD><A HREF="../../serialized-form.html#and.Mapping.Cluster">Serialized Form</A></DL>
115 <!-- ======== CONSTRUCTOR SUMMARY ======== -->
117 <A NAME="constructor_summary"><!-- --></A>
118 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
119 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
120 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
121 <B>Constructor Summary</B></FONT></TH>
123 <TR BGCOLOR="white" CLASS="TableRowColor">
124 <TD><CODE><B><A HREF="../../and/Mapping/Cluster.html#Cluster()">Cluster</A></B>()</CODE>
127 Default constructor.</TD>
129 <TR BGCOLOR="white" CLASS="TableRowColor">
130 <TD><CODE><B><A HREF="../../and/Mapping/Cluster.html#Cluster(int)">Cluster</A></B>(int _nb)</CODE>
133 Constructor.</TD>
135 <TR BGCOLOR="white" CLASS="TableRowColor">
136 <TD><CODE><B><A HREF="../../and/Mapping/Cluster.html#Cluster(int, java.lang.String)">Cluster</A></B>(int _nb,
137 java.lang.String _name)</CODE>
140 Constructor.</TD>
144 <!-- ========== METHOD SUMMARY =========== -->
146 <A NAME="method_summary"><!-- --></A>
147 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
148 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
149 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
150 <B>Method Summary</B></FONT></TH>
152 <TR BGCOLOR="white" CLASS="TableRowColor">
153 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
154 <CODE> void</CODE></FONT></TD>
155 <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>
158 Adding a computing node to the cluster.</TD>
160 <TR BGCOLOR="white" CLASS="TableRowColor">
161 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
162 <CODE> java.util.ArrayList<<A HREF="../../and/Mapping/GNode.html" title="class in and.Mapping">GNode</A>></CODE></FONT></TD>
163 <TD><CODE><B><A HREF="../../and/Mapping/Cluster.html#getGNodes()">getGNodes</A></B>()</CODE>
166 Return the list of computing nodes which are in the cluster.</TD>
168 <TR BGCOLOR="white" CLASS="TableRowColor">
169 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
170 <CODE> java.lang.String</CODE></FONT></TD>
171 <TD><CODE><B><A HREF="../../and/Mapping/Cluster.html#getName()">getName</A></B>()</CODE>
174 Return cluster's name.</TD>
176 <TR BGCOLOR="white" CLASS="TableRowColor">
177 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
178 <CODE> int</CODE></FONT></TD>
179 <TD><CODE><B><A HREF="../../and/Mapping/Cluster.html#getNbGNode()">getNbGNode</A></B>()</CODE>
182 Return the amount of computing nodes in the cluster.</TD>
184 <TR BGCOLOR="white" CLASS="TableRowColor">
185 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
186 <CODE> java.lang.String</CODE></FONT></TD>
187 <TD><CODE><B><A HREF="../../and/Mapping/Cluster.html#getSite()">getSite</A></B>()</CODE>
190 Return the site's name in which the cluster is.</TD>
192 <TR BGCOLOR="white" CLASS="TableRowColor">
193 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
194 <CODE> void</CODE></FONT></TD>
195 <TD><CODE><B><A HREF="../../and/Mapping/Cluster.html#initIndice()">initIndice</A></B>()</CODE>
198 Initialization of indice variable.</TD>
200 <TR BGCOLOR="white" CLASS="TableRowColor">
201 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
202 <CODE> boolean</CODE></FONT></TD>
203 <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>
206 Test if a computing node is in the cluster.</TD>
208 <TR BGCOLOR="white" CLASS="TableRowColor">
209 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
210 <CODE> <A HREF="../../and/Mapping/GNode.html" title="class in and.Mapping">GNode</A></CODE></FONT></TD>
211 <TD><CODE><B><A HREF="../../and/Mapping/Cluster.html#nextGNode()">nextGNode</A></B>()</CODE>
214 Return the next computing node in the cluster,
215 according to the indice variable.</TD>
217 <TR BGCOLOR="white" CLASS="TableRowColor">
218 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
219 <CODE> void</CODE></FONT></TD>
220 <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>
223 Remove a failed node from the cluster.</TD>
225 <TR BGCOLOR="white" CLASS="TableRowColor">
226 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
227 <CODE> void</CODE></FONT></TD>
228 <TD><CODE><B><A HREF="../../and/Mapping/Cluster.html#setName(java.lang.String)">setName</A></B>(java.lang.String _name)</CODE>
231 Set the name of the cluster.</TD>
233 <TR BGCOLOR="white" CLASS="TableRowColor">
234 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
235 <CODE> void</CODE></FONT></TD>
236 <TD><CODE><B><A HREF="../../and/Mapping/Cluster.html#setSite(java.lang.String)">setSite</A></B>(java.lang.String _site)</CODE>
239 Set the site in which the cluster is.</TD>
242 <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
243 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
244 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
245 <TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
247 <TR BGCOLOR="white" CLASS="TableRowColor">
248 <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
254 <!-- ========= CONSTRUCTOR DETAIL ======== -->
256 <A NAME="constructor_detail"><!-- --></A>
257 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
258 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
259 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
260 <B>Constructor Detail</B></FONT></TH>
264 <A NAME="Cluster()"><!-- --></A><H3>
267 public <B>Cluster</B>()</PRE>
269 <DD>Default constructor.
274 <A NAME="Cluster(int)"><!-- --></A><H3>
277 public <B>Cluster</B>(int _nb)</PRE>
282 <DT><B>Parameters:</B><DD><CODE>_nb</CODE> - The amount of computing nodes in the cluster</DL>
286 <A NAME="Cluster(int, java.lang.String)"><!-- --></A><H3>
289 public <B>Cluster</B>(int _nb,
290 java.lang.String _name)</PRE>
295 <DT><B>Parameters:</B><DD><CODE>_nb</CODE> - The amount of computing nodes in the cluster<DD><CODE>_name</CODE> - Cluster's name</DL>
298 <!-- ============ METHOD DETAIL ========== -->
300 <A NAME="method_detail"><!-- --></A>
301 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
302 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
303 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
304 <B>Method Detail</B></FONT></TH>
308 <A NAME="setName(java.lang.String)"><!-- --></A><H3>
311 public void <B>setName</B>(java.lang.String _name)</PRE>
313 <DD>Set the name of the cluster.
319 <DT><B>Parameters:</B><DD><CODE>_name</CODE> - Cluster's name</DL>
324 <A NAME="addGNode(and.Mapping.GNode)"><!-- --></A><H3>
327 public void <B>addGNode</B>(<A HREF="../../and/Mapping/GNode.html" title="class in and.Mapping">GNode</A> _n)</PRE>
329 <DD>Adding a computing node to the cluster.
335 <DT><B>Parameters:</B><DD><CODE>_n</CODE> - Node to be add</DL>
340 <A NAME="getGNodes()"><!-- --></A><H3>
343 public java.util.ArrayList<<A HREF="../../and/Mapping/GNode.html" title="class in and.Mapping">GNode</A>> <B>getGNodes</B>()</PRE>
345 <DD>Return the list of computing nodes which are in the cluster.
352 <DT><B>Returns:</B><DD>The list of nodes</DL>
357 <A NAME="getName()"><!-- --></A><H3>
360 public java.lang.String <B>getName</B>()</PRE>
362 <DD>Return cluster's name.
369 <DT><B>Returns:</B><DD>Cluster's name</DL>
374 <A NAME="getNbGNode()"><!-- --></A><H3>
377 public int <B>getNbGNode</B>()</PRE>
379 <DD>Return the amount of computing nodes in the cluster.
386 <DT><B>Returns:</B><DD>The amount of nodes</DL>
391 <A NAME="setSite(java.lang.String)"><!-- --></A><H3>
394 public void <B>setSite</B>(java.lang.String _site)</PRE>
396 <DD>Set the site in which the cluster is.
402 <DT><B>Parameters:</B><DD><CODE>_site</CODE> - Site's name</DL>
407 <A NAME="getSite()"><!-- --></A><H3>
410 public java.lang.String <B>getSite</B>()</PRE>
412 <DD>Return the site's name in which the cluster is.
419 <DT><B>Returns:</B><DD>The site's name</DL>
424 <A NAME="isIn(and.Mapping.GNode)"><!-- --></A><H3>
427 public boolean <B>isIn</B>(<A HREF="../../and/Mapping/GNode.html" title="class in and.Mapping">GNode</A> _g)</PRE>
429 <DD>Test if a computing node is in the cluster.
435 <DT><B>Parameters:</B><DD><CODE>_g</CODE> - The node to be tested
436 <DT><B>Returns:</B><DD>True is _g is in, False else</DL>
441 <A NAME="initIndice()"><!-- --></A><H3>
444 public void <B>initIndice</B>()</PRE>
446 <DD>Initialization of indice variable.
457 <A NAME="nextGNode()"><!-- --></A><H3>
460 public <A HREF="../../and/Mapping/GNode.html" title="class in and.Mapping">GNode</A> <B>nextGNode</B>()</PRE>
462 <DD>Return the next computing node in the cluster,
463 according to the indice variable.
470 <DT><B>Returns:</B><DD>The next node in the cluster</DL>
475 <A NAME="removeGNode(and.Mapping.GNode)"><!-- --></A><H3>
478 public void <B>removeGNode</B>(<A HREF="../../and/Mapping/GNode.html" title="class in and.Mapping">GNode</A> _dead)</PRE>
480 <DD>Remove a failed node from the cluster.
486 <DT><B>Parameters:</B><DD><CODE>_dead</CODE> - The failed node</DL>
489 <!-- ========= END OF CLASS DATA ========= -->
493 <!-- ======= START OF BOTTOM NAVBAR ====== -->
494 <A NAME="navbar_bottom"><!-- --></A>
495 <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
496 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
498 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
499 <A NAME="navbar_bottom_firstrow"><!-- --></A>
500 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
501 <TR ALIGN="center" VALIGN="top">
502 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../and/Mapping/package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
503 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
504 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
505 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
506 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
507 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
511 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
517 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
518 <A HREF="../../and/Mapping/Association.html" title="class in and.Mapping"><B>PREV CLASS</B></A>
519 <A HREF="../../and/Mapping/DefaultMapping.html" title="class in and.Mapping"><B>NEXT CLASS</B></A></FONT></TD>
520 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
521 <A HREF="../../index.html?and/Mapping/Cluster.html" target="_top"><B>FRAMES</B></A>
522 <A HREF="Cluster.html" target="_top"><B>NO FRAMES</B></A>
523 <SCRIPT type="text/javascript">
526 document.writeln('<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>');
531 <A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>
538 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
539 SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
540 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
541 DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
544 <A NAME="skip-navbar_bottom"></A>
545 <!-- ======== END OF BOTTOM NAVBAR ======= -->