May 31
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf / src / org / eclipse / linuxtools / tmf / component / ITmfDataProvider.java
1 /*******************************************************************************
2 * Copyright (c) 2009, 2010 Ericsson
3 *
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
8 *
9 * Contributors:
10 * Francois Chouinard - Initial API and implementation
11 *******************************************************************************/
12
13 package org.eclipse.linuxtools.tmf.component;
14
15 import org.eclipse.linuxtools.tmf.event.TmfData;
16 import org.eclipse.linuxtools.tmf.request.ITmfDataRequest;
17
18 /**
19 * <b><u>ITmfDataRequest</u></b>
20 * <p>
21 * TODO: Implement me. Please.
22 */
23 public interface ITmfDataProvider<T extends TmfData> {
24
25 // ------------------------------------------------------------------------
26 // Constants
27 // ------------------------------------------------------------------------
28
29 public enum ExecutionType { SHORT, LONG };
30
31 /**
32 * Queues the request for processing.
33 *
34 * If the request can't be serviced, it will fail (i.e. isFailed() will be set).
35 *
36 * @param request The request to process
37 */
38 public void sendRequest(ITmfDataRequest<T> request);
39 public void sendRequest(ITmfDataRequest<T> request, ExecutionType type);
40 public void fireRequests();
41
42 }
This page took 0.032825 seconds and 6 git commands to generate.