Package org.apache.oodt.cas.pushpull.exceptions

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


  public ProtocolFile getCurrentWorkingDir() throws ProtocolException {
    try {
      return new ProtocolFile(this.getRemoteSite(), currentPath);
    } catch (Exception e) {
      throw new ProtocolException("Failed to get current working directory : "
          + e.getMessage());
    }
  }
View Full Code Here


        }
        linkChildren.put(path.getLink().toString(), children);

      } catch (Exception e) {
        e.printStackTrace();
        throw new ProtocolException("Failed to get children links for " + path
            + " : " + e.getMessage());
      }
    }
    return children;
  }
View Full Code Here

              isDir, new URL("http://"
                  + this.getRemoteSite().getURL().getHost() + path), curPath));
      }
      return new ProtocolFile(this.getRemoteSite(), curPath);
    } catch (Exception e) {
      throw new ProtocolException("Failed to get ProtocolPath for " + path);
    }
  }
View Full Code Here

                                "Failed to instanciate protocol " + clazz
                                        + " for " + remoteSite.getURL());
                    }
                }
                if (protocol == null)
                    throw new ProtocolException(
                            "Failed to get appropriate protocol for "
                                    + remoteSite);
            } else {
                connect(protocol = protocolFactory.newInstance(), remoteSite,
                        false);
View Full Code Here

                        new ProtocolPath(remoteSite.getCdTestDir(), true)));
            else
                this.cdToROOT(protocol);
            this.cdToHOME(protocol);
            if (home == null || !home.equals(protocol.pwd()))
                throw new ProtocolException(
                        "Home directory not the same after cd");
        } catch (Exception e) {
            LOG.log(Level.SEVERE, "Protocol "
                    + protocol.getClass().getCanonicalName()
                    + " failed compatibility test : " + e.getMessage());
View Full Code Here

        RemoteSite remoteSite = pFile.getRemoteSite();
        if (validate(remoteSite))
            protocolHandler.cd(protocolHandler.getAppropriateProtocolBySite(
                    remoteSite, true), pFile);
        else
            throw new ProtocolException("Not a valid remote site " + remoteSite);
    }
View Full Code Here

            throws ProtocolException {
        if (validate(remoteSite))
            return protocolHandler.getHomeDir(protocolHandler
                    .getAppropriateProtocolBySite(remoteSite, true));
        else
            throw new ProtocolException("Not a valid remote site " + remoteSite);
    }
View Full Code Here

        if (validate(remoteSite))
            return protocolHandler.getProtocolFileFor(protocolHandler
                    .getAppropriateProtocolBySite(remoteSite, true), file,
                    isDir);
        else
            throw new ProtocolException("Not a valid remote site " + remoteSite);
    }
View Full Code Here

            MalformedURLException {
        if (validate(remoteSite))
            return protocolHandler.pwd(protocolHandler
                    .getAppropriateProtocolBySite(remoteSite, true));
        else
            throw new ProtocolException("Not a valid remote site " + remoteSite);
    }
View Full Code Here

            return addToDownloadQueue(protocolHandler.getProtocolFileFor(
                    protocolHandler.getAppropriateProtocolBySite(remoteSite,
                            true), file, false), renamingString, downloadToDir,
                    uniqueMetadataElement, deleteAfterDownload);
        } else
            throw new ProtocolException("Not a valid remote site " + remoteSite);
    }
View Full Code Here

TOP

Related Classes of org.apache.oodt.cas.pushpull.exceptions.ProtocolException

Copyright © 2018 www.massapicom. 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.