Examples of DeploymentStatusImpl


Examples of com.sun.appserv.management.deploy.DeploymentStatusImpl

      //trace( "DeployThread.run: deploy() successful for: " + getID()  );
    }
    catch( Throwable t )
    {
      mDeploymentStatus  =
      new DeploymentStatusImpl(
        -1,
        "failure",
        "description",
        null );
       
View Full Code Here

Examples of com.sun.appserv.management.deploy.DeploymentStatusImpl

            DeploymentRequestRegistry.getRegistry().removeDeploymentRequest( mModuleID);

            final Map<String,Serializable>  m =
                TypeCast.checkMap( ds.asMap(), String.class, Serializable.class );
               
            return new DeploymentStatusImpl( m );
        }
       
        catch(Exception e)
        {
            com.sun.enterprise.deployment.backend.DeploymentStatus ds =
                new com.sun.enterprise.deployment.backend.DeploymentStatus();
            ds.setStageException(e);
            ds.setStageStatus(com.sun.enterprise.deployment.backend.DeploymentStatus.FAILURE);
            ds.setStageStatusMessage(e.getMessage());
            ds.setStageDescription("UnDeployment");
            DeploymentRequestRegistry.getRegistry().removeDeploymentRequest(
                mModuleID);
               
            final Map<String,Serializable>  m =
                TypeCast.checkMap( ds.asMap(), String.class, Serializable.class );
               
            return new DeploymentStatusImpl( m );
        }
    }          
View Full Code Here

Examples of com.sun.appserv.management.deploy.DeploymentStatusImpl

                moduleID);
           
            final Map<String,Serializable> m    =
                TypeCast.checkMap( ds.asMap(), String.class, Serializable.class );
           
            return new DeploymentStatusImpl( m );
        } catch(Exception e) {
            com.sun.enterprise.deployment.backend.DeploymentStatus ds =
                new com.sun.enterprise.deployment.backend.DeploymentStatus();
            ds.setStageException(e);
            ds.setStageStatus(com.sun.enterprise.deployment.backend.DeploymentStatus.FAILURE);     
            ds.setStageStatusMessage(e.getMessage());
            ds.setStageDescription("Deployment");
            DeploymentRequestRegistry.getRegistry().removeDeploymentRequest(
                moduleID);
           
            final Map<String,Serializable> m    =
                TypeCast.checkMap( ds.asMap(), String.class, Serializable.class );
            return new DeploymentStatusImpl( m );
        }  
    }
View Full Code Here

Examples of org.jboss.as.ee.deployment.spi.status.DeploymentStatusImpl

            isModuleArchive = new FileInputStream(moduleArchive);
            isDeploymentPlan = new FileInputStream(deploymentPlan);
            return distribute(targets, isModuleArchive, isDeploymentPlan);
        } catch (FileNotFoundException e) {
            String message = MESSAGES.cannotFindDeploymentFile(e.getMessage());
            DeploymentStatus status = new DeploymentStatusImpl(StateType.FAILED, CommandType.DISTRIBUTE, ActionType.EXECUTE, message);
            ROOT_LOGGER.errorf(message);
            return new ProgressObjectImpl(status, null);
        }
    }
View Full Code Here

Examples of org.jboss.as.ee.deployment.spi.status.DeploymentStatusImpl

                File contentFile = moduleInfo.getContentFile();
                targetModuleIDs[i] = new TargetModuleIDImpl(target, moduleID, null, type, contentFile);
            }
        } catch (IOException e) {
            String message = MESSAGES.deploymentValidationFailed();
            DeploymentStatus status = new DeploymentStatusImpl(StateType.FAILED, CommandType.DISTRIBUTE, ActionType.EXECUTE, message);
            ROOT_LOGGER.errorf(e, message);
            state.cleanup();
            return new ProgressObjectImpl(status, targetModuleIDs);
        }

        // start the deployment process
        DeploymentStatus status = new DeploymentStatusImpl(StateType.RUNNING, CommandType.DISTRIBUTE, ActionType.EXECUTE, null);
        ProgressObject progress = new ProgressObjectImpl(status, targetModuleIDs);

        DeploymentWorker worker = new DeploymentWorker(progress, state);
        worker.start();
View Full Code Here

Examples of org.jboss.as.ee.deployment.spi.status.DeploymentStatusImpl

            throw new IllegalStateException(MESSAGES.deploymentManagerNotConnected());

        ROOT_LOGGER.debugf("start %s", Arrays.asList(targetModuleIDs));

        // start the deployment process
        DeploymentStatus status = new DeploymentStatusImpl(StateType.RUNNING, CommandType.START, ActionType.EXECUTE, null);
        ProgressObject progress = new ProgressObjectImpl(status, targetModuleIDs);

        DeploymentWorker worker = new DeploymentWorker(progress, null);
        worker.start();
View Full Code Here

Examples of org.jboss.as.ee.deployment.spi.status.DeploymentStatusImpl

        if (isConnected == false)
            throw new IllegalStateException(MESSAGES.deploymentManagerNotConnected());

        ROOT_LOGGER.debugf("stop %s", Arrays.asList(targetModuleIDs));

        DeploymentStatus status = new DeploymentStatusImpl(StateType.RUNNING, CommandType.STOP, ActionType.EXECUTE, null);
        ProgressObject progress = new ProgressObjectImpl(status, targetModuleIDs);

        DeploymentWorker worker = new DeploymentWorker(progress, null);
        worker.start();
View Full Code Here

Examples of org.jboss.as.ee.deployment.spi.status.DeploymentStatusImpl

            throw new IllegalStateException(MESSAGES.deploymentManagerNotConnected());

        ROOT_LOGGER.debugf("undeploy %s", Arrays.asList(targetModuleIDs));

        // start the deployment process
        DeploymentStatus status = new DeploymentStatusImpl(StateType.RUNNING, CommandType.UNDEPLOY, ActionType.EXECUTE, null);
        ProgressObject progress = new ProgressObjectImpl(status, targetModuleIDs);

        DeploymentWorker worker = new DeploymentWorker(progress, null);
        worker.start();
View Full Code Here

Examples of org.jboss.as.ee.deployment.spi.status.DeploymentStatusImpl

            isDeploymentPlan = new FileInputStream(deploymentPlan);
            return distribute(targets, isModuleArchive, isDeploymentPlan);
        } catch (FileNotFoundException e) {
            String message = "Cannot find deployment file" + e.getMessage();
            log.error(message, e);
            DeploymentStatus status = new DeploymentStatusImpl(StateType.FAILED, CommandType.DISTRIBUTE, ActionType.EXECUTE, message);
            return new ProgressObjectImpl(status, null);
        }
    }
View Full Code Here

Examples of org.jboss.as.ee.deployment.spi.status.DeploymentStatusImpl

                    file.delete();
            }
        } catch (IOException e) {
            String message = "Exception during deployment validation";
            log.error(message, e);
            DeploymentStatus status = new DeploymentStatusImpl(StateType.FAILED, CommandType.DISTRIBUTE, ActionType.EXECUTE, message);
            return new ProgressObjectImpl(status, targetModuleIDs);
        }

        // start the deployment process
        DeploymentStatus status = new DeploymentStatusImpl(StateType.RUNNING, CommandType.DISTRIBUTE, ActionType.EXECUTE, null);
        ProgressObject progress = new ProgressObjectImpl(status, targetModuleIDs);

        DeploymentWorker worker = new DeploymentWorker(progress);
        worker.start();
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.