Class MonitorMsg


  • public final class MonitorMsg
    extends java.lang.Object
    Represents a single line received from the MONITOR command.
    • Constructor Summary

      Constructors 
      Constructor Description
      MonitorMsg​(double timestamp, long db, java.lang.String clientAddr, java.lang.String command, java.util.List<java.lang.String> args)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      java.util.List<java.lang.String> getArgs()
      The command arguments (not including the command name).
      java.lang.String getClientAddr()
      Address of the client that issued the command (ip:port or unix:/path).
      java.lang.String getCommand()
      The command name (e.g., "SET", "GET").
      long getDb()
      Database index on which the command was executed.
      double getTimestamp()
      Unix timestamp of the command.
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • MonitorMsg

        public MonitorMsg​(double timestamp,
                          long db,
                          java.lang.String clientAddr,
                          java.lang.String command,
                          java.util.List<java.lang.String> args)
    • Method Detail

      • getTimestamp

        public double getTimestamp()
        Unix timestamp of the command.
      • getDb

        public long getDb()
        Database index on which the command was executed.
      • getClientAddr

        public java.lang.String getClientAddr()
        Address of the client that issued the command (ip:port or unix:/path).
      • getCommand

        public java.lang.String getCommand()
        The command name (e.g., "SET", "GET").
      • getArgs

        public java.util.List<java.lang.String> getArgs()
        The command arguments (not including the command name).
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object