Package org.jboss.managed.api

Examples of org.jboss.managed.api.DeploymentState


    * @param trace is trace enabled
    * @throws Exception for any error
    */
   protected void processRootManagedDeployment(ManagedDeployment md, ProfileKey profile, boolean trace) throws Exception
   {
      DeploymentState state = getDeploymentState(md);
      processManagedDeployment(md, profile, state, 0, trace);
   }
View Full Code Here


      return state;
   }

   protected DeploymentState getDeploymentState(ManagedDeployment md)
   {
      DeploymentState state = md.getDeploymentState();
      if(state == DeploymentState.UNKNOWN && dispatcher != null)
      {
         Object name = md.getName();
         if(name != null)
         {
View Full Code Here

  
   public abstract ProfileKey getProfileKey();
  
   protected void processRootManagedDeployment(ManagedDeployment md, boolean trace) throws Exception
   {
      DeploymentState state = getDeploymentState(md);
      processManagedDeployment(md, state, 0, trace);     
   }
View Full Code Here

      return state;
   }
  
   protected DeploymentState getDeploymentState(ManagedDeployment md)
   {
      DeploymentState state = md.getDeploymentState();
      if(state == DeploymentState.UNKNOWN && dispatcher != null)
      {
         Object name = md.getName();
         if(name != null)
         {
View Full Code Here

                createResourceReport.setStatus(CreateResourceStatus.INVALID_ARTIFACT);
                createResourceReport.setErrorMessage("Unable to start application '" + deploymentName
                        + "' after deploying it, since lookup of the associated ManagedDeployment failed.");
            }
            if (managedDeployment != null) {
                DeploymentState state = managedDeployment.getDeploymentState();
                if (state != DeploymentState.STARTED) {
                    // The app failed to start - do not consider this a FAILURE, since it was at least deployed
                    // successfully. However, set the status to INVALID_ARTIFACT and set an error message, so
                    // the user is informed of the condition.
                    createResourceReport.setStatus(CreateResourceStatus.INVALID_ARTIFACT);
View Full Code Here

        return null;
    }

    @Override
    public AvailabilityType getAvailability() {
        DeploymentState deploymentState;
        try {
            deploymentState = getManagedDeployment(false).getDeploymentState();
        } catch (NoSuchDeploymentException e) {
            LOG.warn(deploymentType + " deployment '" + deploymentKey + "' not found. Cause: "
                + e.getLocalizedMessage());
View Full Code Here

TOP

Related Classes of org.jboss.managed.api.DeploymentState

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.