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 java.lang.Object implements VirtualMachine.ForOpenJ9.Dispatcher.ForJnaPosixEnvironment.PosixOwnerProvider
An implementation for reading a POSIX owner usingistat
.
-
-
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 Modifier and Type Field Description private static java.util.regex.Pattern
AIX_OWNER_PATTERN
A pattern to represent the owner on the console output.private int
attempts
The maximum amount of attempts for checking the result of a foreign process.private long
pause
The pause between two checks for another process to return.private java.util.concurrent.TimeUnit
timeUnit
The time unit of the pause time.
-
Constructor Summary
Constructors Constructor Description UsingIStat(int attempts, long pause, java.util.concurrent.TimeUnit timeUnit)
Creates a new provider for reading a POSIX owner usingistat
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getOwnerIdOf(java.io.File file)
Returns the user id of the owner of the supplied file.
-
-
-
Field Detail
-
AIX_OWNER_PATTERN
private static final java.util.regex.Pattern AIX_OWNER_PATTERN
A pattern to represent the owner on the console output.
-
attempts
private final int attempts
The maximum amount of attempts for checking the result of a foreign process.
-
pause
private final long pause
The pause between two checks for another process to return.
-
timeUnit
private final java.util.concurrent.TimeUnit timeUnit
The time unit of the pause time.
-
-
Constructor Detail
-
UsingIStat
public UsingIStat(int attempts, long pause, java.util.concurrent.TimeUnit timeUnit)
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 Detail
-
getOwnerIdOf
public int getOwnerIdOf(java.io.File file)
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.
-
-