Package net.bytebuddy.agent
Class VirtualMachine.ForOpenJ9.Dispatcher.ForJnaPosixEnvironment.PosixOwnerProvider.UsingIStat
java.lang.Object
net.bytebuddy.agent.VirtualMachine.ForOpenJ9.Dispatcher.ForJnaPosixEnvironment.PosixOwnerProvider.UsingIStat
- All Implemented Interfaces:
VirtualMachine.ForOpenJ9.Dispatcher.ForJnaPosixEnvironment.PosixOwnerProvider
- Enclosing interface:
VirtualMachine.ForOpenJ9.Dispatcher.ForJnaPosixEnvironment.PosixOwnerProvider
public static class VirtualMachine.ForOpenJ9.Dispatcher.ForJnaPosixEnvironment.PosixOwnerProvider.UsingIStat
extends Object
implements VirtualMachine.ForOpenJ9.Dispatcher.ForJnaPosixEnvironment.PosixOwnerProvider
An implementation for reading a POSIX owner using
istat
.-
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
FieldsModifier and TypeFieldDescriptionprivate static final Pattern
A pattern to represent the owner on the console output.private final int
The maximum amount of attempts for checking the result of a foreign process.private final long
The pause between two checks for another process to return.private final TimeUnit
The time unit of the pause time. -
Constructor Summary
ConstructorsConstructorDescriptionUsingIStat
(int attempts, long pause, TimeUnit timeUnit) Creates a new provider for reading a POSIX owner usingistat
. -
Method Summary
Modifier and TypeMethodDescriptionint
getOwnerIdOf
(File file) Returns the user id of the owner of the supplied file.
-
Field Details
-
AIX_OWNER_PATTERN
A pattern to represent the owner on the console output. -
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
-
UsingIStat
Creates a new provider for reading a POSIX owner usingistat
.- 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.
-