Package com.projity.server.data

Examples of com.projity.server.data.DistributionData


      if (dist==null) return;
      TreeMap<DistributionData, DistributionData> distMap=new TreeMap<DistributionData, DistributionData>(new DistributionComparator());
      setDistributionMap(distMap);
      long projectId=getUniqueId();
      for (Iterator i=dist.iterator();i.hasNext();){
        DistributionData d=(DistributionData)i.next();
        if (d.getProjectId()==projectId) distMap.put(d,d);
      }
      System.out.println("DistributionMap: "+dist.size()+" elements, updated in "+(System.currentTimeMillis()-t)+" ms");
    }
View Full Code Here


      if (dist==null) return;
      TreeMap<DistributionData, DistributionData> distMap=new TreeMap<DistributionData, DistributionData>(new DistributionComparator());
      setDistributionMap(distMap);
      long projectId=getUniqueId();
      for (Iterator i=dist.iterator();i.hasNext();){
        DistributionData d=(DistributionData)i.next();
        if (d.getProjectId()==projectId) distMap.put(d,d);
      }
      System.out.println("DistributionMap: "+dist.size()+" elements, updated in "+(System.currentTimeMillis()-t)+" ms");
    }
View Full Code Here

      }
      //remove distributions that have lost resources
      Collection<DistributionData> dists=(Collection<DistributionData>)projectData.getDistributions();
      if (dists!=null)
      for (Iterator<DistributionData> i=dists.iterator();i.hasNext();){
        DistributionData dist=i.next();
        ResourceData resourceData=idMap.get(dist.getResourceId());
        if (resourceData==null){
          i.remove();
        }else{
          dist.setResourceId(resourceData.getEnterpriseResource().getUniqueId());
        }
      }
    }

//    if (Environment.isNoPodServer()){ //claur
View Full Code Here

    }

    Collection<DistributionData> dists=(Collection<DistributionData>)projectData.getDistributions();
    if (dists!=null)
    for (Iterator<DistributionData> i=dists.iterator();i.hasNext();){
      DistributionData dist=i.next();
      dist.setTaskId(idMap.get(dist.getTaskId()));
    }

    //renumber project
    projectData.setUniqueId(session.getId());
  }
View Full Code Here

TOP

Related Classes of com.projity.server.data.DistributionData

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.