Examples of Status


Examples of com.twitter.ambrose.model.WorkflowSummary.Status

  /**
   * Main method
   */
  public static void main(String[] args) throws IOException {
    String cluster = args.length > 0 ? args[0] : "dw@smf1";
    Status status = args.length > 1
        ? Status.valueOf(args[1]) : Status.SUCCEEDED;
        String username = args.length > 2 ? args[2] : null;

        HRavenWorkflowIndexReadService service = new HRavenWorkflowIndexReadService();
        PaginatedList<WorkflowSummary> paginatedList =
View Full Code Here

Examples of com.vmware.bdd.apitypes.TaskRead.Status

               .getCurrentProgress(jobExecutionId));
      } else {
         jobStatus.setProgress(mainJobExecutionStatusHolder
               .getCurrentProgress(jobExecutionId));
      }
      Status status = null;
      switch (jobExecution.getStatus()) {
      case ABANDONED:
         status = Status.ABANDONED;
         break;
      case COMPLETED:
         status = Status.COMPLETED;
         break;
      case FAILED:
         status = Status.FAILED;
         break;
      case STARTED:
         status = Status.STARTED;
         break;
      case STARTING:
         status = Status.STARTING;
         break;
      case STOPPED:
         status = Status.STOPPED;
         break;
      case STOPPING:
         status = Status.STOPPING;
         break;
      case UNKNOWN:
      default:
         status = Status.UNKNOWN;
      }
      jobStatus.setStatus(status);
      if (subJobEnabled == 1) {
         List<NodeOperationStatus> succeedNodes =
               (ArrayList<NodeOperationStatus>) jobExecution.getExecutionContext()
                     .get(JobConstants.SUB_JOB_NODES_SUCCEED);
         List<NodeOperationStatus> failNodes =
               (ArrayList<NodeOperationStatus>) jobExecution.getExecutionContext()
                     .get(JobConstants.SUB_JOB_NODES_FAIL);
         if (succeedNodes != null) {
            jobStatus.setSucceedNodes(convert(succeedNodes));
         }
         if (failNodes != null) {
            jobStatus.setFailNodes(convert(failNodes));
         }
      }
      if (status.equals(Status.FAILED) && subJobEnabled != 1) {
         String workDir =
               TrackableTasklet.getFromJobExecutionContext(
                     jobExecution.getExecutionContext(),
                     JobConstants.CURRENT_COMMAND_WORK_DIR, String.class);
         String errorMessage =
View Full Code Here

Examples of com.webhiker.dreambox.api.status.Status

  private final DreamboxAPI dbapi;
  private JButton shutdownButton,rebootButton,standbyButton;

  public ControlForm(final DreamboxAPI dba) {
    dbapi = dba;
    Status status;
    try {
      status = dba.getStatus();
    }
    catch (IOException e1) {
       status = new Status();
    }
    JToolBar toolbar = new JToolBar(JToolBar.VERTICAL);
    if (status.isStandby()) {
      toolbar.add(standbyButton = new JButton("Wakeup",new ImageIcon(getClass().getResource("/toolbarButtonGraphics/general/Information16.gif"))));
    }
    else {
      toolbar.add(standbyButton = new JButton("Standby",new ImageIcon(getClass().getResource("/toolbarButtonGraphics/general/Information16.gif"))));
    }
    standbyButton.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent arg0) {
        try {
          Status status = dba.getStatus();
          if (status.isStandby()) {
            dbapi.command(Command.WAKEUP);
            ((JButton)arg0.getSource()).setText("Standby");
          }
          else {
            dbapi.command(Command.STANDBY);
View Full Code Here

Examples of de.innovationgate.wgpublisher.webtml.Navigator.Status

public class Languages extends Navigator /**
   * @throws WGAPIException
* @see Navigator#tmlStartTag(TMLContext)
   */
  public void tmlStartTag() throws TMLException, WGAPIException {
      Status status = (Status) getStatus();
        status.navType = "languages";
    super.tmlStartTag();
  }
View Full Code Here

Examples of de.innovationgate.wgpublisher.webtml.Select.Status

        If.Status parentTag = null;
    }
   
    @Override
    protected BaseTagStatus createTagStatus() {
        return new Status();
    }
View Full Code Here

Examples of de.martinet.apps.tcgui.domain.Status

  public Status getStatus() {
    String command = "truecrypt -v -l";
    ArrayList<String> res = execute(command);

    // creating a new status to be filled with the parsed information
    Status status = new Status();

    //
    status
        .getStati()
        .addAll(
            (Collection<? extends MappingInformation>) buildMappingInformation(res));
    return status;
View Full Code Here

Examples of de.umass.lastfm.Result.Status

    try {
      Document document = newDocumentBuilder()
          .parse(new InputSource(new InputStreamReader(inputStream, "UTF-8")));
      Element root = document.getDocumentElement(); // lfm element
      String statusString = root.getAttribute("status");
      Status status = "ok".equals(statusString) ? Status.OK : Status.FAILED;
      if (status == Status.FAILED) {
        if (cache != null)
          cache.remove(cacheEntryName); // if request was failed remove from cache
        Element error = (Element) root.getElementsByTagName("error").item(0);
        int errorCode = Integer.parseInt(error.getAttribute("code"));
View Full Code Here

Examples of edu.brown.hstore.Hstoreservice.Status

                          HStoreThreadManager.formatSiteName(request.getSenderSite())));
           
            Long txnId = request.getTransactionId();
            AbstractTransaction ts = hstore_site.getTransaction(txnId);
            String debug;
            Status status;
            if (ts != null) {
                debug = ts.debug();
                status = Status.OK;
            } else {
                debug = "";
View Full Code Here

Examples of edu.drexel.cs544.mcmuc.actions.Presence.Status

                } else if (command.getCommand() == CLICommand.Command.USEROOM) {
                    controller.useRoom(command.getArg(1), command.getArg(0));
                } else if (command.getCommand() == CLICommand.Command.LEAVEROOM) {
                    controller.leaveRoom(command.getArg(0));
                } else if (command.getCommand() == CLICommand.Command.PRESENCE) {
                    Status s;
                    if (command.getArg(1).equalsIgnoreCase("Online"))
                        s = Status.Online;
                    else if (command.getArg(1).equalsIgnoreCase("Offline"))
                        s = Status.Offline;
                    else {
View Full Code Here

Examples of edu.hawaii.ics.csdl.jupiter.model.reviewissue.Status

    this.validWontfix = new Resolution(resolutionKey, 4);
    resolutionKey = ResourceBundleKey.ITEM_KEY_RESOLUTION_INVALID_WONTFIX;
    this.invalidWontfix = new Resolution(resolutionKey, 5);
    resolutionKey = ResourceBundleKey.ITEM_KEY_RESOLUTION_UNSURE_VALIDITY;
    this.unsureValidity = new Resolution(resolutionKey, 6);
    this.unresolved = new Status(ResourceBundleKey.ITEM_KEY_STATUS_UNRESOLVED, 0);
    this.resolved = new Status(ResourceBundleKey.ITEM_KEY_STATUS_RESOLVED, 1);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.