| 1 | /* |
| 2 | * SPDX-License-Identifier: LGPL-2.1-only |
| 3 | * |
| 4 | * Copyright (C) 2015 EfficiOS Inc. |
| 5 | * Copyright (C) 2015 Alexandre Montplaisir <alexmonthy@efficios.com> |
| 6 | */ |
| 7 | |
| 8 | package org.lttng.ust.agent; |
| 9 | |
| 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(); |
| 23 | |
| 24 | /** |
| 25 | * Close the log handler. Should be called once the application is done |
| 26 | * logging through it. |
| 27 | */ |
| 28 | void close(); |
| 29 | } |