Examples of changeStatus()


Examples of org.exist.management.Agent.changeStatus()

        agentInstance.changeStatus(brokerPool, new TaskStatus(TaskStatus.Status.INIT));

        if (paused) {
            LOG.info("Consistency check is paused.");
            agentInstance.changeStatus(brokerPool, new TaskStatus(TaskStatus.Status.PAUSED));
            return;
        }

        brokerPool.getProcessMonitor().startJob(ProcessMonitor.ACTION_BACKUP, null, monitor);
View Full Code Here

Examples of org.exist.management.Agent.changeStatus()

               
                report = openLog();
                final CheckCallback cb = new CheckCallback(report);

                final ConsistencyCheck check = new ConsistencyCheck(broker, false, checkDocs);
                agentInstance.changeStatus(brokerPool, new TaskStatus(TaskStatus.Status.RUNNING_CHECK));
                errors = check.checkAll(cb);
               
                if (!errors.isEmpty()) {
                    endStatus.setStatus(TaskStatus.Status.STOPPED_ERROR);
                    endStatus.setReason(errors);
View Full Code Here

Examples of org.exist.management.Agent.changeStatus()

            if (doBackup) {
                LOG.info("Starting backup...");

                final SystemExport sysexport = new SystemExport(broker, logCallback, monitor, false);
                lastExportedBackup = sysexport.export(exportDir, incremental, maxInc, createZip, errors);
                agentInstance.changeStatus(brokerPool, new TaskStatus(TaskStatus.Status.RUNNING_BACKUP));

                if (lastExportedBackup != null) {
                    LOG.info("Created backup to file: " + lastExportedBackup.getAbsolutePath());
                }
               
View Full Code Here

Examples of org.exist.management.Agent.changeStatus()

        } finally {
            if (report != null) {
                report.close();
            }
           
            agentInstance.changeStatus(brokerPool, endStatus);
            brokerPool.getProcessMonitor().endJob();
        }
    }

    /**
 
View Full Code Here

Examples of org.ofbiz.workflow.WfAssignment.changeStatus()

        // cancel the active assignments
        Iterator assignments = this.getAssignments().iterator();
        while (assignments.hasNext()) {
            WfAssignment assignment = (WfAssignment) assignments.next();
            assignment.changeStatus("CAL_CANCELLED");
        }
    }

    /**
     * @see org.ofbiz.workflow.WfActivity#isMemberOfAssignment(org.ofbiz.workflow.WfAssignment)
View Full Code Here

Examples of org.ofbiz.workflow.WfAssignment.changeStatus()

       
        // cancel the active assignments
        Iterator assignments = this.getAssignments().iterator();
        while (assignments.hasNext()) {
            WfAssignment assignment = (WfAssignment) assignments.next();           
            assignment.changeStatus("CAL_CANCELLED");
        }               
    }   

    /**
     * @see org.ofbiz.workflow.WfActivity#isMemberOfAssignment(org.ofbiz.workflow.WfAssignment)
View Full Code Here

Examples of ui.room.Room.changeStatus()

            case Message.NOTICE:
              sendMessageToRoom(m, r, strippedLine);
              break;
            case Message.CONSOLE:
              r.newMessage(strippedLine);
              r.changeStatus(Room.NEW_IRC_EVENT);
              break;
            }

            if (scrollDown)
              r.getOutput().setSelection(
View Full Code Here

Examples of ui.room.Room.changeStatus()

          r.newMessage(strippedLine, true);

          // TODO make a room function to handle this
          if (strippedLine.toLowerCase().contains(
              m.getBot().getNick().toLowerCase()))
            r.changeStatus(Room.NAME_CALLED);
          else
            r.changeStatus(Room.NEW_MESSAGE);
        }

        private void linkify(Room r, String strippedLine, String s) {
View Full Code Here

Examples of ui.room.Room.changeStatus()

          // TODO make a room function to handle this
          if (strippedLine.toLowerCase().contains(
              m.getBot().getNick().toLowerCase()))
            r.changeStatus(Room.NAME_CALLED);
          else
            r.changeStatus(Room.NEW_MESSAGE);
        }

        private void linkify(Room r, String strippedLine, String s) {
          Color blue = new Color(r.getOutput().getDisplay(), 0, 0,
              255);
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.