Commit | Line | Data |
---|---|---|
5b5ffa03 | 1 | /* |
c0c0989a | 2 | * SPDX-License-Identifier: LGPL-2.1-only |
5b5ffa03 | 3 | * |
c0c0989a MJ |
4 | * Copyright (C) 2015 EfficiOS Inc. |
5 | * Copyright (C) 2015 Alexandre Montplaisir <alexmonthy@efficios.com> | |
5b5ffa03 DG |
6 | */ |
7 | ||
501f6777 | 8 | package org.lttng.ust.agent; |
5b5ffa03 | 9 | |
d60dfbe4 AM |
10 | /** |
11 | * Simple interface to organize all LTTng log handlers under one type. | |
12 | * | |
13 | * @author Alexandre Montplaisir | |
14 | */ | |
15 | public interface ILttngHandler { | |
16 | ||
17 | /** | |
18 | * Get the number of events logged by this handler since its inception. | |
19 | * | |
20 | * @return The number of logged events | |
21 | */ | |
22 | long getEventCount(); | |
5b5ffa03 | 23 | |
d60dfbe4 AM |
24 | /** |
25 | * Close the log handler. Should be called once the application is done | |
26 | * logging through it. | |
27 | */ | |
28 | void close(); | |
5b5ffa03 | 29 | } |