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

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


            } else {
               throw new Exception("Job submit returned false");
            }
         }
      } catch (Exception e) {
         throw new CmdLineActionException("Failed to submit job for job"
               + " definition file '" + jobDefinitionFile + "' : "
               + e.getMessage(), e);
      }
   }
View Full Code Here


               + client.getWorkflowWallClockMinutes(inst.getId())
               + ",currentTaskWallClockTime="
               + client.getWorkflowCurrentTaskWallClockMinutes(inst.getId())
               + "]");
      } catch (Exception e) {
         throw new CmdLineActionException(
               "Failed to get workflow instance information for"
                     + " instanceId '" + instanceId + "' : " + e.getMessage(),
               e);
      }
   }
View Full Code Here

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

         getClient().addNode(new ResourceNode(nodeId, nodeUrl, capacity));
         printer.println("Successfully added node!");
      } catch (Exception e) {
         throw new CmdLineActionException("Failed to add node with nodeId '"
               + nodeId + "', nodeUrl '" + nodeUrl + "', and capacity '"
               + capacity + "' : " + e.getMessage(), e);
      }
   }
View Full Code Here

         Workflow workflow = getClient().getWorkflowById(workflowId);
         printer.println("Workflow: [id=" + workflow.getId() + ", name="
               + workflow.getName() + ", numTasks="
               + workflow.getTasks().size() + "]");
      } catch (Exception e) {
         throw new CmdLineActionException(
               "Failed to get workflow information for" + " workflowId '"
                     + workflowId + "' : " + e.getMessage(), e);
      }  
   }
View Full Code Here

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

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

            printer.println("Workflow: [id=" + workflow.getId() + ", name="
                  + workflow.getName() + ", numTasks="
                  + workflow.getTasks().size() + "]");
         }
      } catch (Exception e) {
         throw new CmdLineActionException(
               "Failed to get workflows by event name '" + eventName + "' : "
                     + e.getMessage(), e);
      }
   }
View Full Code Here

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

         getClient().removeNode(nodeId);
         printer.println("Successfully removed node!");
      } catch (Exception e) {
         throw new CmdLineActionException("Failed to remove node with id '"
               + nodeId + "' : " + e.getMessage(), e);
      }
   }
View Full Code Here

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

         getClient().removeNodeFromQueue(nodeId, queueName);
         printer.println("Successfully removed node from queue!");
      } catch (Exception e) {
         throw new CmdLineActionException("Failed to remove node '"
               + nodeId + "' from queue '" + queueName + "' : "
               + e.getMessage(), e);
      }
   }
View Full Code Here

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

         getClient().addNodeToQueue(nodeId, queueName);
         printer.println("Successfully added node to queue!");
      } catch (Exception e) {
         throw new CmdLineActionException("Failed to get add node '" + nodeId
               + "' to queue '" + queueName + "' : " + 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.