Commit | Line | Data |
---|---|---|
28b94d61 FC |
1 | /******************************************************************************* |
2 | * Copyright (c) 2009 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 | * William Bourque (wbourque@gmail.com) - Initial API and implementation | |
11 | *******************************************************************************/ | |
12 | ||
13 | package org.eclipse.linuxtools.lttng.event; | |
14 | ||
15 | import org.eclipse.linuxtools.tmf.event.*; | |
16 | ||
17 | /** | |
18 | * <b><u>LttngEventSource</u></b><p> | |
19 | * | |
20 | * Lttng specific implementation of the TmfEventSource | |
21 | */ | |
22 | public class LttngEventSource extends TmfEventSource { | |
23 | ||
24 | /** | |
25 | * Default Constructor.<p> | |
26 | * | |
27 | */ | |
28 | public LttngEventSource() { | |
29 | super(); | |
30 | } | |
31 | ||
32 | /** | |
33 | * Copy Constructor.<p> | |
34 | * | |
35 | * @param newSource Source of the event as string. | |
36 | */ | |
37 | public LttngEventSource(String newSource) { | |
38 | super(newSource); | |
39 | } | |
40 | ||
41 | ||
42 | /** | |
43 | * Copy Constructor.<p> | |
44 | * | |
45 | * @param oldSource LttngEventSource to copy from. | |
46 | */ | |
47 | public LttngEventSource(LttngEventSource oldSource) { | |
48 | this( (String)oldSource.getSourceId() ); | |
49 | } | |
50 | ||
51 | ||
52 | public String getSourceId() { | |
53 | return (String)fSourceId; | |
54 | } | |
55 | ||
56 | public void setSourceId(String newSource) { | |
57 | fSourceId = newSource; | |
58 | } | |
59 | ||
60 | public String toString() { | |
61 | return fSourceId.toString(); | |
62 | } | |
63 | } |