org.apache.oozie.client.retry
Class ConnectionRetriableClient

java.lang.Object
  extended by org.apache.oozie.client.retry.ConnectionRetriableClient

public abstract class ConnectionRetriableClient
extends Object

HTTP connection retryable class. It retries =oozie.connection.retry.count= times for ConnectException. For SocketException all create connection are retried except =PUT= and =POST=.


Constructor Summary
ConnectionRetriableClient(int retryCount)
           
 
Method Summary
abstract  Object doExecute(URL url, String method)
           
 Object execute(URL url, String method)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectionRetriableClient

public ConnectionRetriableClient(int retryCount)
Method Detail

execute

public Object execute(URL url,
                      String method)
               throws IOException
Throws:
IOException

doExecute

public abstract Object doExecute(URL url,
                                 String method)
                          throws Exception
Throws:
Exception


Copyright © 2014 Apache Software Foundation. All Rights Reserved.