public static class FileSystemContext.FileSystemContextFactory extends Object
Constructor and Description |
---|
FileSystemContextFactory()
Default constructor.
|
public FileSystemContext create(AlluxioConfiguration conf, List<InetSocketAddress> masterAddresses)
FileSystemContext
with an empty subject
, a null local block worker, and the given master addresses.conf
- Alluxio configurationmasterAddresses
- the master addresses to use, this addresses will be
used across reinitializationpublic FileSystemContext create()
FileSystemContext
with an empty subject, default config
and a null local block worker.public FileSystemContext create(AlluxioConfiguration conf)
FileSystemContext
with an empty subject
and a null local block worker.conf
- Alluxio configurationpublic FileSystemContext create(Subject subject, AlluxioConfiguration conf)
subject
- the parent subjectconf
- Alluxio configurationpublic FileSystemContext create(ClientContext clientContext)
clientContext
- the ClientContext
containing the subject
and configurationFileSystemContext
public FileSystemContext create(ClientContext ctx, @Nullable BlockWorker blockWorker)
ctx
- client contextblockWorker
- block workerpublic FileSystemContext create(ClientContext ctx, @Nullable BlockWorker blockWorker, @Nullable List<InetSocketAddress> masterAddresses)
ctx
- client contextblockWorker
- block workermasterAddresses
- is non-null then the addresses used to connect to the masterpublic FileSystemContext create(Subject subject, MasterInquireClient masterInquireClient, AlluxioConfiguration alluxioConf)
FileSystemContext.create(alluxio.conf.AlluxioConfiguration, java.util.List<java.net.InetSocketAddress>)
methods. The
returned context object will not be cached automatically.subject
- the parent subjectmasterInquireClient
- the client to use for determining the master; note that if the
context is reset, this client will be replaced with a new masterInquireClient based on
the original configuration.alluxioConf
- Alluxio configurationCopyright © 2023. All Rights Reserved.