接口 LedgerOffloaderFactory<T extends LedgerOffloader>
Factory to create
LedgerOffloader to offload ledgers into long-term storage.-
方法概要
修饰符和类型方法说明create(org.apache.pulsar.common.policies.data.OffloadPoliciesImpl offloadPolicies, Map<String, String> userMetadata, org.apache.bookkeeper.common.util.OrderedScheduler scheduler) Create a ledger offloader with the provided configuration, user-metadata and scheduler.default Tcreate(org.apache.pulsar.common.policies.data.OffloadPoliciesImpl offloadPolicies, Map<String, String> userMetadata, org.apache.pulsar.common.protocol.schema.SchemaStorage schemaStorage, org.apache.bookkeeper.common.util.OrderedScheduler scheduler) Create a ledger offloader with the provided configuration, user-metadata, schema storage and scheduler.booleanisDriverSupported(String driverName) Check whether the provided driver driverName is supported.
-
方法详细资料
-
isDriverSupported
Check whether the provided driver driverName is supported.- 参数:
driverName- offloader driver name- 返回:
- true if the driver is supported, otherwise false.
-
create
T create(org.apache.pulsar.common.policies.data.OffloadPoliciesImpl offloadPolicies, Map<String, String> userMetadata, org.apache.bookkeeper.common.util.OrderedScheduler scheduler) throws IOExceptionCreate a ledger offloader with the provided configuration, user-metadata and scheduler.- 参数:
offloadPolicies- offload policiesuserMetadata- user metadatascheduler- scheduler- 返回:
- the offloader instance
- 抛出:
IOException- when fail to create an offloader
-
create
default T create(org.apache.pulsar.common.policies.data.OffloadPoliciesImpl offloadPolicies, Map<String, String> userMetadata, org.apache.pulsar.common.protocol.schema.SchemaStorage schemaStorage, org.apache.bookkeeper.common.util.OrderedScheduler scheduler) throws IOExceptionCreate a ledger offloader with the provided configuration, user-metadata, schema storage and scheduler.- 参数:
offloadPolicies- offload policiesuserMetadata- user metadataschemaStorage- used for schema lookup in offloaderscheduler- scheduler- 返回:
- the offloader instance
- 抛出:
IOException- when fail to create an offloader
-