929249a7cbc68cd024fb20ddcf65fdadd0387078
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 * Matthew Khouzam - Initial implementation and API
11 * Marc-Andre Laperle - Initial implementation and API
12 **********************************************************************/
14 package org
.eclipse
.tracecompass
.internal
.lttng2
.control
.core
.relayd
.lttngviewerCommands
;
16 import java
.nio
.ByteBuffer
;
17 import java
.nio
.ByteOrder
;
20 * VIEWER_GET_METADATA payload.
22 * @author Matthew Khouzam
24 public class GetMetadata
implements IRelayCommand
{
27 * Command size (fStreamId)
29 public static final int SIZE
= Long
.SIZE
/ 8;
34 private final long fStreamId
;
42 public GetMetadata(long streamId
) {
49 * @return the stream id
51 public long getStreamId() {
56 public byte[] serialize() {
57 byte data
[] = new byte[SIZE
];
58 ByteBuffer bb
= ByteBuffer
.wrap(data
);
59 bb
.order(ByteOrder
.BIG_ENDIAN
);
60 bb
.putLong(getStreamId());
This page took 0.04003 seconds and 5 git commands to generate.