Class TransportMessage
java.lang.Object
de.iip_ecosphere.platform.ecsRuntime.kubernetes.proxy.TransportMessage
A test data class.
- Author:
- Ahmad Alamoush, SSE
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates an empty TransportMessage instance.TransportMessage(String streamId, byte[] messageByte, String requestWatch) Creates a TransportMessage instance. -
Method Summary
Modifier and TypeMethodDescriptionvoidGenerate and append id number for the stream id.byte[]Returns the text for the message.Returns the Request Watch Type for the stream message.Returns the streamId for the stream message.voidsetMessageByte(byte[] messageByte) Set the method of the text for the message.voidsetRequestWatch(String requestWatch) Set the RequestWatchType for the stream message.voidsetStreamId(String streamId) Set the streamId for the stream message.
-
Field Details
-
streamId
-
messageByte
private byte[] messageByte -
requestWatch
-
-
Constructor Details
-
TransportMessage
public TransportMessage()Creates an empty TransportMessage instance. -
TransportMessage
Creates a TransportMessage instance.- Parameters:
streamId- the streamId for the stream messagemessageByte- the text for the message in bytesrequestWatch- is the Request Watch Type for the stream message
-
-
Method Details
-
getRequestWatch
Returns the Request Watch Type for the stream message.- Returns:
- the RequestWatchType for the stream message
-
setRequestWatch
Set the RequestWatchType for the stream message.- Parameters:
requestWatch- is the Request Watch Type for the stream message
-
getStreamId
Returns the streamId for the stream message.- Returns:
- the streamId for the stream message
-
setStreamId
Set the streamId for the stream message.- Parameters:
streamId- is the streamId for the stream message
-
getMessageByte
public byte[] getMessageByte()Returns the text for the message.- Returns:
- the messageTxt
-
setMessageByte
public void setMessageByte(byte[] messageByte) Set the method of the text for the message.- Parameters:
messageByte- the text for the message
-
generateStreamIdNo
public void generateStreamIdNo()Generate and append id number for the stream id.
-