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

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


         } else {
            throw new Exception("Kill job returned false");
         }

      } catch (Exception e) {
         throw new CmdLineActionException("Failed to kill job '" + jobId
               + "' : " + e.getMessage(), e);
      }
   }
View Full Code Here


         printer.println("Condition: [id=" + condition.getConditionId()
               + ", name=" + condition.getConditionName() + ", order="
               + condition.getOrder() + ", class="
               + condition.getClass().getName() + "]");
      } catch (Exception e) {
         throw new CmdLineActionException(
               "Failed to get condition by id for conditionId '" + conditionId
                     + "' : " + e.getMessage(), e);
      }
   }
View Full Code Here

         printer.println("Queues:");
         for (String queueName : queueNames)
            printer.println(" - " + queueName);
         printer.println();
      } catch (Exception e) {
         throw new CmdLineActionException("Failed to get queues : "
               + e.getMessage(), e);
      }
   }
View Full Code Here

         ref.setOrigReference(getUri(origRef).toString());

         printer.println("Reference: [origRef=" + origRef + ",transferPct="
               + getClient().getRefPctTransferred(ref) + "]");
      } catch (Exception e) {
         throw new CmdLineActionException(
               "Failed to get percent transfered for" + " file '" + origRef
                     + "' : " + e.getMessage(), e);
      }
   }
View Full Code Here

                  + p.getProductType().getName() + ",structure="
                  + p.getProductStructure() + ", transferStatus="
                  + p.getTransferStatus() + "]");
         }
      } catch (Exception e) {
         throw new CmdLineActionException(
               "Failed to get first page of products for"
                     + " ProductType name '" + productTypeName + "' : "
                     + e.getMessage(), e);
      }
   }
View Full Code Here

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

         getClient().addQueue(queueName);
         printer.println("Successfully added queue!");
      } catch (Exception e) {
         throw new CmdLineActionException("Failed to add queue with name '"
               + queueName + "' : " + e.getMessage(), e);
      }
   }
View Full Code Here

      try {
         String instId = getClient().executeDynamicWorkflow(taskIds, metadata);
         printer.println("Started dynamic workflow with id '" + instId + "'");
      } catch (Exception e) {
         throw new CmdLineActionException(
               "Failed to submit dynamic workflow for taskIds " + taskIds
                     + " with metadata " + metadata.getHashtable() + " : "
                     + e.getMessage(), e);
      }
   }
View Full Code Here

         type.setVersioner(versioner);

         printer.println("addProductType: Result: "
               + getClient().addProductType(type));
      } catch (Exception e) {
         throw new CmdLineActionException("Failed to add product type with "
               + "name '" + productTypeName + "', description '"
               + productTypeDescription + "', repository '"
               + fileRepositoryPath + ", and versioner '" + versioner + "' : "
               + e.getMessage(), e);
      }
View Full Code Here

               + task.getTaskName() + ", order=" + task.getOrder() + ", class="
               + task.getClass().getName() + ", numConditions="
               + task.getConditions().size() + ", configuration="
               + task.getTaskConfig().getProperties() + "]");
      } catch (Exception e) {
         throw new CmdLineActionException(
               "Failed to get task by id for taskId '" + taskId + "' : "
                     + e.getMessage(), e);
      }
   }
View Full Code Here

               printer.println("    - " + ref.getDataStoreReference()
                     + " (" + ref.getFileSize() + ")");
            }
         }
      } catch (Exception e) {
         throw new CmdLineActionException("Failed to get product info : "
               + e.getMessage(), e);
      }
   }
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.