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

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


                  + "'");
         } else {
            throw new Exception("Resume workflow returned false");
         }
      } catch (Exception e) {
         throw new CmdLineActionException("Failed to resume workflow '"
               + instanceId + "' : " + e.getMessage(), e);
      }
   }
View Full Code Here


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

         String result = getClient().getNodeLoad(nodeId);
         printer.println("Load for node '" + nodeId + "': " + result);
      } catch (Exception e) {
         throw new CmdLineActionException("Failed to get node load for node '"
               + nodeId + "' : " + e.getMessage(), e);
      }
   }
View Full Code Here

                  + client.getWorkflowCurrentTaskWallClockMinutes(inst.getId())
                  + "]");
         }

      } catch (Exception e) {
         throw new CmdLineActionException(
               "Failed to get first page of workflows : " + e.getMessage(), e);
      }
   }
View Full Code Here

         printer.println("Nodes in Queue '" + queueName + "':");
         for (String nodeId : nodeIds)
            printer.println(" - " + nodeId);
         printer.println();
      } catch (Exception e) {
         throw new CmdLineActionException("Failed to get nodes in queue '"
               + queueName + "' : " + e.getMessage(), e);
      }
   }
View Full Code Here

         }
         for (String event : events) {
            printer.println("Event: [name=" + event + "]");
         }
      } catch (Exception e) {
         throw new CmdLineActionException("Failed to get registered events : "
               + e.getMessage(), e);
      }
   }
View Full Code Here

         product.setProductId(productId);

         printer.println("Product: [id=" + productId + ", transferPct="
               + client.getProductPctTransferred(product) + "]");
      } catch (Exception e) {
         throw new CmdLineActionException("Failed to get percent transferred"
               + " for product id '" + productId + "' and ProductType name '"
               + productTypeName + "' : " + e.getMessage(), e);
      }
   }
View Full Code Here

         for (ResourceNode node : nodes) {
            printer.println("node: [id=" + node.getNodeId() + ",capacity="
                  + node.getCapacity() + ",url=" + node.getIpAddr() + "]");
         }
      } catch (Exception e) {
         throw new CmdLineActionException("Failed to get nodes : "
               + e.getMessage(), e);
      }
   }
View Full Code Here

                  + ",currentTaskWallClockTime="
                  + client.getWorkflowCurrentTaskWallClockMinutes(inst.getId())
                  + "]");
         }
      } catch (Exception e) {
         throw new CmdLineActionException(
               "Failed to get previous page of workflows for " + "pageNum '"
                     + pageNum + "' and status '" + status + "' : "
                     + e.getMessage(), e);
      }
   }
View Full Code Here

                  + ",currentTaskWallClockTime="
                  + client.getWorkflowCurrentTaskWallClockMinutes(inst.getId())
                  + "]");
         }
      } catch (Exception e) {
         throw new CmdLineActionException(
               "Failed to get last page of workflows with " + "status '"
                     + status + "' : " + e.getMessage(), e);
      }
   }
View Full Code Here

   protected Product getProductToDelete() throws Exception {
      Validate.notNull(productName, "Must specify productName");

      Product p = getClient().getProductByName(productName);
      if (p == null) {
         throw new CmdLineActionException(
               "FileManager returned null for product '" + productName + "'");
      }
      return p;
   }
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.