Examples of DeploymentStatusMessage


Examples of org.apache.geronimo.st.core.DeploymentStatusMessage

   * @see javax.enterprise.deploy.spi.status.ProgressListener#handleProgressEvent(javax.enterprise.deploy.spi.status.ProgressEvent)
   */
  public void handleProgressEvent(ProgressEvent event) {
    DeploymentStatus deploymentStatus = event.getDeploymentStatus();
    if (deploymentStatus != null) {
      DeploymentStatusMessage dsm = new DeploymentStatusMessage(deploymentStatus);
      Trace.trace(Trace.INFO, dsm.toString());
      _monitor.subTask(dsm.toString());
      if (command.getCommandType() == deploymentStatus.getCommand()) {
        if (deploymentStatus.isCompleted()) {
          messageToStatus(IStatus.OK, dsm.getMessage(), false);
          sendNotification();
        } else if (deploymentStatus.isFailed()) {
          messageToStatus(IStatus.ERROR, dsm.getMessage(), true);
          sendNotification();
        }
      }
    }
  }
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.