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 org.springframework.context.ApplicationContextprotected 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(org.springframework.context.ApplicationContext applicationContext, String podName) -
Method Summary
Modifier and TypeMethodDescriptioncursor()intgetSuspendDuration(long begin, long end) Returns the net suspension time in the given timerange [begin, end)static voidvoidsetValue(long[] dates, int[] delays, int[] trueDelays) intsize()
-
Field Details
-
EMPTY
-
cursor
-
suspendLogCollection
-
applicationContext
protected org.springframework.context.ApplicationContext applicationContext -
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
public SuspendLog(org.springframework.context.ApplicationContext applicationContext, String podName)
-
-
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() -
main
- Throws:
IOException
-