Class ReplyMessage

java.lang.Object
org.eso.ias.command.ReplyMessage

public class ReplyMessage extends Object
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 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 reply
      destFullRunningId - The full running ID of the receiver of the command
      id - The unique identifier (in the context of the sender) of the command
      command - The command just executed
      exitStatus - The exit status of the command
      receptionTStamp - The point in time when the command has been received from the kafka topic
      processedTStamp - The point in time when the execution of the command terminated
      properties - Additional properties, if any
  • Method Details

    • getSenderFullRunningId

      public String getSenderFullRunningId()
    • setSenderFullRunningId

      public void setSenderFullRunningId(String senderFullRunningId)
    • getDestFullRunningId

      public String getDestFullRunningId()
    • setDestFullRunningId

      public void setDestFullRunningId(String destFullRunningId)
    • getId

      public long getId()
    • setId

      public void setId(long id)
    • getCommand

      public CommandType getCommand()
    • setCommand

      public void setCommand(CommandType command)
    • getExitStatus

      public CommandExitStatus getExitStatus()
    • setExitStatus

      public void setExitStatus(CommandExitStatus exitStatus)
    • getReceptionTStamp

      public String getReceptionTStamp()
    • getReceptionTStampMillis

      public long getReceptionTStampMillis()
    • setReceptionTStamp

      public void setReceptionTStamp(String receptionTStamp)
    • setReceptionTStampMillis

      public void setReceptionTStampMillis(long receptionTStamp)
    • getProcessedTStamp

      public String getProcessedTStamp()
    • getProcessedTStampMillis

      public long getProcessedTStampMillis()
    • setProcessedTStamp

      public void setProcessedTStamp(String processedTStamp)
    • setProcessedTStampMillis

      public void setProcessedTStampMillis(long processedTStamp)
    • getProperties

      public Map<String,String> getProperties()
    • setProperties

      public void setProperties(Map<String,String> properties)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object