Package net.bytebuddy.agent
Class VirtualMachine.ForOpenJ9.Dispatcher.ForJnaPosixEnvironment.PosixOwnerProvider.UsingStat
java.lang.Object
net.bytebuddy.agent.VirtualMachine.ForOpenJ9.Dispatcher.ForJnaPosixEnvironment.PosixOwnerProvider.UsingStat
- All Implemented Interfaces:
VirtualMachine.ForOpenJ9.Dispatcher.ForJnaPosixEnvironment.PosixOwnerProvider
- Enclosing interface:
VirtualMachine.ForOpenJ9.Dispatcher.ForJnaPosixEnvironment.PosixOwnerProvider
public static class VirtualMachine.ForOpenJ9.Dispatcher.ForJnaPosixEnvironment.PosixOwnerProvider.UsingStat
extends Object
implements VirtualMachine.ForOpenJ9.Dispatcher.ForJnaPosixEnvironment.PosixOwnerProvider
An implementation of reading POSIX ownership using
stat
.-
Nested Class Summary
Nested classes/interfaces inherited from interface net.bytebuddy.agent.VirtualMachine.ForOpenJ9.Dispatcher.ForJnaPosixEnvironment.PosixOwnerProvider
VirtualMachine.ForOpenJ9.Dispatcher.ForJnaPosixEnvironment.PosixOwnerProvider.UsingIStat, VirtualMachine.ForOpenJ9.Dispatcher.ForJnaPosixEnvironment.PosixOwnerProvider.UsingStat
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
getOwnerIdOf
(File file) Returns the user id of the owner of the supplied file.
-
Field Details
-
attempts
private final int attemptsThe maximum amount of attempts for checking the result of a foreign process. -
pause
private final long pauseThe pause between two checks for another process to return. -
timeUnit
The time unit of the pause time.
-
-
Constructor Details
-
UsingStat
Creates a new provider where an owner is derived using thestat
command.- Parameters:
attempts
- The maximum amount of attempts for checking the result of a foreign process.pause
- The pause between two checks for another process to return.timeUnit
- The time unit of the pause time.
-
-
Method Details
-
getOwnerIdOf
Returns the user id of the owner of the supplied file.- Specified by:
getOwnerIdOf
in interfaceVirtualMachine.ForOpenJ9.Dispatcher.ForJnaPosixEnvironment.PosixOwnerProvider
- Parameters:
file
- The file for which to locate the owner.- Returns:
- The owner id of the supplied file.
-