|
Spring for Apache Hadoop | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.yarn.integration.ip.mind.MindRpcMessageHolder
public class MindRpcMessageHolder
Mind request and response contains a set of headers and a content. This is similar to http traffict. This holder keeps those separated and makes it easier to work with payloads.
Constructor Summary | |
---|---|
MindRpcMessageHolder(java.util.Map<java.lang.String,java.lang.String> headers,
byte[] content)
Constructs holder instance with a map of headers and a content. |
|
MindRpcMessageHolder(java.util.Map<java.lang.String,java.lang.String> headers,
java.lang.String content)
Constructs holder instance with a map of headers and a content. |
Method Summary | |
---|---|
byte[] |
getContent()
Gets the content of this holder. |
java.util.Map<java.lang.String,java.lang.String> |
getHeaders()
Gets headers of this holder. |
void |
setContent(byte[] content)
Sets the content of this holder. |
void |
setContent(java.lang.String content)
Sets the content of this holder. |
void |
setHeaders(java.util.Map<java.lang.String,java.lang.String> headers)
Sets the headers of this holder. |
byte[] |
toBytes()
Gets the complete protocol representation of this holder as array of bytes. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MindRpcMessageHolder(java.util.Map<java.lang.String,java.lang.String> headers, java.lang.String content)
headers
- the headerscontent
- the contentpublic MindRpcMessageHolder(java.util.Map<java.lang.String,java.lang.String> headers, byte[] content)
headers
- the headerscontent
- the contentMethod Detail |
---|
public void setHeaders(java.util.Map<java.lang.String,java.lang.String> headers)
headers
- the headerspublic void setContent(byte[] content)
content
- the contentpublic void setContent(java.lang.String content)
content
- the contentpublic java.util.Map<java.lang.String,java.lang.String> getHeaders()
public byte[] getContent()
public byte[] toBytes()
public java.lang.String toString()
toString
in class java.lang.Object
|
Spring for Apache Hadoop | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |