public static class

ParticipantConfig.Delta

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

Class Overview

Update context for a ParticipantConfig

Summary

Public Constructors
ParticipantConfig.Delta(ParticipantId participantId)
Instantiate the delta for a participant config
Public Methods
ParticipantConfig.Delta addDisabledPartition(PartitionId partitionId)
Add a partition to disable for this participant
ParticipantConfig.Delta addTag(String tag)
Add an new tag for this participant
ParticipantConfig.Delta addUserConfig(UserConfig userConfig)
Set the user configuration
void merge(HelixDataAccessor accessor)
Merge the participant delta in using a physical accessor
ParticipantConfig.Delta removeDisabledPartition(PartitionId partitionId)
Remove a partition from the disabled set for this participant
ParticipantConfig.Delta removeTag(String tag)
Remove a tag for this participant
ParticipantConfig.Delta setEnabled(boolean isEnabled)
Set the enabled status of the participant
ParticipantConfig.Delta setHostName(String hostName)
Set the participant host name
ParticipantConfig.Delta setPort(int port)
Set the participant port
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public ParticipantConfig.Delta (ParticipantId participantId)

Instantiate the delta for a participant config

Parameters
participantId the participant to update

Public Methods

public ParticipantConfig.Delta addDisabledPartition (PartitionId partitionId)

Add a partition to disable for this participant

Parameters
partitionId the partition to disable
Returns
  • Delta

public ParticipantConfig.Delta addTag (String tag)

Add an new tag for this participant

Parameters
tag the tag to add
Returns
  • Delta

public ParticipantConfig.Delta addUserConfig (UserConfig userConfig)

Set the user configuration

Parameters
userConfig user-specified properties
Returns
  • Delta

public void merge (HelixDataAccessor accessor)

Merge the participant delta in using a physical accessor

Parameters
accessor the physical accessor

public ParticipantConfig.Delta removeDisabledPartition (PartitionId partitionId)

Remove a partition from the disabled set for this participant

Parameters
partitionId the partition to enable
Returns
  • Delta

public ParticipantConfig.Delta removeTag (String tag)

Remove a tag for this participant

Parameters
tag the tag to remove
Returns
  • Delta

public ParticipantConfig.Delta setEnabled (boolean isEnabled)

Set the enabled status of the participant

Parameters
isEnabled true if enabled, false if disabled
Returns
  • Delta

public ParticipantConfig.Delta setHostName (String hostName)

Set the participant host name

Parameters
hostName reachable host when live
Returns
  • Delta

public ParticipantConfig.Delta setPort (int port)

Set the participant port

Parameters
port port number
Returns
  • Delta