Rename Java Agent event names to "event"
[lttng-ust.git] / liblttng-ust-java-agent / java / lttng-ust-agent-common / org / lttng / ust / agent / client / ISessiondCommand.java
CommitLineData
d60dfbe4
AM
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
19package org.lttng.ust.agent.client;
20
21interface ISessiondCommand {
22
23 enum LttngAgentCommand {
24
25 /** List logger(s). */
26 CMD_LIST(1),
27 /** Enable logger by name. */
28 CMD_ENABLE(2),
29 /** Disable logger by name. */
30 CMD_DISABLE(3),
31 /** Registration done */
32 CMD_REG_DONE(4);
33
34 private int code;
35
36 private LttngAgentCommand(int c) {
37 code = c;
38 }
39
40 public int getCommand() {
41 return code;
42 }
43 }
44
45 /**
46 * Populate the class from a byte array
47 *
48 * @param data
49 * the byte array containing the streamed command
50 */
51 void populate(byte[] data);
52}
This page took 0.024019 seconds and 4 git commands to generate.