public class ShellMsg extends Object
ShellMsg is an object that represents the data sent to a shell component from a process that implements a multi-language protocol. It is the union of all data types that a component can send to Storm.
ShellMsgs are objects received from the ISerializer interface, after the serializer has deserialized the data from the underlying wire protocol. The ShellMsg class allows for a decoupling between the serialized representation of the data and the data itself.
Modifier and Type | Class and Description |
---|---|
static class |
ShellMsg.ShellLogLevel |
Constructor and Description |
---|
ShellMsg() |
Modifier and Type | Method and Description |
---|---|
void |
addAnchor(String anchor) |
void |
addTuple(Object tuple) |
boolean |
areTaskIdsNeeded() |
List<String> |
getAnchors() |
String |
getCommand() |
Object |
getId() |
ShellMsg.ShellLogLevel |
getLogLevel() |
String |
getMetricName() |
Object |
getMetricParams() |
String |
getMsg() |
String |
getStream() |
long |
getTask() |
List<Object> |
getTuple() |
void |
setAnchors(List<String> anchors) |
void |
setCommand(String command) |
void |
setId(Object id) |
void |
setLogLevel(int logLevel) |
void |
setMetricName(String metricName) |
void |
setMetricParams(Object metricParams) |
void |
setMsg(String msg) |
void |
setNeedTaskIds(boolean needTaskIds) |
void |
setStream(String stream) |
void |
setTask(long task) |
void |
setTuple(List<Object> tuple) |
String |
toString() |
public String getCommand()
public void setCommand(String command)
public Object getId()
public void setId(Object id)
public void addAnchor(String anchor)
public String getStream()
public void setStream(String stream)
public long getTask()
public void setTask(long task)
public String getMsg()
public void setMsg(String msg)
public void addTuple(Object tuple)
public boolean areTaskIdsNeeded()
public void setNeedTaskIds(boolean needTaskIds)
public void setMetricName(String metricName)
public String getMetricName()
public void setMetricParams(Object metricParams)
public Object getMetricParams()
public ShellMsg.ShellLogLevel getLogLevel()
public void setLogLevel(int logLevel)
Copyright © 2019 The Apache Software Foundation. All Rights Reserved.