1 /*******************************************************************************
2 * Copyright (c) 2009, 2010 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
.request
;
15 import org
.eclipse
.linuxtools
.tmf
.event
.TmfData
;
18 * <b><u>ITmfDataRequest</u></b>
20 * TODO: Implement me. Please.
22 public interface ITmfDataRequest
<T
extends TmfData
> {
24 // ------------------------------------------------------------------------
26 // ------------------------------------------------------------------------
29 * @return request data type (T)
31 public Class
<T
> getDataType();
36 public long getRequestId();
39 * @return the index of the first event requested
41 public int getIndex();
44 * @return the number of requested events
46 public int getNbRequested();
49 * @return the block size
51 public int getBlockize();
54 * @return the number of events read so far
56 public int getNbRead();
58 // ------------------------------------------------------------------------
60 // ------------------------------------------------------------------------
62 public boolean isCompleted();
63 public boolean isFailed();
64 public boolean isCancelled();
66 // ------------------------------------------------------------------------
68 // ------------------------------------------------------------------------
70 public void setData(T
[] data
);
72 public void handleData();
74 // ------------------------------------------------------------------------
76 // ------------------------------------------------------------------------
78 public void handleCompleted();
79 public void handleSuccess();
80 public void handleFailure();
81 public void handleCancel();
84 * To suspend the client thread until the request completes
87 public void waitForCompletion();
89 // ------------------------------------------------------------------------
90 // Request state modifiers
91 // ------------------------------------------------------------------------
This page took 0.032519 seconds and 5 git commands to generate.