Package glide.api.models.commands
Class MonitorMsg
- java.lang.Object
-
- glide.api.models.commands.MonitorMsg
-
public final class MonitorMsg extends java.lang.ObjectRepresents 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 booleanequals(java.lang.Object o)java.util.List<java.lang.String>getArgs()The command arguments (not including the command name).java.lang.StringgetClientAddr()Address of the client that issued the command (ip:port or unix:/path).java.lang.StringgetCommand()The command name (e.g., "SET", "GET").longgetDb()Database index on which the command was executed.doublegetTimestamp()Unix timestamp of the command.inthashCode()java.lang.StringtoString()
-
-
-
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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-