Package com.netcracker.profiler.io
Class SuspendLog
java.lang.Object
com.netcracker.profiler.io.SuspendLog
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<SuspendLogPair<Long, Integer>> static final SuspendLogprotected longprotected longprotected Stringprotected ISuspendLogCollection -
Constructor Summary
ConstructorsConstructorDescriptionSuspendLog(long[] dates, int[] delays) SuspendLog(long[] dates, int[] delays, int[] trueDelays) SuspendLog(long[] dates, int[] delays, int[] trueDelays, int size) SuspendLog(String podName) -
Method Summary
Modifier and TypeMethodDescriptioncursor()intgetSuspendDuration(long begin, long end) Returns the net suspension time in the given timerange [begin, end)voidsetValue(long[] dates, int[] delays, int[] trueDelays) intsize()
-
Field Details
-
EMPTY
-
cursor
-
suspendLogCollection
-
podName
-
loadedTo
protected long loadedTo -
loadedFrom
protected long loadedFrom -
datesWithDelays
-
-
Constructor Details
-
SuspendLog
public SuspendLog(long[] dates, int[] delays) -
SuspendLog
public SuspendLog(long[] dates, int[] delays, int[] trueDelays) -
SuspendLog
public SuspendLog(long[] dates, int[] delays, int[] trueDelays, int size) -
SuspendLog
-
-
Method Details
-
getSuspendDuration
public int getSuspendDuration(long begin, long end) Returns the net suspension time in the given timerange [begin, end)- Parameters:
begin- the start of timerange for suspension calculation, inclusiveend- the end of timerange for suspension calculation, exclusive- Returns:
- the net suspension time
-
cursor
-
setValue
public void setValue(long[] dates, int[] delays, int[] trueDelays) -
size
public int size()
-