| /******************************************************************************* |
| * Copyright (c) 2018 Ericsson |
| * |
| * All rights reserved. This program and the accompanying materials are made |
| * available under the terms of the Eclipse Public License v1.0 which |
| * accompanies this distribution, and is available at |
| * http://www.eclipse.org/legal/epl-v10.html |
| *******************************************************************************/ |
| |
| package org.eclipse.tracecompass.incubator.internal.opentracing.core.event; |
| |
| import org.eclipse.jdt.annotation.NonNull; |
| import org.eclipse.jdt.annotation.Nullable; |
| import org.eclipse.tracecompass.tmf.core.event.ITmfEvent; |
| import org.eclipse.tracecompass.tmf.core.event.aspect.ITmfEventAspect; |
| |
| /** |
| * A trace compass log aspect |
| * |
| * @author Katherine Nadeau |
| * |
| * @param <T> |
| */ |
| interface IOpenTracingAspect<T> extends ITmfEventAspect<T> { |
| |
| @Override |
| default @Nullable T resolve(@NonNull ITmfEvent event) { |
| if (event instanceof OpenTracingEvent) { |
| return resolveOpenTracingLogs((OpenTracingEvent) event); |
| } |
| return null; |
| } |
| |
| T resolveOpenTracingLogs(OpenTracingEvent event); |
| |
| } |