@Private
@Unstable
public class SharedFileDescriptorFactory
extends java.lang.Object
| Modifier and Type | Field | Description |
|---|---|---|
static org.slf4j.Logger |
LOG |
| Modifier and Type | Method | Description |
|---|---|---|
static SharedFileDescriptorFactory |
create(java.lang.String prefix,
java.lang.String[] paths) |
Create a new SharedFileDescriptorFactory.
|
java.io.FileInputStream |
createDescriptor(java.lang.String info,
int length) |
Create a shared file descriptor which will be both readable and writable.
|
static java.lang.String |
getLoadingFailureReason() |
|
java.lang.String |
getPath() |
public static java.lang.String getLoadingFailureReason()
public static SharedFileDescriptorFactory create(java.lang.String prefix, java.lang.String[] paths) throws java.io.IOException
prefix - The prefix to prepend to all the file names created
by this factory.paths - An array of paths to use. We will try each path in
succession, and return a factory using the first
usable path.java.io.IOException - If a factory could not be created for any reason.public java.lang.String getPath()
public java.io.FileInputStream createDescriptor(java.lang.String info,
int length)
throws java.io.IOException
info - Information to include in the path of the
generated descriptor.length - The starting file length.java.io.IOException - If there was an I/O or configuration error creating
the descriptor.Copyright © 2008–2025 Apache Software Foundation. All rights reserved.