Package redis.clients.jedis.resps
Class AccessControlLogEntry
java.lang.Object
redis.clients.jedis.resps.AccessControlLogEntry
- All Implemented Interfaces:
Serializable
This class holds information about an Access Control Log entry (returned by ACL LOG command) They
can be access via getters. For future purpose there is also
getlogEntry() method that
returns a generic Map - in case where more info is returned from a server- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringprivate final Stringstatic final Stringprivate final Stringstatic final Stringprivate longstatic final Stringstatic final Stringprivate final longprivate final Stringstatic final Stringprivate final Stringstatic final Stringprivate static final longstatic final Stringstatic final Stringprivate final longprivate final longprivate final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonggetCount()longgetMapFromRawClientInfo(String clientInfo) Convert the client-info string into a Map of String.longlongtoString()
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
COUNT
- See Also:
-
REASON
- See Also:
-
CONTEXT
- See Also:
-
OBJECT
- See Also:
-
USERNAME
- See Also:
-
AGE_SECONDS
- See Also:
-
CLIENT_INFO
- See Also:
-
ENTRY_ID
- See Also:
-
TIMESTAMP_CREATED
- See Also:
-
TIMESTAMP_LAST_UPDATED
- See Also:
-
count
private long count -
reason
-
context
-
object
-
username
-
ageSeconds
-
clientInfo
-
logEntry
-
entryId
private final long entryId -
timestampCreated
private final long timestampCreated -
timestampLastUpdated
private final long timestampLastUpdated
-
-
Constructor Details
-
AccessControlLogEntry
-
-
Method Details
-
getCount
public long getCount() -
getReason
-
getContext
-
getObject
-
getUsername
-
getAgeSeconds
-
getClientInfo
-
getlogEntry
- Returns:
- Generic map containing all key-value pairs returned by the server
-
getEntryId
public long getEntryId() -
getTimestampCreated
public long getTimestampCreated() -
getTimestampLastUpdated
public long getTimestampLastUpdated() -
getMapFromRawClientInfo
Convert the client-info string into a Map of String. When the value is empty, the value in the map is set to an empty string The key order is maintained to reflect the string return by Redis- Parameters:
clientInfo-- Returns:
- A Map with all client info
-
toString
-