Package org.apache.uima.ducc.transport.event.rm

Examples of org.apache.uima.ducc.transport.event.rm.Resource


                    shares = j.getAssignedShares();
                    if ( shares != null ) {
                        ArrayList<Share> sorted = new ArrayList<Share>(shares.values());
                        Collections.sort(sorted, new RmJob.ShareByInvestmentSorter());
                        for ( Share s : sorted ) {
                            Resource r = new Resource(s.getId(), s.getNode(), s.isPurged(), s.getShareOrder(), s.getInitializationTime());
                            all_shares.put(s.getId(), r);
                        }
                        redrive = sanityCheckForOrchestrator(j, shares, expanded.get(j.getId()));
                    }
                   
                    shares = shrunken.get(j.getId());
                    if ( shares != null ) {
                        for ( Share s : shares.values() ) {
                            Resource r = new Resource(s.getId(), s.getNode(), s.isPurged(), s.getShareOrder(), 0);
                            shrunken_shares.put(s.getId(), r);
                        }
                    }                                       
                   
                    shares = expanded.get(j.getId());
                    if ( shares != null ) {                   
                        for ( Share s : shares.values() ) {
                            Resource r = new Resource(s.getId(), s.getNode(), s.isPurged(), s.getShareOrder(), 0);
                            expanded_shares.put(s.getId(), r);
                        }
                    }
                   
                    if ( redrive != null ) {
                        for ( Share s : redrive.values() ) {
                            Resource r = new Resource(s.getId(), s.getNode(), s.isPurged(), s.getShareOrder(), 0);
                            expanded_shares.put(s.getId(), r);
                        }
                    }
                }
               
View Full Code Here

TOP

Related Classes of org.apache.uima.ducc.transport.event.rm.Resource

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.