Class NodeBuilder<EK extends io.datarouter.model.key.entity.EntityKey<EK>,PK extends io.datarouter.model.key.primary.EntityPrimaryKey<EK,PK>,D extends io.datarouter.model.databean.Databean<PK,D>,F extends io.datarouter.model.serialize.fielder.DatabeanFielder<PK,D>>
java.lang.Object
io.datarouter.storage.node.builder.NodeBuilder<EK,PK,D,F>
public class NodeBuilder<EK extends io.datarouter.model.key.entity.EntityKey<EK>,PK extends io.datarouter.model.key.primary.EntityPrimaryKey<EK,PK>,D extends io.datarouter.model.databean.Databean<PK,D>,F extends io.datarouter.model.serialize.fielder.DatabeanFielder<PK,D>>
extends java.lang.Object
-
Constructor Summary
Constructors Constructor Description NodeBuilder(BaseNodeFactory nodeFactory, java.util.function.Supplier<java.lang.Boolean> enableDiagnosticsSupplier, ClientId clientId, java.util.function.Supplier<EK> entityKeySupplier, java.util.function.Supplier<D> databeanSupplier, java.util.function.Supplier<F> fielderSupplier) -
Method Summary
Modifier and Type Method Description <N extends NodeOps<PK, D>>
Nbuild()<N extends NodeOps<PK, D>>
NbuildAndRegister()NodeBuilder<EK,PK,D,F>disableNodewatch()NodeBuilder<EK,PK,D,F>disableNodewatchPercentageAlert()NodeBuilder<EK,PK,D,F>disableNodewatchThresholdAlert()NodeBuilder<EK,PK,D,F>withDisableForcePrimary(boolean disableForcePrimary)NodeBuilder<EK,PK,D,F>withNodewatchBatchSize(int batchSize)NodeBuilder<EK,PK,D,F>withNodewatchConfigurationBuilder(NodewatchConfigurationBuilder nodewatchConfigurationBuilder)NodeBuilder<EK,PK,D,F>withNodewatchSampleSize(int sampleSize)NodeBuilder<EK,PK,D,F>withNodewatchThreshold(long threshold)NodeBuilder<EK,PK,D,F>withPartitionerSupplier(java.util.function.Supplier<io.datarouter.model.key.entity.EntityPartitioner<EK>> pertitionerSupplier)NodeBuilder<EK,PK,D,F>withSchemaVersion(java.lang.Integer schemaVersion)NodeBuilder<EK,PK,D,F>withTableName(java.lang.String tableName)
-
Constructor Details
-
NodeBuilder
public NodeBuilder(BaseNodeFactory nodeFactory, java.util.function.Supplier<java.lang.Boolean> enableDiagnosticsSupplier, ClientId clientId, java.util.function.Supplier<EK> entityKeySupplier, java.util.function.Supplier<D> databeanSupplier, java.util.function.Supplier<F> fielderSupplier)
-
-
Method Details
-
withPartitionerSupplier
-
withTableName
-
withSchemaVersion
-
withDisableForcePrimary
-
withNodewatchConfigurationBuilder
public NodeBuilder<EK,PK,D,F> withNodewatchConfigurationBuilder(NodewatchConfigurationBuilder nodewatchConfigurationBuilder) -
withNodewatchThreshold
-
withNodewatchSampleSize
-
withNodewatchBatchSize
-
disableNodewatch
-
disableNodewatchPercentageAlert
-
disableNodewatchThresholdAlert
-
build
-
buildAndRegister
-