public static class

ParticipantConfig.Builder

extends Object
java.lang.Object
   ↳ org.apache.helix.api.config.ParticipantConfig.Builder

Class Overview

Assemble a participant

Summary

Public Constructors
ParticipantConfig.Builder(ParticipantId id)
Build a participant with a given id
Public Methods
ParticipantConfig.Builder addDisabledPartition(PartitionId partitionId)
Add a partition to disable for this participant
ParticipantConfig.Builder addTag(String tag)
Add an arbitrary tag for this participant
ParticipantConfig build()
Assemble the participant
ParticipantConfig.Builder enabled(boolean isEnabled)
Set whether or not the participant is enabled
ParticipantConfig.Builder hostName(String hostName)
Set the participant host name
ParticipantConfig.Builder port(int port)
Set the participant port
ParticipantConfig.Builder userConfig(UserConfig userConfig)
Set the user configuration
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public ParticipantConfig.Builder (ParticipantId id)

Build a participant with a given id

Parameters
id participant id

Public Methods

public ParticipantConfig.Builder addDisabledPartition (PartitionId partitionId)

Add a partition to disable for this participant

Parameters
partitionId the partition to disable
Returns
  • Builder

public ParticipantConfig.Builder addTag (String tag)

Add an arbitrary tag for this participant

Parameters
tag the tag to add
Returns
  • Builder

public ParticipantConfig build ()

Assemble the participant

Returns
  • instantiated Participant

public ParticipantConfig.Builder enabled (boolean isEnabled)

Set whether or not the participant is enabled

Parameters
isEnabled true if enabled, false otherwise
Returns
  • Builder

public ParticipantConfig.Builder hostName (String hostName)

Set the participant host name

Parameters
hostName reachable host when live
Returns
  • Builder

public ParticipantConfig.Builder port (int port)

Set the participant port

Parameters
port port number
Returns
  • Builder

public ParticipantConfig.Builder userConfig (UserConfig userConfig)

Set the user configuration

Parameters
userConfig user-specified properties
Returns
  • Builder