Class CommandMessage

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

public class CommandMessage extends Object
The java POJO representing a command to be published in the command kafka topic This POJO is serialized into a JSON string to be published in the kafka topic
  • Field Details

    • BROADCAST_ADDRESS

      public static final String BROADCAST_ADDRESS
      The address to send a message to all the IAS tools
      See Also:
  • Constructor Details

    • CommandMessage

      public CommandMessage()
      Empty constructor
    • CommandMessage

      public CommandMessage(String senderFullRunningId, String destId, CommandType command, long id, List<String> params, long timestamp, Map<String,String> properties)
      Constructor
      Parameters:
      senderFullRunningId - The full running ID of the sender of the command
      destId - The identifier of the receiver
      command - The command to execute
      id - The unique identifier (in the context of the sender) of the command
      params - The parameters of the command, if any
      timestamp - he timestamp when the command has been published
      properties - Additional properties, if any
  • Method Details

    • getSenderFullRunningId

      public String getSenderFullRunningId()
    • setSenderFullRunningId

      public void setSenderFullRunningId(String senderFullRunningId)
    • getDestId

      public String getDestId()
    • setDestId

      public void setDestId(String destId)
    • getCommand

      public CommandType getCommand()
    • setCommand

      public void setCommand(CommandType command)
    • getId

      public long getId()
    • setId

      public void setId(long id)
    • getParams

      public List<String> getParams()
    • setParams

      public void setParams(List<String> params)
    • getTimestamp

      public String getTimestamp()
    • getTimestampMillis

      public long getTimestampMillis()
    • setTimestampMillis

      public void setTimestampMillis(long timestamp)
    • setTimestamp

      public void setTimestamp(String isoTStamp)
      Set the timestamp to the passed ISO 8601 timestamp
    • getProperties

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

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

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object