Package com.sun.appserv.management.deploy

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


      if ( mListener == null || ! mListener.isCompleted() )
      {
          throw new IllegalStateException();
      }
     
      final DeploymentStatus  status  = mListener.getDeploymentStatus();
     
      if ( status == null || status.getStageStatus() == STATUS_CODE_FAILURE )
      {
          throw new IllegalStateException();
      }
     
      if ( mDidAssociate )
      {
          throw new IllegalStateException();
      }
     
      // OK, go ahead
    final Map<String,Serializable>    additionalStatus = status.getAdditionalStatus();
    final String moduleID  = (String)additionalStatus.get( MODULE_ID_KEY );
 
      final Set<DeployedItemRefConfig>   refs = new HashSet<DeployedItemRefConfig>();
      final Set<DeployedItemRefConfigCR>  proxies = getTargetProxies( getDomainRoot(), targets );
      for( final DeployedItemRefConfigCR cr : proxies )
View Full Code Here


      final Map<String,String>  refOptions )
      throws IOException
  {
      deploy( archive, deployOptions );
     
      final DeploymentStatus  status  = waitTillDone( 50 );
     
      if ( targets != null && targets.length != 0 )
      {
          createReferences( targets, refOptions );
      }
View Full Code Here

  }

    private void
  checkDeploymentStatusForExceptions( Map<String,Serializable> m )
    {
    DeploymentStatus status = DeploymentSupport.mapToDeploymentStatus( m );
    Throwable t = status.getStageThrowable();
    final Iterator<DeploymentStatus> it = status.getSubStagesList().iterator();
    while ( ( t == null ) && ( it.hasNext() ) )
    {
      status = it.next();
      t = status.getThrowable();
    }
    if ( null != t )
    {
      throw new RuntimeException( status.getStageStatusMessage() );
    }
    }
View Full Code Here

      else if ( type.equals( DeploymentMgr.DEPLOYMENT_COMPLETED_NOTIFICATION_TYPE ) )
      {
        final Map<String,Serializable>  statusData  = (Map<String,Serializable>)
            Util.getAMXNotificationValue( notif, NOTIF_DEPLOYMENT_COMPLETED_STATUS_KEY );
       
        final DeploymentStatus  status  =
          DeploymentSupport.mapToDeploymentStatus( statusData );
         
        try
        {
            deploymentDone( notif, status );
View Full Code Here

TOP

Related Classes of com.sun.appserv.management.deploy.DeploymentStatus

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.