Resource function ( long arg0 ) { readLock . lock ( ) ; try { Entry < Long , Resource > loc0 = cumulativeCapacity . floorEntry ( arg0 ) ; if ( loc0 != null ) { return Resources . clone ( loc0 . getValue ( ) ) ; } return Resources . clone ( ZERO_RESOURCE ) ; } finally { readLock . unlock ( ) ; } }
returns the capacity , i.e. total resources allocated at the specified point of time concode_field_sep Lock readLock concode_elem_sep int THRESHOLD concode_elem_sep Resource ZERO_RESOURCE concode_elem_sep TreeMap<Long,Resource> cumulativeCapacity concode_elem_sep Lock writeLock concode_elem_sep Resource minAlloc concode_elem_sep ResourceCalculator resourceCalculator concode_elem_sep ReentrantReadWriteLock readWriteLock concode_field_sep Map<ReservationInterval,Resource> toIntervalMap concode_elem_sep boolean isSameAsNext concode_elem_sep long getEarliestStartTime concode_elem_sep boolean isEmpty concode_elem_sep long getLatestEndTime concode_elem_sep String toString concode_elem_sep boolean isSameAsPrevious concode_elem_sep boolean addInterval concode_elem_sep String toMemJSONString concode_elem_sep boolean removeInterval