tmf: Add an abstract class for the StateChangeInput
authorAlexandre Montplaisir <alexmonthy@voxpopuli.im>
Mon, 17 Sep 2012 20:58:05 +0000 (16:58 -0400)
committerAlexandre Montplaisir <alexmonthy@voxpopuli.im>
Tue, 18 Sep 2012 15:42:34 +0000 (11:42 -0400)
commit79e0a1df954d039e574838ef642d0e3ab1fb0ba1
treebe16b10418dcb2a11e669c51a60e11a0eeb03bdb
parent6bab45115d11024d702e1d83c41aaaa3d9bebafa
tmf: Add an abstract class for the StateChangeInput

The state-change-input plugin needed by the state system is
currently offered through a IStateChangeInput interface.
However much of the code is common between implementations.
Furthermore, the LTTng kernel plugin nicely splits the work
in two threads, so it would be great to be able to easily
re-use that feature.

This introduces a AbstractStateChangeInput class which will
provide a good ground base for building a state input plugin.
It will also wrap the multi-thread part of the code, so other
inputs can benefit from it.

The interface remains available for more exotic use cases.

Change-Id: I8c9210af62b63b48ffcdc54b3da35df7754e1583
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/7798
Tested-by: Hudson CI
org.eclipse.linuxtools.lttng2.kernel.core/src/org/eclipse/linuxtools/internal/lttng2/kernel/core/stateprovider/CtfKernelHandler.java [deleted file]
org.eclipse.linuxtools.lttng2.kernel.core/src/org/eclipse/linuxtools/internal/lttng2/kernel/core/stateprovider/CtfKernelStateInput.java
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/statesystem/AbstractStateChangeInput.java [new file with mode: 0644]
This page took 0.028556 seconds and 5 git commands to generate.