APIdia Launch Partner
Top Fields Constructors Methods
jdk.jfr.internal

public final Class Repository

extends Object
Class Inheritance
Imports
java.io.IOException, java.nio.file.Files, .Path, java.time.DateTimeException, .LocalDateTime, .ZoneOffset, java.util.HashSet, .Set, jdk.jfr.internal.management.ChunkFilename, jdk.jfr.internal.util.ValueFormatter, .DirectoryCleaner, .Utils

Field Summary

Modifier and TypeField and Description
private Path
private ChunkFilename
private final Set<Path>
private static final Repository
private static final Path
private static final String
private static final int
private Path

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
pack-priv synchronized void
private static Path
private static Path
public synchronized void
public synchronized Path
public static Repository
public synchronized Path
pack-priv synchronized RepositoryChunk
public synchronized void
setBasePath(Path baseLocation)

private static LocalDateTime
private static boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

baseLocationback to summary
private Path baseLocation
chunkFilenameback to summary
private ChunkFilename chunkFilename
cleanupDirectoriesback to summary
private final Set<Path> cleanupDirectories
instanceback to summary
private static final Repository instance
JAVA_IO_TMPDIRback to summary
private static final Path JAVA_IO_TMPDIR
JFR_REPOSITORY_LOCATION_PROPERTYback to summary
private static final String JFR_REPOSITORY_LOCATION_PROPERTY
MAX_REPO_CREATION_RETRIESback to summary
private static final int MAX_REPO_CREATION_RETRIES
repositoryback to summary
private Path repository

Constructor Detail

Repositoryback to summary
private Repository()

Method Detail

clearback to summary
pack-priv synchronized void clear()
createRealBasePathback to summary
private static Path createRealBasePath(Path path) throws IOException
createRepositoryback to summary
private static Path createRepository(Path basePath) throws IOException
ensureRepositoryback to summary
public synchronized void ensureRepository() throws IOException
getBaseLocationback to summary
public synchronized Path getBaseLocation()
getRepositoryback to summary
public static Repository getRepository()
getRepositoryPathback to summary
public synchronized Path getRepositoryPath()
newChunkback to summary
pack-priv synchronized RepositoryChunk newChunk()
setBasePathback to summary
public synchronized void setBasePath(Path baseLocation) throws IOException
timestampback to summary
private static LocalDateTime timestamp()
tryToUseAsRepositoryback to summary
private static boolean tryToUseAsRepository(Path path)