Utility class to temporarily cache the userID and group maps in Linux, for
parsing process ownership. Cache expires after one minute.
-
Method Summary
Gets the group name for a given ID
Gets a user from their ID
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
getUser
Gets a user from their ID
- Parameters:
userId
- a user ID
- Returns:
- a pair containing that user id as the first element and the user name
as the second
-
getGroupName
Gets the group name for a given ID
- Parameters:
groupId
- a String
object.
- Returns:
- a
String
object.