public class ConsensusProfileBuilder extends ProfileBuilder
| Modifier and Type | Method and Description |
|---|---|
Profile |
build()
Builds the object.
|
ConsensusProfileBuilder |
setDataGroup(String dataGroup)
Sets the data partition group name.
|
ConsensusProfileBuilder |
setDataPath(String dataPath)
Sets the consensus data file path.
|
ConsensusProfileBuilder |
setManagementGroup(String managementGroup)
Sets the management partition group name.
|
ConsensusProfileBuilder |
setPartitionSize(int partitionSize)
Sets the data partition size.
|
ConsensusProfileBuilder |
withMembers(Set<String> members)
Sets the consensus members.
|
ConsensusProfileBuilder |
withNumPartitions(int numPartitions)
Sets the number of data partitions to configure.
|
public ConsensusProfileBuilder setDataPath(String dataPath)
dataPath - the consensus data file pathpublic ConsensusProfileBuilder setManagementGroup(String managementGroup)
managementGroup - the management partition group namepublic ConsensusProfileBuilder setDataGroup(String dataGroup)
dataGroup - the data partition group namepublic ConsensusProfileBuilder setPartitionSize(int partitionSize)
partitionSize - the data partition sizepublic ConsensusProfileBuilder withNumPartitions(int numPartitions)
numPartitions - the number of data partitions to configurepublic ConsensusProfileBuilder withMembers(Set<String> members)
members - the consensus memberspublic Profile build()
BuilderThe returned object may be a new instance of the built class or a recycled instance, depending on the semantics of the builder implementation. Users should never assume that a builder allocates a new instance.
Copyright © 2013–2018. All rights reserved.