c687c22714d99a926ffe03e59c9c4905558965a1
[lttng-ust.git] / liblttng-ust-java-agent / java / org / lttng / ust / jul / LTTngAgent.java
1 /*
2 * Copyright (C) 2014 - Christian Babeux <christian.babeux@efficios.com>
3 *
4 * This library is free software; you can redistribute it and/or modify it
5 * under the terms of the GNU Lesser General Public License, version 2.1 only,
6 * as published by the Free Software Foundation.
7 *
8 * This library is distributed in the hope that it will be useful, but WITHOUT
9 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
11 * for more details.
12 *
13 * You should have received a copy of the GNU Lesser General Public License
14 * along with this library; if not, write to the Free Software Foundation,
15 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16 */
17
18 package org.lttng.ust.jul;
19
20 import java.io.IOException;
21
22 @Deprecated
23 public class LTTngAgent {
24
25 /*
26 * !!! WARNING !!!
27 * Please use the LTTngAgent found in the org.lttng.ust.agent package.
28 * This class is DEPRECATED.
29 */
30
31 private static LTTngAgent curAgent = null;
32 private static org.lttng.ust.agent.LTTngAgent realAgent = null;
33
34
35 private LTTngAgent() throws IOException {
36 realAgent = org.lttng.ust.agent.LTTngAgent.getLTTngAgent();
37 }
38
39 public static synchronized LTTngAgent getLTTngAgent() throws IOException {
40 if (curAgent == null) {
41 curAgent = new LTTngAgent();
42 }
43
44 return curAgent;
45 }
46
47 public void dispose() throws IOException {
48 realAgent.dispose();
49 }
50 }
This page took 0.029118 seconds and 3 git commands to generate.