Top Fields Constructors Methods
jdk.jfr.internal.consumer

public final Class RepositoryFiles

extends Object
Class Inheritance
Imports
java.io.IOException, java.nio.file.DirectoryIteratorException, .DirectoryStream, .Path, java.nio.file.attribute.FileTime, java.util.ArrayList, .Collections, .HashMap, .HashSet, .List, .Map, .NavigableMap, .Set, .SortedMap, .TreeMap, jdk.jfr.internal.LogLevel, .LogTag, .Logger, .Repository, .SecuritySupport.SafePath

Field Summary

Modifier and TypeField and Description
private boolean
private volatile boolean
private static final String
private final FileAccess
private final Map<Path, Long>
private final NavigableMap<Long, Path>
private Path
private static final Object
private final Object

Constructor Summary

AccessConstructor and Description
public
RepositoryFiles(FileAccess fileAccess, Path repository, boolean allowSubDirectory)

Method Summary

Modifier and TypeMethod and Description
pack-priv void
private Path
public Path
firstPath(long startTimeNanos, boolean wait)

private FileTime
pack-priv long
public boolean
private static boolean
isRepository(String filename)

public Path
lastPath(boolean wait)

private void
nap()

public Path
nextPath(long startTimeNanos, boolean wait)

public static void
private Path
path(long timestamp, boolean wait)

private long
private boolean
updatePaths(boolean wait)

private boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

allowSubDirectoryback to summary
private boolean allowSubDirectory
closedback to summary
private volatile boolean closed
DIRECTORY_PATTERNback to summary
private static final String DIRECTORY_PATTERN
fileAccessback to summary
private final FileAccess fileAccess
pathLookupback to summary
private final Map<Path, Long> pathLookup
pathSetback to summary
private final NavigableMap<Long, Path> pathSet
repositoryback to summary
private Path repository
WAIT_OBJECTback to summary
private static final Object WAIT_OBJECT
waitObjectback to summary
private final Object waitObject

Constructor Detail

RepositoryFilesback to summary
public RepositoryFiles(FileAccess fileAccess, Path repository, boolean allowSubDirectory)

Method Detail

closeback to summary
pack-priv void close()
findSubDirectoryback to summary
private Path findSubDirectory(Path repoPath)
firstPathback to summary
public Path firstPath(long startTimeNanos, boolean wait)
getLastModifiedback to summary
private FileTime getLastModified(Path p)
getTimestampback to summary
pack-priv long getTimestamp(Path p)
hasFixedPathback to summary
public boolean hasFixedPath()
isRepositoryback to summary
private static boolean isRepository(String filename)
lastPathback to summary
public Path lastPath(boolean wait)
napback to summary
private void nap()
nextPathback to summary
public Path nextPath(long startTimeNanos, boolean wait)
notifyNewFileback to summary
public static void notifyNewFile()
pathback to summary
private Path path(long timestamp, boolean wait)
readStartTimeback to summary
private long readStartTime(Path p)
updatePathsback to summary
private boolean updatePaths(boolean wait)
updatePathsback to summary
private boolean updatePaths() throws IOException, DirectoryIteratorException