tmf: Remove the serialization logic from TmfStateValue
authorAlexandre Montplaisir <alexmonthy@voxpopuli.im>
Fri, 26 Apr 2013 19:50:14 +0000 (15:50 -0400)
committerAlexandre Montplaisir <alexmonthy@voxpopuli.im>
Fri, 26 Apr 2013 20:39:39 +0000 (16:39 -0400)
commit9177eb74bfbeca9ced687cc9a057f64a82f92a70
treebf1fe04af7b9b7ed72dc1c417164f87e52e9aaac
parenta55ebcdc27c185ec9550386482d36200670b790a
tmf: Remove the serialization logic from TmfStateValue

Serializing the state values is the history backend's job (as in,
each backend could do it differently). Move the existing logic
to HTInterval.

This also fixes a very bad bug where the stringsEntrySize of intervals
containing a Long state value would be incorrectly reported as 0.
This would mean that nodes could try inserting a value that wouldn't
fit, which would end up corrupting the interval data.

Change-Id: I6c54ef905b45b06b69ed21ce59c70d2eaa16b7f8
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/12254
Tested-by: Hudson CI
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
IP-Clean: Patrick Tasse <patrick.tasse@gmail.com>
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/internal/tmf/core/statesystem/backends/historytree/HTInterval.java
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/statevalue/IntegerStateValue.java
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/statevalue/LongStateValue.java
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/statevalue/NullStateValue.java
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/statevalue/StringStateValue.java
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/statevalue/TmfStateValue.java
This page took 0.028785 seconds and 5 git commands to generate.