Examples of ProgressEvent


Examples of javax.enterprise.deploy.spi.status.ProgressEvent

    public void stop() throws OperationUnsupportedException {
        throw new OperationUnsupportedException("stop not supported");
    }

    public void addProgressListener(ProgressListener pol) {
        ProgressEvent event;
        synchronized (this) {
            listeners.add(pol);
            event = this.event;
        }
        if(event != null) {
View Full Code Here

Examples of javax.enterprise.deploy.spi.status.ProgressEvent

        synchronized (this) {
            this.message = message;
            this.state = state;
            newStatus = new Status(command, action, state, message);
            toNotify = (ProgressListener[]) listeners.toArray(new ProgressListener[listeners.size()]);
            event = new ProgressEvent(this, null, newStatus);
        }

        for (int i = 0; i < toNotify.length; i++) {
            toNotify[i].handleProgressEvent(event);
        }
View Full Code Here

Examples of javax.enterprise.deploy.spi.status.ProgressEvent

    public void stop() throws OperationUnsupportedException {
        throw new OperationUnsupportedException("stop not supported");
    }

    public void addProgressListener(ProgressListener pol) {
        ProgressEvent event = null;
        synchronized (this) {
            listeners.add(pol);
            event = this.event;
        }
        if (event != null) {
View Full Code Here

Examples of javax.enterprise.deploy.spi.status.ProgressEvent

        synchronized (this) {
            this.message = message;
            this.state = state;
            newStatus = new Status(command, action, state, message);
            toNotify = (ProgressListener[]) listeners.toArray(new ProgressListener[listeners.size()]);
            event = new ProgressEvent(this, null, newStatus);
        }

        for (int i = 0; i < toNotify.length; i++) {
            toNotify[i].handleProgressEvent(event);
        }
View Full Code Here

Examples of javax.enterprise.deploy.spi.status.ProgressEvent

     */
    public void sendProgressEvent(StateType stateType, String message, TargetModuleID moduleID) {
        ROOT_LOGGER.tracef("sendProgressEvent, state: %s, msg: %s", stateType, message);
        deploymentStatus.setStateType(stateType);
        deploymentStatus.setMessage(message);
        ProgressEvent progressEvent = new ProgressEvent(this, moduleID, deploymentStatus);
        for (int i = 0; i < listeners.size(); i++) {
            ProgressListener progressListener = (ProgressListener) listeners.get(i);
            progressListener.handleProgressEvent(progressEvent);
        }
    }
View Full Code Here

Examples of javax.enterprise.deploy.spi.status.ProgressEvent

        private final DeploymentStatus deploymentStatus;

        public ProgressObjectImpl(CommandType command, Set<TargetModuleID> targetModuleIds) {
            this.targetModuleIds = targetModuleIds;
            deploymentStatus = new DeploymentStatusImpl(command);
            event = new ProgressEvent(this, null, deploymentStatus);
        }
View Full Code Here

Examples of javax.enterprise.deploy.spi.status.ProgressEvent

        }

        public ProgressObjectImpl(CommandType command, Exception exception) {
            this.targetModuleIds = null;
            deploymentStatus = new DeploymentStatusImpl(command, exception);
            event = new ProgressEvent(this, null, deploymentStatus);
        }
View Full Code Here

Examples of net.java.sip.communicator.service.history.event.ProgressEvent

        }

        private void fireProgress(int origProgress, int maxVal,
            Date startDate, Date endDate, String[] keywords)
        {
            ProgressEvent ev = new ProgressEvent(
                MetaHistoryServiceImpl.this,
                startDate,
                endDate,
                keywords);

            double part1 = (double)origProgress/
                ((double)maxVal*count);
            double convProgress =
                part1*HistorySearchProgressListener.PROGRESS_MAXIMUM_VALUE +
                ix*HistorySearchProgressListener.PROGRESS_MAXIMUM_VALUE/count;

            ev.setProgress((int)convProgress);

            fireEvent(ev);
        }
View Full Code Here

Examples of net.java.sip.communicator.service.history.event.ProgressEvent

        }

        public void fireLastProgress(
            Date startDate, Date endDate, String[] keywords)
        {
            ProgressEvent ev = new ProgressEvent(
                MetaHistoryServiceImpl.this,
                startDate,
                endDate,
                keywords);
            ev.setProgress(HistorySearchProgressListener.PROGRESS_MAXIMUM_VALUE);

            fireEvent(ev);
        }
View Full Code Here

Examples of org.eclipse.zest.layouts.progress.ProgressEvent

      }
    }
  }

  protected void fireProgressStarted(int totalNumberOfSteps) {
    ProgressEvent event = new ProgressEvent(0, totalNumberOfSteps);
    for (int i = 0; i < progressListeners.size(); i++) {
      ProgressListener listener = (ProgressListener) progressListeners.get(i);

      listener.progressStarted(event);
    }
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.