Commit | Line | Data |
---|---|---|
8e15b929 MK |
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 | * Matthew Khouzam - Initial implementation and API | |
11 | * Marc-Andre Laperle - Initial implementation and API | |
12 | **********************************************************************/ | |
13 | ||
9bc60be7 | 14 | package org.eclipse.tracecompass.internal.lttng2.control.core.relayd.lttngviewerCommands; |
8e15b929 MK |
15 | |
16 | ||
17 | /** | |
18 | * Command sent, needs a getBytes to stream the data | |
19 | * | |
20 | * @author Matthew Khouzam | |
8e15b929 MK |
21 | */ |
22 | public interface IRelayCommand { | |
23 | ||
24 | /** | |
25 | * Gets a byte array of the command so that it may be streamed | |
26 | * | |
27 | * @return the byte array of the command | |
28 | */ | |
29 | byte[] serialize(); | |
30 | } |