2cb66149133f9a25234910a11197083b12d5c48a
[lttng-ust.git] /
1 /*
2 * Copyright (C) 2015 - EfficiOS Inc., Alexandre Montplaisir <alexmonthy@efficios.com>
3 * Copyright (C) 2013 - David Goulet <dgoulet@efficios.com>
4 *
5 * This library is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU Lesser General Public License, version 2.1 only,
7 * as published by the Free Software Foundation.
8 *
9 * This library is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
12 * for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public License
15 * along with this library; if not, write to the Free Software Foundation,
16 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17 */
18
19 package org.lttng.ust.agent.client;
20
21 interface ISessiondResponse {
22
23 enum LttngAgentRetCode {
24 CODE_SUCCESS_CMD(1),
25 CODE_INVALID_CMD(2),
26 CODE_UNK_LOGGER_NAME(3);
27 private int code;
28
29 private LttngAgentRetCode(int c) {
30 code = c;
31 }
32
33 public int getCode() {
34 return code;
35 }
36 }
37
38 /**
39 * Gets a byte array of the command so that it may be streamed
40 *
41 * @return the byte array of the command
42 */
43 byte[] getBytes();
44 }
This page took 0.028994 seconds and 3 git commands to generate.