public class GridClusterStateProcessor extends GridProcessorAdapter
GridComponent.DiscoveryDataExchangeTypectx, diagnosticLog, log| Constructor and Description |
|---|
GridClusterStateProcessor(GridKernalContext ctx) |
assertParameter, collectJoiningNodeData, onDisconnected, onJoiningNodeDataReceived, onKernalStart, onReconnected, printMemoryStats, validateNodepublic GridClusterStateProcessor(GridKernalContext ctx)
ctx - Kernal context.public boolean publicApiActiveState()
public void start()
throws IgniteCheckedException
start in interface GridComponentstart in class GridProcessorAdapterIgniteCheckedException - Throws in case of any errors.public void onKernalStop(boolean cancel)
onKernalStop in interface GridComponentonKernalStop in class GridProcessorAdaptercancel - Flag indicating whether jobs should be canceled.@Nullable public IgniteInternalFuture<Boolean> onLocalJoin(DiscoCache discoCache)
discoCache - Discovery data cache.@Nullable public ChangeGlobalStateFinishMessage onNodeLeft(ClusterNode node)
node - Failed node.public void onStateFinishMessage(ChangeGlobalStateFinishMessage msg)
msg - Message.public boolean onStateChangeMessage(AffinityTopologyVersion topVer, ChangeGlobalStateMessage msg, DiscoCache discoCache)
topVer - Current topology version.msg - Message.discoCache - Current nodes.True if need start state change process.public DiscoveryDataClusterState clusterState()
public void cacheProcessorStarted()
public void stop(boolean cancel)
throws IgniteCheckedException
stop in interface GridComponentstop in class GridProcessorAdaptercancel - If true, then all ongoing tasks or jobs for relevant
components need to be cancelled.IgniteCheckedException - Thrown in case of any errors.@Nullable public GridComponent.DiscoveryDataExchangeType discoveryDataType()
GridComponent.collectJoiningNodeData(DiscoveryDataBag)
or GridComponent.collectGridNodeData(DiscoveryDataBag).discoveryDataType in interface GridComponentdiscoveryDataType in class GridProcessorAdapterpublic void collectGridNodeData(DiscoveryDataBag dataBag)
TcpDiscoveryNodeAddedMessage.collectGridNodeData in interface GridComponentcollectGridNodeData in class GridProcessorAdapterdataBag - container object to store discovery data in.public void onGridDataReceived(DiscoveryDataBag.GridDiscoveryData data)
onGridDataReceived in interface GridComponentonGridDataReceived in class GridProcessorAdapterdata - DiscoveryDataBag.GridDiscoveryData interface to retrieve discovery data collected on remote nodes
(data common for all nodes in grid and specific for each node).public IgniteInternalFuture<?> changeGlobalState(boolean activate)
activate - New cluster state.public void onStateChangeError(Map<UUID,Exception> errs, StateChangeRequest req)
errs - Errors.req - State change request.public void onStateChangeExchangeDone(StateChangeRequest req)
req - State change request.public String toString()
toString in class GridProcessorAdapter
Follow @ApacheIgnite
Ignite Fabric : ver. 2.1.0 Release Date : July 20 2017