public final class TopologySerializer extends Object
Modifier and Type | Method and Description |
---|---|
static Pair<TopologySimpleNode,List<Identifier>> |
decode(byte[] data,
IdentifierFactory ifac)
Recursively translate a byte array into a TopologySimpleNode and a list of task Identifiers.
|
static byte[] |
encode(TaskNode root)
Recursively encode TaskNodes of a Topology into a byte array.
|
public static byte[] encode(TaskNode root)
root
- the root node of the subtree to encodepublic static Pair<TopologySimpleNode,List<Identifier>> decode(byte[] data, IdentifierFactory ifac)
data
- encoded byte arrayifac
- IdentifierFactory needed to generate Identifiers from String IdsCopyright © 2017 The Apache Software Foundation. All rights reserved.