Move alltests plugin to the Trace Compass namespace
[deliverable/tracecompass.git] / org.eclipse.tracecompass.tmf.core.tests / stubs / org / eclipse / linuxtools / tmf / tests / stubs / trace / text / SyslogEventType.java
CommitLineData
eadf9801
BH
1/*******************************************************************************
2 * Copyright (c) 2014 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 * Bernd Hufmann - Initial API and implementation
11 *******************************************************************************/
12
13package org.eclipse.linuxtools.tmf.tests.stubs.trace.text;
14
15import org.eclipse.linuxtools.tmf.core.event.ITmfEventType;
16import org.eclipse.linuxtools.tmf.core.event.TmfEventField;
17import org.eclipse.linuxtools.tmf.core.event.TmfEventType;
18
19/**
20 * The system log extension of the TMF event type.
21 */
22public class SyslogEventType extends TmfEventType {
23
24 /** The event type id string. */
25 public static final String TYPE_ID = "Syslog"; //$NON-NLS-1$
26 /** The labels (field names) used for SA system log events. */
27 @SuppressWarnings("nls")
28 public static final String[] LABELS = {"Timestamp", "Host", "Logger", "Message"};
29 /** A default instance of this class */
30 public static final SyslogEventType INSTANCE = new SyslogEventType();
31
32 /** Index numbers in the array of event field names and values. */
33 public interface Index {
34 /** Index for time stamp */
35 int TIMESTAMP = 0;
36 /** Index for the host name */
37 int HOST = 1;
38 /** Index for the logger name */
39 int LOGGER = 2;
40 /** Index for the event message */
41 int MESSAGE = 3;
42 }
43
44 /**
45 * Default Constructor
46 */
47 public SyslogEventType() {
48 super(ITmfEventType.DEFAULT_CONTEXT_ID, TYPE_ID, TmfEventField.makeRoot(LABELS));
49 }
50
51}
This page took 0.038237 seconds and 5 git commands to generate.