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

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


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


      try {
         printer.print("Sending event '" + eventName + "'... ");
         printer.println(getClient().sendEvent(eventName, metadata) ?
               "SUCCESS" : "FAILURE");
      } catch (Exception e) {
         throw new CmdLineActionException("Failed to send event '" + eventName
               + "' to url '" + getUrl() + "' with metadata '"
               + metadata.getHashtable() + "' : " + e.getMessage(), e);
      }
   }
View Full Code Here

               + jobInfo.getName() + ",queue=" + jobInfo.getQueueName()
               + ",load=" + jobInfo.getLoadValue() + ",inputClass="
               + jobInfo.getJobInputClassName() + ",instClass="
               + jobInfo.getJobInstanceClassName() + "]");
      } catch (Exception e) {
         throw new CmdLineActionException("Failed to get job info for job '"
               + jobId + "' : " + e.getMessage(), e);
      }
   }
View Full Code Here

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

         Validate.notNull("Must specify queueName");

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

      try {
         Metadata met = getClient().getWorkflowInstanceMetadata(instanceId);
         printer.println("[id=" + instanceId + ", met=" + met.getHashtable()
               + "]");
      } catch (Exception e) {
         throw new CmdLineActionException(
               "Failed to get metadata for workflow instance '" + instanceId
                     + "' : " + e.getMessage(), e);
      }
   }
View Full Code Here

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

         String execNode = getClient().getExecutionNode(jobId);
         printer.println("Executing node: " + execNode);
      } catch (Exception e) {
         throw new CmdLineActionException("Failed to get execution node for"
               + " job '" + jobId + "' : " + e.getMessage(), e);
      }
   }
View Full Code Here

                  + "'");
         } else {
            throw new Exception("Stop workflow returned false");
         }
      } catch (Exception e) {
         throw new CmdLineActionException("Failed to stop workflow '"
               + instanceId + "' : " + 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 list of workflow models from url '" + getUrl()
                     + "' : " + e.getMessage(), e);
      }
   }
View Full Code Here

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

         getClient().setNodeCapacity(nodeId, capacity);
         printer.println("Successfully set node capacity!");
      } catch (Exception e) {
         throw new CmdLineActionException("", 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.