Package org.eso.ias.command
Class ReplyMessage
java.lang.Object
org.eso.ias.command.ReplyMessage
The java POJO to send replies over the kafka topic.
This POJO is serialized into a JSON string to be published in the
kafka topic
- Author:
- acaproni
-
Constructor Summary
ConstructorDescriptionEmpty constructorReplyMessage
(String senderFullRunningId, String destFullRunningId, long id, CommandType command, CommandExitStatus exitStatus, long receptionTStamp, long processedTStamp, Map<String, String> properties) Constructor -
Method Summary
Modifier and TypeMethodDescriptionboolean
long
getId()
long
long
int
hashCode()
void
setCommand
(CommandType command) void
setDestFullRunningId
(String destFullRunningId) void
setExitStatus
(CommandExitStatus exitStatus) void
setId
(long id) void
setProcessedTStamp
(String processedTStamp) void
setProcessedTStampMillis
(long processedTStamp) void
setProperties
(Map<String, String> properties) void
setReceptionTStamp
(String receptionTStamp) void
setReceptionTStampMillis
(long receptionTStamp) void
setSenderFullRunningId
(String senderFullRunningId) toString()
-
Constructor Details
-
ReplyMessage
public ReplyMessage()Empty constructor -
ReplyMessage
public ReplyMessage(String senderFullRunningId, String destFullRunningId, long id, CommandType command, CommandExitStatus exitStatus, long receptionTStamp, long processedTStamp, Map<String, String> properties) Constructor- Parameters:
senderFullRunningId
- The full running ID of the sender of the replydestFullRunningId
- The full running ID of the receiver of the commandid
- The unique identifier (in the context of the sender) of the commandcommand
- The command just executedexitStatus
- The exit status of the commandreceptionTStamp
- The point in time when the command has been received from the kafka topicprocessedTStamp
- The point in time when the execution of the command terminatedproperties
- Additional properties, if any
-
-
Method Details
-
getSenderFullRunningId
-
setSenderFullRunningId
-
getDestFullRunningId
-
setDestFullRunningId
-
getId
public long getId() -
setId
public void setId(long id) -
getCommand
-
setCommand
-
getExitStatus
-
setExitStatus
-
getReceptionTStamp
-
getReceptionTStampMillis
public long getReceptionTStampMillis() -
setReceptionTStamp
-
setReceptionTStampMillis
public void setReceptionTStampMillis(long receptionTStamp) -
getProcessedTStamp
-
getProcessedTStampMillis
public long getProcessedTStampMillis() -
setProcessedTStamp
-
setProcessedTStampMillis
public void setProcessedTStampMillis(long processedTStamp) -
getProperties
-
setProperties
-
toString
-
equals
-
hashCode
public int hashCode()
-