Examples of RemoteConnectionException


Examples of org.apache.oodt.cas.pushpull.exceptions.RemoteConnectionException

                else
                    this.cd(protocol, pFile.getParentFile());
            }
            return protocol;
        } catch (Exception e) {
            throw new RemoteConnectionException(
                    "Failed to get appropriate protocol for " + pFile + " : "
                            + e.getMessage());
        }
    }
View Full Code Here

Examples of org.apache.oodt.cas.pushpull.exceptions.RemoteConnectionException

            pgInfo.updatePageInfo(curLoc, fileList);

            return page;
        } catch (Exception e) {
            e.printStackTrace();
            throw new RemoteConnectionException(
                    "Failed getting next page for protocol " + protocol
                            + "-- pgStart = " + pgInfo.getPageLoc()
                            + " pgSize = " + pi.getPageSize() + " : "
                            + e.getMessage());
        }
View Full Code Here

Examples of org.apache.oodt.cas.pushpull.exceptions.RemoteConnectionException

            // rename file back to original name
            downloadFile.renameTo(toFile);

        } catch (Exception e) {
            downloadFile.delete();
            throw new RemoteConnectionException("Failed to download file "
                    + fromFile + " : " + e.getMessage());
        }
    }
View Full Code Here

Examples of org.apache.oodt.cas.pushpull.exceptions.RemoteConnectionException

        try {
            url = protocol.getRemoteSite().getURL();
            LOG.log(Level.INFO, "Disconnecting protocol from " + url);
            protocol.disconnect();
        } catch (Exception e) {
            throw new RemoteConnectionException("Error disconnecting from "
                    + url + " : " + e.getMessage());
        }
    }
View Full Code Here

Examples of org.apache.oodt.cas.pushpull.exceptions.RemoteConnectionException

            } catch (Exception e) {
                LOG.log(Level.WARNING, "Retrying to get next page for " + dir
                        + " because operation failed : " + e.getMessage());
            }
        }
        throw new RemoteConnectionException("Failed to get next page for "
                + dir);
    }
View Full Code Here

Examples of org.apache.oodt.cas.pushpull.exceptions.RemoteConnectionException

                                } catch (Exception e1) {
                                }
                            }
                        } else {
                            this.failedDownloadList.add(file);
                            throw new RemoteConnectionException(
                                    "Failed to get session to download " + file
                                            + " : " + e.getMessage());
                        }
                    }
                }
View Full Code Here

Examples of org.apache.oodt.cas.pushpull.exceptions.RemoteConnectionException

        else if (pFile.getParent() != null)
          this.cd(protocol, new RemoteSiteFile(pFile.getParent(), pFile.getSite()));
      }
      return protocol;
    } catch (Exception e) {
      throw new RemoteConnectionException(
          "Failed to get appropriate protocol for " + pFile + " : "
              + e.getMessage(), e);
    }
  }
View Full Code Here

Examples of org.apache.oodt.cas.pushpull.exceptions.RemoteConnectionException

      pgInfo.updatePageInfo(curLoc, fileList);

      return page;
    } catch (Exception e) {
      e.printStackTrace();
      throw new RemoteConnectionException(
          "Failed getting next page for protocol " + protocol + "-- pgStart = "
              + pgInfo.getPageLoc() + " pgSize = " + pi.getPageSize() + " : "
              + e.getMessage());
    }
View Full Code Here

Examples of org.apache.oodt.cas.pushpull.exceptions.RemoteConnectionException

      LOG.log(Level.INFO, "Finished downloading " + fromFile + " to " + toFile);

    } catch (Exception e) {
      downloadFile.delete();
      throw new RemoteConnectionException("Failed to download file " + fromFile
          + " : " + e.getMessage(), e);
    }
  }
View Full Code Here

Examples of org.apache.oodt.cas.pushpull.exceptions.RemoteConnectionException

  public void disconnect(Protocol protocol) throws RemoteConnectionException {
    try {
      LOG.log(Level.INFO, "Disconnecting protocol " + protocol.getClass().getName());
      protocol.close();
    } catch (Exception e) {
      throw new RemoteConnectionException("Error disconnecting " + protocol.getClass().getName()
          + " : " + e.getMessage());
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.