org.gwe.persistence.model.live
Class LiveAllocations

java.lang.Object
  extended by org.gwe.persistence.model.live.LiveAllocations

public class LiveAllocations
extends java.lang.Object

Since:
Nov 15, 2007
Author:
Marco Ruiz

Constructor Summary
LiveAllocations()
           
 
Method Summary
 int calculateDeficit(int jobsPending, int maxLiveAllocs)
           
 void flagAsReady(AllocationInfo alloc)
           
 AllocationInfo getAllocation(int allocId)
           
 AllocationInfo getBusyAllocation(int allocId)
           
 int getLiveAllocationsCount()
           
 void pairNextReadyAllocationWithJob(JobExecutionInfo exec)
           
 AllocationInfo removeAllocation(int allocId)
           
 void saveLiveAllocation(AllocationInfo alloc)
           
 void saveLiveAllocations(java.util.List<AllocationInfo> allocList)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LiveAllocations

public LiveAllocations()
Method Detail

saveLiveAllocations

public void saveLiveAllocations(java.util.List<AllocationInfo> allocList)

saveLiveAllocation

public void saveLiveAllocation(AllocationInfo alloc)

getBusyAllocation

public AllocationInfo getBusyAllocation(int allocId)
                                 throws AllocationNotFoundException
Throws:
AllocationNotFoundException

getAllocation

public AllocationInfo getAllocation(int allocId)
                             throws AllocationNotFoundException
Throws:
AllocationNotFoundException

removeAllocation

public AllocationInfo removeAllocation(int allocId)

getLiveAllocationsCount

public int getLiveAllocationsCount()

calculateDeficit

public int calculateDeficit(int jobsPending,
                            int maxLiveAllocs)

flagAsReady

public void flagAsReady(AllocationInfo alloc)

pairNextReadyAllocationWithJob

public void pairNextReadyAllocationWithJob(JobExecutionInfo exec)


Copyright © 2007-2009. All Rights Reserved.