类 OffloadPoliciesImpl
java.lang.Object
org.apache.pulsar.common.policies.data.OffloadPoliciesImpl
- 所有已实现的接口:
Serializable,OffloadPolicies
Definition of the offload policies.
- 另请参阅:
-
嵌套类概要
嵌套类从接口继承的嵌套类/接口 org.apache.pulsar.common.policies.data.OffloadPolicies
OffloadPolicies.Builder -
字段概要
字段修饰符和类型字段说明static final Stringstatic final intstatic final intstatic final Longstatic final intstatic final intstatic final Longstatic final Longstatic final OffloadedReadPrioritystatic final Stringstatic final intstatic final Stringstatic final com.google.common.collect.ImmutableList<String>static final Stringstatic final com.google.common.collect.ImmutableList<String>static final String -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明booleanbuilder()voidcompatibleWithBrokerConfigFile(Properties properties) static OffloadPoliciesImplcreate(String driver, String region, String bucket, String endpoint, String role, String roleSessionName, String credentialId, String credentialSecret, Integer maxBlockSizeInBytes, Integer readBufferSizeInBytes, Long offloadThresholdInBytes, Long offloadThresholdInSeconds, Long offloadDeletionLagInMillis, OffloadedReadPriority readPriority) static OffloadPoliciesImplcreate(Properties properties) booleanstatic Stringbooleanbooleanbooleanstatic OffloadPoliciesImplmergeConfiguration(OffloadPoliciesImpl topicLevelPolicies, OffloadPoliciesImpl nsLevelPolicies, Properties brokerProperties) Merge different level offload policies.static OffloadPoliciesImploldPoliciesCompatible(OffloadPoliciesImpl nsLevelPolicies, Policies policies) This method is used to make a compatible with old policies.从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 org.apache.pulsar.common.policies.data.OffloadPolicies
getFileSystemProfilePath, getFileSystemURI, getGcsManagedLedgerOffloadBucket, getGcsManagedLedgerOffloadMaxBlockSizeInBytes, getGcsManagedLedgerOffloadReadBufferSizeInBytes, getGcsManagedLedgerOffloadRegion, getGcsManagedLedgerOffloadServiceAccountKeyFile, getManagedLedgerOffloadBucket, getManagedLedgerOffloadDeletionLagInMillis, getManagedLedgerOffloadDriver, getManagedLedgerOffloadedReadPriority, getManagedLedgerOffloadMaxBlockSizeInBytes, getManagedLedgerOffloadMaxThreads, getManagedLedgerOffloadPrefetchRounds, getManagedLedgerOffloadReadBufferSizeInBytes, getManagedLedgerOffloadRegion, getManagedLedgerOffloadServiceEndpoint, getManagedLedgerOffloadThresholdInBytes, getManagedLedgerOffloadThresholdInSeconds, getOffloadersDirectory, getS3ManagedLedgerOffloadBucket, getS3ManagedLedgerOffloadCredentialId, getS3ManagedLedgerOffloadCredentialSecret, getS3ManagedLedgerOffloadMaxBlockSizeInBytes, getS3ManagedLedgerOffloadReadBufferSizeInBytes, getS3ManagedLedgerOffloadRegion, getS3ManagedLedgerOffloadRole, getS3ManagedLedgerOffloadRoleSessionName, getS3ManagedLedgerOffloadServiceEndpoint
-
字段详细资料
-
CONFIGURATION_FIELDS
-
INTERNAL_SUPPORTED_DRIVER
-
DRIVER_NAMES
-
DEFAULT_MAX_BLOCK_SIZE_IN_BYTES
public static final int DEFAULT_MAX_BLOCK_SIZE_IN_BYTES- 另请参阅:
-
DEFAULT_GCS_MAX_BLOCK_SIZE_IN_BYTES
public static final int DEFAULT_GCS_MAX_BLOCK_SIZE_IN_BYTES- 另请参阅:
-
DEFAULT_READ_BUFFER_SIZE_IN_BYTES
public static final int DEFAULT_READ_BUFFER_SIZE_IN_BYTES- 另请参阅:
-
DEFAULT_OFFLOAD_MAX_THREADS
public static final int DEFAULT_OFFLOAD_MAX_THREADS- 另请参阅:
-
DEFAULT_OFFLOAD_MAX_PREFETCH_ROUNDS
public static final int DEFAULT_OFFLOAD_MAX_PREFETCH_ROUNDS- 另请参阅:
-
DEFAULT_OFFLOADER_DIRECTORY
- 另请参阅:
-
DEFAULT_OFFLOAD_THRESHOLD_IN_BYTES
-
DEFAULT_OFFLOAD_THRESHOLD_IN_SECONDS
-
DEFAULT_OFFLOAD_DELETION_LAG_IN_MILLIS
-
EXTRA_CONFIG_PREFIX
- 另请参阅:
-
OFFLOAD_THRESHOLD_NAME_IN_CONF_FILE
- 另请参阅:
-
DELETION_LAG_NAME_IN_CONF_FILE
- 另请参阅:
-
DATA_READ_PRIORITY_NAME_IN_CONF_FILE
- 另请参阅:
-
DEFAULT_OFFLOADED_READ_PRIORITY
-
-
构造器详细资料
-
OffloadPoliciesImpl
public OffloadPoliciesImpl()
-
-
方法详细资料
-
create
public static OffloadPoliciesImpl create(String driver, String region, String bucket, String endpoint, String role, String roleSessionName, String credentialId, String credentialSecret, Integer maxBlockSizeInBytes, Integer readBufferSizeInBytes, Long offloadThresholdInBytes, Long offloadThresholdInSeconds, Long offloadDeletionLagInMillis, OffloadedReadPriority readPriority) -
create
-
builder
-
compatibleWithBrokerConfigFile
-
driverSupported
public boolean driverSupported() -
getSupportedDriverNames
-
isS3Driver
public boolean isS3Driver() -
isGcsDriver
public boolean isGcsDriver() -
isFileSystemDriver
public boolean isFileSystemDriver() -
bucketValid
public boolean bucketValid() -
toProperties
-
oldPoliciesCompatible
public static OffloadPoliciesImpl oldPoliciesCompatible(OffloadPoliciesImpl nsLevelPolicies, Policies policies) This method is used to make a compatible with old policies.The filed
Policies.offload_thresholdis primitive, so it can't be known whether it had been set. In the old logic, if the field value is -1, it could be thought that the field had not been set.- 参数:
nsLevelPolicies- namespace level offload policiespolicies- namespace policies- 返回:
- offload policies
-
mergeConfiguration
public static OffloadPoliciesImpl mergeConfiguration(OffloadPoliciesImpl topicLevelPolicies, OffloadPoliciesImpl nsLevelPolicies, Properties brokerProperties) Merge different level offload policies.policies level priority: topic > namespace > broker
- 参数:
topicLevelPolicies- topic level offload policiesnsLevelPolicies- namespace level offload policiesbrokerProperties- broker level offload configuration- 返回:
- offload policies
-