public class StandardFlowSerializer extends java.lang.Object implements FlowSerializer
ENC_PREFIX, ENC_SUFFIX
Constructor and Description |
---|
StandardFlowSerializer(StringEncryptor encryptor) |
Modifier and Type | Method and Description |
---|---|
void |
addControllerService(org.w3c.dom.Element element,
ControllerServiceNode serviceNode) |
static void |
addReportingTask(org.w3c.dom.Element element,
ReportingTaskNode taskNode,
StringEncryptor encryptor) |
static void |
addTemplate(org.w3c.dom.Element element,
Template template) |
void |
serialize(FlowController controller,
java.io.OutputStream os,
ScheduledStateLookup scheduledStateLookup)
Serializes the flow configuration of a controller instance.
|
public StandardFlowSerializer(StringEncryptor encryptor)
public void serialize(FlowController controller, java.io.OutputStream os, ScheduledStateLookup scheduledStateLookup) throws FlowSerializationException
FlowSerializer
serialize
in interface FlowSerializer
controller
- a controlleros
- an output stream to write the configuration toscheduledStateLookup
- a lookup that can be used to determine the ScheduledState of a ProcessorFlowSerializationException
- if serialization failedpublic void addControllerService(org.w3c.dom.Element element, ControllerServiceNode serviceNode)
public static void addReportingTask(org.w3c.dom.Element element, ReportingTaskNode taskNode, StringEncryptor encryptor)
public static void addTemplate(org.w3c.dom.Element element, Template template)