Class DistributedConfigurationProcessor
- java.lang.Object
-
- org.apache.ignite.internal.processors.GridProcessorAdapter
-
- org.apache.ignite.internal.processors.configuration.distributed.DistributedConfigurationProcessor
-
- All Implemented Interfaces:
GridComponent,DistributedPropertyDispatcher,GridProcessor
public class DistributedConfigurationProcessor extends GridProcessorAdapter implements DistributedPropertyDispatcher
Processor of distributed configuration. This class control lifecycle of actualizationDistributedPropertyacross whole cluster.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.ignite.internal.GridComponent
GridComponent.DiscoveryDataExchangeType
-
-
Field Summary
-
Fields inherited from class org.apache.ignite.internal.processors.GridProcessorAdapter
ctx, diagnosticLog, log
-
-
Constructor Summary
Constructors Constructor Description DistributedConfigurationProcessor(GridKernalContext ctx)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<DistributedChangeableProperty<Serializable>>properties()<T extends Serializable>
@Nullable DistributedChangeableProperty<T>property(String name)Get property by name.<T extends DistributedChangeableProperty>
voidregisterProperties(T... props)Attach already created property.<T extends Serializable>
DistributedProperty<T>registerProperty(DistributedChangeableProperty<T> prop)Register property to processor and attach it if it possible.voidstart()Starts grid component.static StringtoMetaStorageKey(String propKey)-
Methods inherited from class org.apache.ignite.internal.processors.GridProcessorAdapter
assertParameter, collectGridNodeData, collectJoiningNodeData, discoveryDataType, onDisconnected, onGridDataReceived, onJoiningNodeDataReceived, onKernalStart, onKernalStop, onReconnected, printMemoryStats, stop, toString, validateNode, validateNode
-
-
-
-
Constructor Detail
-
DistributedConfigurationProcessor
public DistributedConfigurationProcessor(GridKernalContext ctx)
- Parameters:
ctx- Kernal context.
-
-
Method Detail
-
start
public void start() throws IgniteCheckedExceptionStarts grid component.- Specified by:
startin interfaceGridComponent- Overrides:
startin classGridProcessorAdapter- Throws:
IgniteCheckedException- Throws in case of any errors.
-
toMetaStorageKey
public static String toMetaStorageKey(String propKey)
- Parameters:
propKey- Key of specific property.- Returns:
- Property key for meta storage.
-
registerProperties
public <T extends DistributedChangeableProperty> void registerProperties(T... props)
Attach already created property.- Specified by:
registerPropertiesin interfaceDistributedPropertyDispatcher- Type Parameters:
T- Type of property value.- Parameters:
props- Properties to attach to processor.
-
registerProperty
public <T extends Serializable> DistributedProperty<T> registerProperty(DistributedChangeableProperty<T> prop)
Register property to processor and attach it if it possible.- Specified by:
registerPropertyin interfaceDistributedPropertyDispatcher- Parameters:
prop- Property to attach to processor.
-
properties
public List<DistributedChangeableProperty<Serializable>> properties()
- Returns:
- Public properties.
-
property
@Nullable public <T extends Serializable> @Nullable DistributedChangeableProperty<T> property(String name)
Get property by name.- Specified by:
propertyin interfaceDistributedPropertyDispatcher- Type Parameters:
T- Property type.- Parameters:
name- Property name- Returns:
- Property.
-
-