|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbacktype.storm.multilang.JsonSerializer
public class JsonSerializer
JsonSerializer implements the JSON multilang protocol.
| Constructor Summary | |
|---|---|
JsonSerializer()
|
|
| Method Summary | |
|---|---|
Number |
connect(Map 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 boltMsg)
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JsonSerializer()
| Method Detail |
|---|
public void initialize(OutputStream processIn,
InputStream processOut)
ISerializer
initialize in interface ISerializerprocessIn - output stream to non-JVM componentprocessOut - input stream from non-JVM component
public Number connect(Map conf,
TopologyContext context)
throws IOException,
NoOutputException
ISerializer
connect in interface ISerializerconf - storm configurationcontext - topology context
IOException
NoOutputException
public void writeBoltMsg(BoltMsg boltMsg)
throws IOException
ISerializer
writeBoltMsg in interface ISerializerboltMsg - bolt message
IOException
public void writeSpoutMsg(SpoutMsg msg)
throws IOException
ISerializer
writeSpoutMsg in interface ISerializermsg - spout message
IOException
public void writeTaskIds(List<Integer> taskIds)
throws IOException
ISerializer
writeTaskIds in interface ISerializertaskIds - list of task IDs
IOException
public ShellMsg readShellMsg()
throws IOException,
NoOutputException
ISerializer
readShellMsg in interface ISerializerIOException
NoOutputException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||