tmf: fix sonar warnings about redundant modifier in interfaces
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.core / src / org / eclipse / linuxtools / tmf / core / component / ITmfDataProvider.java
CommitLineData
550d787e 1/*******************************************************************************
61759503 2 * Copyright (c) 2009, 2013 Ericsson
0283f7ff 3 *
550d787e
FC
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
0283f7ff 8 *
550d787e
FC
9 * Contributors:
10 * Francois Chouinard - Initial API and implementation
11 *******************************************************************************/
12
6c13869b 13package org.eclipse.linuxtools.tmf.core.component;
8c8bf09f 14
72f1e62a 15import org.eclipse.linuxtools.tmf.core.event.ITmfEvent;
5419a136 16import org.eclipse.linuxtools.tmf.core.request.ITmfDataRequest;
c32744d6 17import org.eclipse.linuxtools.tmf.core.trace.ITmfContext;
8c8bf09f 18
550d787e 19/**
8fd82db5
FC
20 * This is the interface of the data providers in TMF. Data providers have the
21 * capability of handling data requests.
0283f7ff 22 *
5419a136 23 * @version 1.0
8fd82db5 24 * @author Francois Chouinard
0283f7ff 25 *
8fd82db5
FC
26 * @see TmfDataProvider
27 * @see TmfEventProvider
550d787e 28 */
6256d8ad 29public interface ITmfDataProvider extends ITmfComponent {
8c8bf09f
ASL
30
31 /**
8fd82db5 32 * Queue the request for processing.
0283f7ff 33 *
f17b2f70
FC
34 * @param request The request to process
35 */
57a2a5ca 36 void sendRequest(ITmfDataRequest request);
8fd82db5 37
063f0d27
AM
38 /**
39 * Queue the coalesced requests.
40 */
57a2a5ca 41 void fireRequest();
063f0d27
AM
42
43 /**
44 * Increments/decrements the pending requests counters and fires the request
45 * if necessary (counter == 0). Used for coalescing requests across multiple
46 * TmfDataProvider's.
47 *
48 * @param isIncrement
49 * Should we increment (true) or decrement (false) the pending
50 * counter
51 */
57a2a5ca 52 void notifyPendingRequest(boolean isIncrement);
c32744d6
FC
53
54 /**
55 * Return the next event based on the context supplied. The context
56 * will be updated for the subsequent read.
0283f7ff 57 *
c32744d6
FC
58 * @param context the trace read context (updated)
59 * @return the event referred to by context
60 */
57a2a5ca 61 ITmfEvent getNext(ITmfContext context);
8c8bf09f 62}
This page took 0.045307 seconds and 5 git commands to generate.