Package javax.enterprise.deploy.spi.status

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


        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

        }

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

    }

    ProgressEvent[] events = new ProgressEvent[_targetModuleIDs.length];

    for (int i = 0; i < _targetModuleIDs.length; i++)
      events[i] = new ProgressEvent(this, _targetModuleIDs[i], _status);

    for (ProgressListener listener : listeners) {
      for (ProgressEvent event : events)
        listener.handleProgressEvent(event);
    }
View Full Code Here

        EasyMock.replay(log);
        EasyMock.replay(taskProgress);
        EasyMock.replay(moduleStartable);
        EasyMock.replay(deploymentStatus);
       
        ProgressEvent progressEvent = new ProgressEvent(
                this, null, deploymentStatus);
       
        DeployedProgressListener deployedProgressListener
                = new DeployedProgressListener(log, moduleStartable,
                taskProgress, true, true);
View Full Code Here

        EasyMock.replay(log);
        EasyMock.replay(taskProgress);
        EasyMock.replay(moduleStartable);
        EasyMock.replay(deploymentStatus);
       
        ProgressEvent progressEvent = new ProgressEvent(
                this, null, deploymentStatus);
       
        DeployedProgressListener deployedProgressListener
                = new DeployedProgressListener(log, moduleStartable,
                taskProgress, true, true);
View Full Code Here

        EasyMock.replay(log);
        EasyMock.replay(taskProgress);
        EasyMock.replay(moduleStartable);
        EasyMock.replay(deploymentStatus);
       
        ProgressEvent progressEvent = new ProgressEvent(
                this, null, deploymentStatus);
       
        DeployedProgressListener deployedProgressListener
                = new DeployedProgressListener(log, moduleStartable,
                taskProgress, false, true);
View Full Code Here

       
        EasyMock.replay(taskProgress);
        EasyMock.replay(moduleStartable);
        EasyMock.replay(deploymentStatus);
       
        ProgressEvent progressEvent = new ProgressEvent(
                this, null, deploymentStatus);
       
        DeployedProgressListener deployedProgressListener
                = new DeployedProgressListener(log, moduleStartable,
                taskProgress, false, true);
View Full Code Here

        EasyMock.expect(deploymentStatus.isFailed()).andReturn(false);
       
        EasyMock.replay(moduleStartable);
        EasyMock.replay(deploymentStatus);
       
        ProgressEvent progressEvent = new ProgressEvent(
                this, null, deploymentStatus);
       
        DeployedProgressListener deployedProgressListener
                = new DeployedProgressListener(log, moduleStartable,
                taskProgress, false, true);
View Full Code Here

       
        EasyMock.replay(log);
        EasyMock.replay(taskProgress);
        EasyMock.replay(deploymentStatus);
       
        ProgressEvent progressEvent = new ProgressEvent(
                this, null, deploymentStatus);
       
        DefaultProgressListener defaultProgressListener
                = new DefaultProgressListener(log, taskProgress, true);
       
View Full Code Here

TOP

Related Classes of javax.enterprise.deploy.spi.status.ProgressEvent

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.