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
ConstructorsConstructorDescriptionEmpty constructorReplyMessage(String senderFullRunningId, String destFullRunningId, long id, CommandType command, CommandExitStatus exitStatus, long receptionTStamp, long processedTStamp, Map<String, String> properties) Constructor -
Method Summary
Modifier and TypeMethodDescriptionbooleanlonggetId()longlonginthashCode()voidsetCommand(CommandType command) voidsetDestFullRunningId(String destFullRunningId) voidsetExitStatus(CommandExitStatus exitStatus) voidsetId(long id) voidsetProcessedTStamp(String processedTStamp) voidsetProcessedTStampMillis(long processedTStamp) voidsetProperties(Map<String, String> properties) voidsetReceptionTStamp(String receptionTStamp) voidsetReceptionTStampMillis(long receptionTStamp) voidsetSenderFullRunningId(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()
-