org.gwe.persistence.model.live
Class LiveAllocations
java.lang.Object
org.gwe.persistence.model.live.LiveAllocations
public class LiveAllocations
- extends java.lang.Object
- Since:
- Nov 15, 2007
- Author:
- Marco Ruiz
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LiveAllocations
public LiveAllocations()
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.