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 mergeInto(ParticipantConfig orig)
Create a ParticipantConfig that is the combination of an existing ParticipantConfig and this delta
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
ParticipantConfig.Delta setUserConfig(UserConfig userConfig)
Set the user configuration
[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 mergeInto (ParticipantConfig orig)

Create a ParticipantConfig that is the combination of an existing ParticipantConfig and this delta

Parameters
orig the original ParticipantConfig
Returns
  • updated ParticipantConfig

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

public ParticipantConfig.Delta setUserConfig (UserConfig userConfig)

Set the user configuration

Parameters
userConfig user-specified properties
Returns
  • Delta