source: proiecte/HadoopJUnit/hadoop-0.20.1/docs/api/org/apache/hadoop/io/retry/class-use/RetryPolicy.html @ 120

Last change on this file since 120 was 120, checked in by (none), 14 years ago

Added the mail files for the Hadoop JUNit Project

  • Property svn:executable set to *
File size: 25.4 KB
Line 
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2<!--NewPage-->
3<HTML>
4<HEAD>
5<!-- Generated by javadoc (build 1.6.0_07) on Tue Sep 01 20:57:01 UTC 2009 -->
6<TITLE>
7Uses of Interface org.apache.hadoop.io.retry.RetryPolicy (Hadoop 0.20.1 API)
8</TITLE>
9
10<META NAME="date" CONTENT="2009-09-01">
11
12<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../../stylesheet.css" TITLE="Style">
13
14<SCRIPT type="text/javascript">
15function windowTitle()
16{
17    if (location.href.indexOf('is-external=true') == -1) {
18        parent.document.title="Uses of Interface org.apache.hadoop.io.retry.RetryPolicy (Hadoop 0.20.1 API)";
19    }
20}
21</SCRIPT>
22<NOSCRIPT>
23</NOSCRIPT>
24
25</HEAD>
26
27<BODY BGCOLOR="white" onload="windowTitle();">
28<HR>
29
30
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="">
35<TR>
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="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
41  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
42  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../org/apache/hadoop/io/retry/RetryPolicy.html" title="interface in org.apache.hadoop.io.retry"><FONT CLASS="NavBarFont1"><B>Class</B></FONT></A>&nbsp;</TD>
43  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT>&nbsp;</TD>
44  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
45  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
46  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
47  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
48  </TR>
49</TABLE>
50</TD>
51<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
52</EM>
53</TD>
54</TR>
55
56<TR>
57<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
58&nbsp;PREV&nbsp;
59&nbsp;NEXT</FONT></TD>
60<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
61  <A HREF="../../../../../../index.html?org/apache/hadoop/io/retry//class-useRetryPolicy.html" target="_top"><B>FRAMES</B></A>  &nbsp;
62&nbsp;<A HREF="RetryPolicy.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
63&nbsp;<SCRIPT type="text/javascript">
64  <!--
65  if(window==top) {
66    document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
67  }
68  //-->
69</SCRIPT>
70<NOSCRIPT>
71  <A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>
72</NOSCRIPT>
73
74
75</FONT></TD>
76</TR>
77</TABLE>
78<A NAME="skip-navbar_top"></A>
79<!-- ========= END OF TOP NAVBAR ========= -->
80
81<HR>
82<CENTER>
83<H2>
84<B>Uses of Interface<br>org.apache.hadoop.io.retry.RetryPolicy</B></H2>
85</CENTER>
86
87<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
88<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
89<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
90Packages that use <A HREF="../../../../../../org/apache/hadoop/io/retry/RetryPolicy.html" title="interface in org.apache.hadoop.io.retry">RetryPolicy</A></FONT></TH>
91</TR>
92<TR BGCOLOR="white" CLASS="TableRowColor">
93<TD><A HREF="#org.apache.hadoop.io.retry"><B>org.apache.hadoop.io.retry</B></A></TD>
94<TD>
95A mechanism for selectively retrying methods that throw exceptions under certain circumstances.&nbsp;</TD>
96</TR>
97</TABLE>
98&nbsp;
99<P>
100<A NAME="org.apache.hadoop.io.retry"><!-- --></A>
101<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
102<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
103<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
104Uses of <A HREF="../../../../../../org/apache/hadoop/io/retry/RetryPolicy.html" title="interface in org.apache.hadoop.io.retry">RetryPolicy</A> in <A HREF="../../../../../../org/apache/hadoop/io/retry/package-summary.html">org.apache.hadoop.io.retry</A></FONT></TH>
105</TR>
106</TABLE>
107&nbsp;
108<P>
109
110<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
111<TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor">
112<TH ALIGN="left" COLSPAN="2">Fields in <A HREF="../../../../../../org/apache/hadoop/io/retry/package-summary.html">org.apache.hadoop.io.retry</A> declared as <A HREF="../../../../../../org/apache/hadoop/io/retry/RetryPolicy.html" title="interface in org.apache.hadoop.io.retry">RetryPolicy</A></FONT></TH>
113</TR>
114<TR BGCOLOR="white" CLASS="TableRowColor">
115<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
116<CODE>static&nbsp;<A HREF="../../../../../../org/apache/hadoop/io/retry/RetryPolicy.html" title="interface in org.apache.hadoop.io.retry">RetryPolicy</A></CODE></FONT></TD>
117<TD><CODE><B>RetryPolicies.</B><B><A HREF="../../../../../../org/apache/hadoop/io/retry/RetryPolicies.html#RETRY_FOREVER">RETRY_FOREVER</A></B></CODE>
118
119<BR>
120&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
121 Keep trying forever.</TD>
122</TR>
123<TR BGCOLOR="white" CLASS="TableRowColor">
124<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
125<CODE>static&nbsp;<A HREF="../../../../../../org/apache/hadoop/io/retry/RetryPolicy.html" title="interface in org.apache.hadoop.io.retry">RetryPolicy</A></CODE></FONT></TD>
126<TD><CODE><B>RetryPolicies.</B><B><A HREF="../../../../../../org/apache/hadoop/io/retry/RetryPolicies.html#TRY_ONCE_DONT_FAIL">TRY_ONCE_DONT_FAIL</A></B></CODE>
127
128<BR>
129&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
130 Try once, and fail silently for <code>void</code> methods, or by
131 re-throwing the exception for non-<code>void</code> methods.</TD>
132</TR>
133<TR BGCOLOR="white" CLASS="TableRowColor">
134<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
135<CODE>static&nbsp;<A HREF="../../../../../../org/apache/hadoop/io/retry/RetryPolicy.html" title="interface in org.apache.hadoop.io.retry">RetryPolicy</A></CODE></FONT></TD>
136<TD><CODE><B>RetryPolicies.</B><B><A HREF="../../../../../../org/apache/hadoop/io/retry/RetryPolicies.html#TRY_ONCE_THEN_FAIL">TRY_ONCE_THEN_FAIL</A></B></CODE>
137
138<BR>
139&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
140 Try once, and fail by re-throwing the exception.</TD>
141</TR>
142</TABLE>
143&nbsp;
144<P>
145
146<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
147<TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor">
148<TH ALIGN="left" COLSPAN="2">Methods in <A HREF="../../../../../../org/apache/hadoop/io/retry/package-summary.html">org.apache.hadoop.io.retry</A> that return <A HREF="../../../../../../org/apache/hadoop/io/retry/RetryPolicy.html" title="interface in org.apache.hadoop.io.retry">RetryPolicy</A></FONT></TH>
149</TR>
150<TR BGCOLOR="white" CLASS="TableRowColor">
151<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
152<CODE>static&nbsp;<A HREF="../../../../../../org/apache/hadoop/io/retry/RetryPolicy.html" title="interface in org.apache.hadoop.io.retry">RetryPolicy</A></CODE></FONT></TD>
153<TD><CODE><B>RetryPolicies.</B><B><A HREF="../../../../../../org/apache/hadoop/io/retry/RetryPolicies.html#exponentialBackoffRetry(int, long, java.util.concurrent.TimeUnit)">exponentialBackoffRetry</A></B>(int&nbsp;maxRetries,
154                        long&nbsp;sleepTime,
155                        <A HREF="http://java.sun.com/javase/6/docs/api/java/util/concurrent/TimeUnit.html?is-external=true" title="class or interface in java.util.concurrent">TimeUnit</A>&nbsp;timeUnit)</CODE>
156
157<BR>
158&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
159 Keep trying a limited number of times, waiting a growing amount of time between attempts,
160 and then fail by re-throwing the exception.</TD>
161</TR>
162<TR BGCOLOR="white" CLASS="TableRowColor">
163<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
164<CODE>static&nbsp;<A HREF="../../../../../../org/apache/hadoop/io/retry/RetryPolicy.html" title="interface in org.apache.hadoop.io.retry">RetryPolicy</A></CODE></FONT></TD>
165<TD><CODE><B>RetryPolicies.</B><B><A HREF="../../../../../../org/apache/hadoop/io/retry/RetryPolicies.html#retryByException(org.apache.hadoop.io.retry.RetryPolicy, java.util.Map)">retryByException</A></B>(<A HREF="../../../../../../org/apache/hadoop/io/retry/RetryPolicy.html" title="interface in org.apache.hadoop.io.retry">RetryPolicy</A>&nbsp;defaultPolicy,
166                 <A HREF="http://java.sun.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</A>&lt;<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A>&lt;? extends <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</A>&gt;,<A HREF="../../../../../../org/apache/hadoop/io/retry/RetryPolicy.html" title="interface in org.apache.hadoop.io.retry">RetryPolicy</A>&gt;&nbsp;exceptionToPolicyMap)</CODE>
167
168<BR>
169&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
170 Set a default policy with some explicit handlers for specific exceptions.</TD>
171</TR>
172<TR BGCOLOR="white" CLASS="TableRowColor">
173<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
174<CODE>static&nbsp;<A HREF="../../../../../../org/apache/hadoop/io/retry/RetryPolicy.html" title="interface in org.apache.hadoop.io.retry">RetryPolicy</A></CODE></FONT></TD>
175<TD><CODE><B>RetryPolicies.</B><B><A HREF="../../../../../../org/apache/hadoop/io/retry/RetryPolicies.html#retryByRemoteException(org.apache.hadoop.io.retry.RetryPolicy, java.util.Map)">retryByRemoteException</A></B>(<A HREF="../../../../../../org/apache/hadoop/io/retry/RetryPolicy.html" title="interface in org.apache.hadoop.io.retry">RetryPolicy</A>&nbsp;defaultPolicy,
176                       <A HREF="http://java.sun.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</A>&lt;<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A>&lt;? extends <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</A>&gt;,<A HREF="../../../../../../org/apache/hadoop/io/retry/RetryPolicy.html" title="interface in org.apache.hadoop.io.retry">RetryPolicy</A>&gt;&nbsp;exceptionToPolicyMap)</CODE>
177
178<BR>
179&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
180 A retry policy for RemoteException
181 Set a default policy with some explicit handlers for specific exceptions.</TD>
182</TR>
183<TR BGCOLOR="white" CLASS="TableRowColor">
184<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
185<CODE>static&nbsp;<A HREF="../../../../../../org/apache/hadoop/io/retry/RetryPolicy.html" title="interface in org.apache.hadoop.io.retry">RetryPolicy</A></CODE></FONT></TD>
186<TD><CODE><B>RetryPolicies.</B><B><A HREF="../../../../../../org/apache/hadoop/io/retry/RetryPolicies.html#retryUpToMaximumCountWithFixedSleep(int, long, java.util.concurrent.TimeUnit)">retryUpToMaximumCountWithFixedSleep</A></B>(int&nbsp;maxRetries,
187                                    long&nbsp;sleepTime,
188                                    <A HREF="http://java.sun.com/javase/6/docs/api/java/util/concurrent/TimeUnit.html?is-external=true" title="class or interface in java.util.concurrent">TimeUnit</A>&nbsp;timeUnit)</CODE>
189
190<BR>
191&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
192 Keep trying a limited number of times, waiting a fixed time between attempts,
193 and then fail by re-throwing the exception.</TD>
194</TR>
195<TR BGCOLOR="white" CLASS="TableRowColor">
196<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
197<CODE>static&nbsp;<A HREF="../../../../../../org/apache/hadoop/io/retry/RetryPolicy.html" title="interface in org.apache.hadoop.io.retry">RetryPolicy</A></CODE></FONT></TD>
198<TD><CODE><B>RetryPolicies.</B><B><A HREF="../../../../../../org/apache/hadoop/io/retry/RetryPolicies.html#retryUpToMaximumCountWithProportionalSleep(int, long, java.util.concurrent.TimeUnit)">retryUpToMaximumCountWithProportionalSleep</A></B>(int&nbsp;maxRetries,
199                                           long&nbsp;sleepTime,
200                                           <A HREF="http://java.sun.com/javase/6/docs/api/java/util/concurrent/TimeUnit.html?is-external=true" title="class or interface in java.util.concurrent">TimeUnit</A>&nbsp;timeUnit)</CODE>
201
202<BR>
203&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
204 Keep trying a limited number of times, waiting a growing amount of time between attempts,
205 and then fail by re-throwing the exception.</TD>
206</TR>
207<TR BGCOLOR="white" CLASS="TableRowColor">
208<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
209<CODE>static&nbsp;<A HREF="../../../../../../org/apache/hadoop/io/retry/RetryPolicy.html" title="interface in org.apache.hadoop.io.retry">RetryPolicy</A></CODE></FONT></TD>
210<TD><CODE><B>RetryPolicies.</B><B><A HREF="../../../../../../org/apache/hadoop/io/retry/RetryPolicies.html#retryUpToMaximumTimeWithFixedSleep(long, long, java.util.concurrent.TimeUnit)">retryUpToMaximumTimeWithFixedSleep</A></B>(long&nbsp;maxTime,
211                                   long&nbsp;sleepTime,
212                                   <A HREF="http://java.sun.com/javase/6/docs/api/java/util/concurrent/TimeUnit.html?is-external=true" title="class or interface in java.util.concurrent">TimeUnit</A>&nbsp;timeUnit)</CODE>
213
214<BR>
215&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
216 Keep trying for a maximum time, waiting a fixed time between attempts,
217 and then fail by re-throwing the exception.</TD>
218</TR>
219</TABLE>
220&nbsp;
221<P>
222
223<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
224<TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor">
225<TH ALIGN="left" COLSPAN="2">Methods in <A HREF="../../../../../../org/apache/hadoop/io/retry/package-summary.html">org.apache.hadoop.io.retry</A> with parameters of type <A HREF="../../../../../../org/apache/hadoop/io/retry/RetryPolicy.html" title="interface in org.apache.hadoop.io.retry">RetryPolicy</A></FONT></TH>
226</TR>
227<TR BGCOLOR="white" CLASS="TableRowColor">
228<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
229<CODE>static&nbsp;<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></CODE></FONT></TD>
230<TD><CODE><B>RetryProxy.</B><B><A HREF="../../../../../../org/apache/hadoop/io/retry/RetryProxy.html#create(java.lang.Class, java.lang.Object, org.apache.hadoop.io.retry.RetryPolicy)">create</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A>&lt;?&gt;&nbsp;iface,
231       <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A>&nbsp;implementation,
232       <A HREF="../../../../../../org/apache/hadoop/io/retry/RetryPolicy.html" title="interface in org.apache.hadoop.io.retry">RetryPolicy</A>&nbsp;retryPolicy)</CODE>
233
234<BR>
235&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
236 Create a proxy for an interface of an implementation class
237 using the same retry policy for each method in the interface.</TD>
238</TR>
239<TR BGCOLOR="white" CLASS="TableRowColor">
240<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
241<CODE>static&nbsp;<A HREF="../../../../../../org/apache/hadoop/io/retry/RetryPolicy.html" title="interface in org.apache.hadoop.io.retry">RetryPolicy</A></CODE></FONT></TD>
242<TD><CODE><B>RetryPolicies.</B><B><A HREF="../../../../../../org/apache/hadoop/io/retry/RetryPolicies.html#retryByException(org.apache.hadoop.io.retry.RetryPolicy, java.util.Map)">retryByException</A></B>(<A HREF="../../../../../../org/apache/hadoop/io/retry/RetryPolicy.html" title="interface in org.apache.hadoop.io.retry">RetryPolicy</A>&nbsp;defaultPolicy,
243                 <A HREF="http://java.sun.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</A>&lt;<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A>&lt;? extends <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</A>&gt;,<A HREF="../../../../../../org/apache/hadoop/io/retry/RetryPolicy.html" title="interface in org.apache.hadoop.io.retry">RetryPolicy</A>&gt;&nbsp;exceptionToPolicyMap)</CODE>
244
245<BR>
246&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
247 Set a default policy with some explicit handlers for specific exceptions.</TD>
248</TR>
249<TR BGCOLOR="white" CLASS="TableRowColor">
250<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
251<CODE>static&nbsp;<A HREF="../../../../../../org/apache/hadoop/io/retry/RetryPolicy.html" title="interface in org.apache.hadoop.io.retry">RetryPolicy</A></CODE></FONT></TD>
252<TD><CODE><B>RetryPolicies.</B><B><A HREF="../../../../../../org/apache/hadoop/io/retry/RetryPolicies.html#retryByRemoteException(org.apache.hadoop.io.retry.RetryPolicy, java.util.Map)">retryByRemoteException</A></B>(<A HREF="../../../../../../org/apache/hadoop/io/retry/RetryPolicy.html" title="interface in org.apache.hadoop.io.retry">RetryPolicy</A>&nbsp;defaultPolicy,
253                       <A HREF="http://java.sun.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</A>&lt;<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A>&lt;? extends <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</A>&gt;,<A HREF="../../../../../../org/apache/hadoop/io/retry/RetryPolicy.html" title="interface in org.apache.hadoop.io.retry">RetryPolicy</A>&gt;&nbsp;exceptionToPolicyMap)</CODE>
254
255<BR>
256&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
257 A retry policy for RemoteException
258 Set a default policy with some explicit handlers for specific exceptions.</TD>
259</TR>
260</TABLE>
261&nbsp;
262<P>
263
264<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
265<TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor">
266<TH ALIGN="left" COLSPAN="2">Method parameters in <A HREF="../../../../../../org/apache/hadoop/io/retry/package-summary.html">org.apache.hadoop.io.retry</A> with type arguments of type <A HREF="../../../../../../org/apache/hadoop/io/retry/RetryPolicy.html" title="interface in org.apache.hadoop.io.retry">RetryPolicy</A></FONT></TH>
267</TR>
268<TR BGCOLOR="white" CLASS="TableRowColor">
269<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
270<CODE>static&nbsp;<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></CODE></FONT></TD>
271<TD><CODE><B>RetryProxy.</B><B><A HREF="../../../../../../org/apache/hadoop/io/retry/RetryProxy.html#create(java.lang.Class, java.lang.Object, java.util.Map)">create</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A>&lt;?&gt;&nbsp;iface,
272       <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A>&nbsp;implementation,
273       <A HREF="http://java.sun.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</A>&lt;<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>,<A HREF="../../../../../../org/apache/hadoop/io/retry/RetryPolicy.html" title="interface in org.apache.hadoop.io.retry">RetryPolicy</A>&gt;&nbsp;methodNameToPolicyMap)</CODE>
274
275<BR>
276&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
277 Create a proxy for an interface of an implementation class
278 using the a set of retry policies specified by method name.</TD>
279</TR>
280<TR BGCOLOR="white" CLASS="TableRowColor">
281<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
282<CODE>static&nbsp;<A HREF="../../../../../../org/apache/hadoop/io/retry/RetryPolicy.html" title="interface in org.apache.hadoop.io.retry">RetryPolicy</A></CODE></FONT></TD>
283<TD><CODE><B>RetryPolicies.</B><B><A HREF="../../../../../../org/apache/hadoop/io/retry/RetryPolicies.html#retryByException(org.apache.hadoop.io.retry.RetryPolicy, java.util.Map)">retryByException</A></B>(<A HREF="../../../../../../org/apache/hadoop/io/retry/RetryPolicy.html" title="interface in org.apache.hadoop.io.retry">RetryPolicy</A>&nbsp;defaultPolicy,
284                 <A HREF="http://java.sun.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</A>&lt;<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A>&lt;? extends <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</A>&gt;,<A HREF="../../../../../../org/apache/hadoop/io/retry/RetryPolicy.html" title="interface in org.apache.hadoop.io.retry">RetryPolicy</A>&gt;&nbsp;exceptionToPolicyMap)</CODE>
285
286<BR>
287&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
288 Set a default policy with some explicit handlers for specific exceptions.</TD>
289</TR>
290<TR BGCOLOR="white" CLASS="TableRowColor">
291<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
292<CODE>static&nbsp;<A HREF="../../../../../../org/apache/hadoop/io/retry/RetryPolicy.html" title="interface in org.apache.hadoop.io.retry">RetryPolicy</A></CODE></FONT></TD>
293<TD><CODE><B>RetryPolicies.</B><B><A HREF="../../../../../../org/apache/hadoop/io/retry/RetryPolicies.html#retryByRemoteException(org.apache.hadoop.io.retry.RetryPolicy, java.util.Map)">retryByRemoteException</A></B>(<A HREF="../../../../../../org/apache/hadoop/io/retry/RetryPolicy.html" title="interface in org.apache.hadoop.io.retry">RetryPolicy</A>&nbsp;defaultPolicy,
294                       <A HREF="http://java.sun.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</A>&lt;<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A>&lt;? extends <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</A>&gt;,<A HREF="../../../../../../org/apache/hadoop/io/retry/RetryPolicy.html" title="interface in org.apache.hadoop.io.retry">RetryPolicy</A>&gt;&nbsp;exceptionToPolicyMap)</CODE>
295
296<BR>
297&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
298 A retry policy for RemoteException
299 Set a default policy with some explicit handlers for specific exceptions.</TD>
300</TR>
301</TABLE>
302&nbsp;
303<P>
304<HR>
305
306
307<!-- ======= START OF BOTTOM NAVBAR ====== -->
308<A NAME="navbar_bottom"><!-- --></A>
309<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
310<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
311<TR>
312<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
313<A NAME="navbar_bottom_firstrow"><!-- --></A>
314<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
315  <TR ALIGN="center" VALIGN="top">
316  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
317  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
318  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../org/apache/hadoop/io/retry/RetryPolicy.html" title="interface in org.apache.hadoop.io.retry"><FONT CLASS="NavBarFont1"><B>Class</B></FONT></A>&nbsp;</TD>
319  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT>&nbsp;</TD>
320  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
321  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
322  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
323  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
324  </TR>
325</TABLE>
326</TD>
327<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
328</EM>
329</TD>
330</TR>
331
332<TR>
333<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
334&nbsp;PREV&nbsp;
335&nbsp;NEXT</FONT></TD>
336<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
337  <A HREF="../../../../../../index.html?org/apache/hadoop/io/retry//class-useRetryPolicy.html" target="_top"><B>FRAMES</B></A>  &nbsp;
338&nbsp;<A HREF="RetryPolicy.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
339&nbsp;<SCRIPT type="text/javascript">
340  <!--
341  if(window==top) {
342    document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
343  }
344  //-->
345</SCRIPT>
346<NOSCRIPT>
347  <A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>
348</NOSCRIPT>
349
350
351</FONT></TD>
352</TR>
353</TABLE>
354<A NAME="skip-navbar_bottom"></A>
355<!-- ======== END OF BOTTOM NAVBAR ======= -->
356
357<HR>
358Copyright &copy; 2009 The Apache Software Foundation
359</BODY>
360</HTML>
Note: See TracBrowser for help on using the repository browser.