Package com.netcracker.profiler.io
Class SuspendLog.SuspendLogCursor
java.lang.Object
com.netcracker.profiler.io.SuspendLog.SuspendLogCursor
- Enclosing class:
SuspendLog
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected longprotected intintprotected long -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
idx
public int idx -
now
protected long now -
a
protected long a -
endTimeForSearch
protected int endTimeForSearch
-
-
Constructor Details
-
SuspendLogCursor
public SuspendLogCursor()
-
-
Method Details
-
skipTo
public void skipTo(long begin) Moves cursor to a new time position. The following moveTo call would calculate- Parameters:
begin- new time position
-
moveTo
public int moveTo(long end) Calculate suspension time in the timerange [begin, end) and advances the cursor.- Parameters:
end- the end of interval (exclusive) for suspension time calculation- Returns:
- net suspension time in interval [begin, end)
-