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 | ||
14 | package org.eclipse.linuxtools.internal.lttng2.control.core.relayd.lttngviewerCommands; | |
15 | ||
16 | ||
17 | /** | |
18 | * Command sent, needs a getBytes to stream the data | |
19 | * | |
20 | * @author Matthew Khouzam | |
21 | * @since 3.0 | |
22 | */ | |
23 | public interface IRelayCommand { | |
24 | ||
25 | /** | |
26 | * Gets a byte array of the command so that it may be streamed | |
27 | * | |
28 | * @return the byte array of the command | |
29 | */ | |
30 | byte[] serialize(); | |
31 | } |