1 /*******************************************************************************
2 * Copyright (c) 2014 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 * Bernd Hufmann - Initial API and implementation
11 *******************************************************************************/
13 package org
.eclipse
.linuxtools
.tmf
.tests
.stubs
.trace
.text
;
15 import org
.eclipse
.linuxtools
.tmf
.core
.event
.ITmfEventType
;
16 import org
.eclipse
.linuxtools
.tmf
.core
.event
.TmfEventField
;
17 import org
.eclipse
.linuxtools
.tmf
.core
.event
.TmfEventType
;
20 * The system log extension of the TMF event type.
22 public class SyslogEventType
extends TmfEventType
{
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();
32 /** Index numbers in the array of event field names and values. */
33 public interface Index
{
34 /** Index for time stamp */
36 /** Index for the host name */
38 /** Index for the logger name */
40 /** Index for the event message */
47 public SyslogEventType() {
48 super(ITmfEventType
.DEFAULT_CONTEXT_ID
, TYPE_ID
, TmfEventField
.makeRoot(LABELS
));
This page took 0.031192 seconds and 5 git commands to generate.