Package org.apache.oodt.cas.cli.exception

Examples of org.apache.oodt.cas.cli.exception.CmdLineActionException


         Validate.notNull(productName, "Must specify productName");

         printer.println("hasProduct: Result: "
               + getClient().hasProduct(productName));
      } catch (Exception e) {
         throw new CmdLineActionException("Failed to check for product '"
               + productName + "' : " + e.getMessage(), e);
      }
   }
View Full Code Here


      try {
         double wallClockTime = getClient().getWorkflowWallClockMinutes(
               instanceId);
         printer.println(wallClockTime + " minutes");
      } catch (Exception e) {
         throw new CmdLineActionException(
               "Failed to get wall clock time for instance '" + instanceId
                     + "' : " + e.getMessage(), e);
      }
   }
View Full Code Here

      try {
         double wallClockTime = getClient()
               .getWorkflowCurrentTaskWallClockMinutes(instanceId);
         printer.println(wallClockTime + " minutes");
      } catch (Exception e) {
         throw new CmdLineActionException(
               "Failed to get current workflow instance's "
                     + "currents tasks wall clock time : " + e.getMessage(), e);
      }
   }
View Full Code Here

         printer.println("ingestProduct: Result: "
               + client.ingestProduct(product,
                     new SerializableMetadata(getUri(metadataFile).toURL()
                           .openStream()), dataTransferer != null));
      } catch (Exception e) {
         throw new CmdLineActionException("Failed to ingest product '"
               + productName + "' : " + e.getMessage(), e);
      }
   }
View Full Code Here

                  + ",currentTaskWallClockTime="
                  + client.getWorkflowCurrentTaskWallClockMinutes(inst
                        .getId()) + "]");
         }
      } catch (Exception e) {
         throw new CmdLineActionException(
               "Failed to get workflow instances from URL '" + getUrl()
                     + "' : " + e.getMessage(), e);
      }
   }
View Full Code Here

               + status.getParentProduct().getProductName() + ",fileSize="
               + status.getFileRef().getFileSize() + ",amtTransferred="
               + status.getBytesTransferred() + ",pct="
               + status.computePctTransferred() + "]");
      } catch (Exception e) {
         throw new CmdLineActionException(
               "Failed to get current file transfer : " + e.getMessage(), e);
      }
   }
View Full Code Here

               .getName();
         File toFile = (toDir != null) ? new File(toDir, toFilename)
               : new File(toFilename);
         usedProtocol.get(fromFile, toFile.getAbsoluteFile());
      } catch (Exception e) {
         throw new CmdLineActionException("Failed to download : "
               + e.getMessage(), e);
      }
   }
View Full Code Here

         printer.println("Supported Factories:");
         for (ProtocolFactory factory : getProtocolManager().getFactories()) {
            System.out.println(" - " + factory.getClass().getCanonicalName());
         }
      } catch (Exception e) {
         throw new CmdLineActionException(
               "Failed to get supported factories : " + e.getMessage(), e);
      }
   }
View Full Code Here

                  + status.getFileRef().getFileSize() + ",amtTransferred="
                  + status.getBytesTransferred() + ",pct="
                  + status.computePctTransferred() + "]");
         }
      } catch (Exception e) {
         throw new CmdLineActionException(
               "Failed to get list of current file transfers : "
                     + e.getMessage(), e);
      }
   }
View Full Code Here

               - delimiter.length()));
         } else {
            printer.println("Query returned no results");
         }
      } catch (Exception e) {
         throw new CmdLineActionException("Failed to perform sql query : "
               + "sortBy '"
               + sortBy
               + "', "
               + "outputFormat '"
               + outputFormat
View Full Code Here

TOP

Related Classes of org.apache.oodt.cas.cli.exception.CmdLineActionException

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.