1 /*******************************************************************************
2 * Copyright (c) 2012 Ericsson
4 * All rights reserved. This program and the accompanying materials are
5 * made available under the terms of the Eclipse Public License v1.0 which
6 * accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
10 * Francois Chouinard - Initial API and implementation
11 *******************************************************************************/
13 package org
.eclipse
.linuxtools
.tmf
.core
.trace
;
15 import org
.eclipse
.linuxtools
.tmf
.core
.event
.ITmfEvent
;
16 import org
.eclipse
.linuxtools
.tmf
.core
.event
.ITmfTimestamp
;
19 * <b><u>ITmfTraceIndexer</u></b>
22 public interface ITmfTraceIndexer
<T
extends ITmfTrace
<ITmfEvent
>> {
25 * Start an asynchronous index building job and waits for the job completion
26 * if required. Typically, the indexing job sends notifications at regular
27 * intervals to indicate its progress.
29 * @param waitForCompletion
31 public void buildIndex(boolean waitForCompletion
);
34 * Adds an entry to the trace index.
40 public void updateIndex(ITmfContext context
, long rank
, ITmfTimestamp timestamp
);
43 * Returns the context of the checkpoint immediately preceding the requested
44 * timestamp (or at the timestamp if it coincides with a checkpoint).
46 * @param timestamp the requested timestamp
47 * @return the checkpoint context
49 public ITmfContext
seekIndex(ITmfTimestamp timestamp
);
52 * Returns the context of the checkpoint immediately preceding the requested
53 * rank (or at rank if it coincides with a checkpoint).
55 * @param rank the requested event rank
56 * @return the checkpoint context
58 public ITmfContext
seekIndex(long rank
);
This page took 0.032521 seconds and 6 git commands to generate.