Package co.elastic.apm.attach
Class UserRegistry
java.lang.Object
co.elastic.apm.attach.UserRegistry
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic UserRegistryempty()static UserRegistrystatic Stringstatic voidPrints the temp dir of the current user to the console.
-
Method Details
-
getAllUsersMacOs
- Throws:
IOExceptionInterruptedException
-
empty
-
getCurrentUserName
-
main
Prints the temp dir of the current user to the console.Executed within
UserRegistry.User.executeAsUserWithCurrentClassPath(java.lang.Class,java.util.List), to discover the temp dir of a given user in macOS. Forks a new JVM that runs in the context of a given user and runs this main method. This indirection is needed as each user has their own temp directory in macOS. -
getCurrentUser
-
getAllTempDirs
-
getAllUserNames
-
get
-