public interface ISerializer extends Serializable
The ISerializer interface describes the methods that an object should implement to provide serialization and de-serialization capabilities to non-JVM language components.
Modifier and Type | Method and Description |
---|---|
Number |
connect(Map<String,Object> conf,
TopologyContext context)
This method transmits the Storm config to the non-JVM process and receives its pid.
|
void |
initialize(OutputStream processIn,
InputStream processOut)
This method sets the input and output streams of the serializer.
|
ShellMsg |
readShellMsg()
This method receives a shell message from the non-JVM process.
|
void |
writeBoltMsg(BoltMsg msg)
This method sends a bolt message to a non-JVM bolt process.
|
void |
writeSpoutMsg(SpoutMsg msg)
This method sends a spout message to a non-JVM spout process.
|
void |
writeTaskIds(List<Integer> taskIds)
This method sends a list of task IDs to a non-JVM bolt process.
|
void initialize(OutputStream processIn, InputStream processOut)
This method sets the input and output streams of the serializer.
processIn
- output stream to non-JVM componentprocessOut
- input stream from non-JVM componentNumber connect(Map<String,Object> conf, TopologyContext context) throws IOException, NoOutputException
This method transmits the Storm config to the non-JVM process and receives its pid.
conf
- storm configurationcontext
- topology contextIOException
NoOutputException
ShellMsg readShellMsg() throws IOException, NoOutputException
This method receives a shell message from the non-JVM process.
IOException
NoOutputException
void writeBoltMsg(BoltMsg msg) throws IOException
This method sends a bolt message to a non-JVM bolt process.
msg
- bolt messageIOException
void writeSpoutMsg(SpoutMsg msg) throws IOException
This method sends a spout message to a non-JVM spout process.
msg
- spout messageIOException
void writeTaskIds(List<Integer> taskIds) throws IOException
This method sends a list of task IDs to a non-JVM bolt process.
taskIds
- list of task IDsIOException
Copyright © 2020 The Apache Software Foundation. All rights reserved.