public class GridClusterStateProcessor extends GridProcessorAdapter
GridComponent.DiscoveryDataExchangeTypectx, log| Constructor and Description |
|---|
GridClusterStateProcessor(GridKernalContext ctx) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
active() |
IgniteInternalFuture<?> |
changeGlobalState(boolean activate) |
boolean |
changeGlobalState(Collection<DynamicCacheChangeRequest> reqs,
AffinityTopologyVersion topVer) |
void |
collectGridNodeData(DiscoveryDataBag dataBag)
Collects discovery data on nodes already in grid on receiving
TcpDiscoveryNodeAddedMessage. |
GridComponent.DiscoveryDataExchangeType |
discoveryDataType()
Gets unique component type to distinguish components providing discovery data.
|
Exception |
onChangeGlobalState()
Invoke from exchange future.
|
Exception |
onDeActivate(org.apache.ignite.internal.processors.cluster.GridClusterStateProcessor.ChangeGlobalStateContext cgsCtx) |
void |
onExchangeDone() |
void |
onFinalDeActivate(org.apache.ignite.internal.processors.cluster.GridClusterStateProcessor.ChangeGlobalStateContext cgsCtx) |
void |
onFullResponseMessage(Map<UUID,Exception> exs) |
void |
onGridDataReceived(DiscoveryDataBag.GridDiscoveryData data)
Receives discovery data object from remote nodes (called
on new node during discovery process).
|
void |
start(boolean activeOnStart)
Starts grid component.
|
void |
stop(boolean cancel)
Stops grid component.
|
String |
toString() |
assertParameter, collectJoiningNodeData, onDisconnected, onJoiningNodeDataReceived, onKernalStart, onKernalStop, onReconnected, printMemoryStats, validateNodepublic GridClusterStateProcessor(GridKernalContext ctx)
ctx - Kernal context.public void start(boolean activeOnStart)
throws IgniteCheckedException
start in interface GridComponentstart in class GridProcessorAdapterIgniteCheckedException - Throws in case of any errors.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)
public boolean active()
public boolean changeGlobalState(Collection<DynamicCacheChangeRequest> reqs, AffinityTopologyVersion topVer)
reqs - Requests.public Exception onChangeGlobalState()
public void onFullResponseMessage(Map<UUID,Exception> exs)
exs - Exs.public Exception onDeActivate(org.apache.ignite.internal.processors.cluster.GridClusterStateProcessor.ChangeGlobalStateContext cgsCtx)
public void onFinalDeActivate(org.apache.ignite.internal.processors.cluster.GridClusterStateProcessor.ChangeGlobalStateContext cgsCtx)
public void onExchangeDone()
public String toString()
toString in class GridProcessorAdapter
Follow @ApacheIgnite
Ignite Fabric : ver. 2.0.0 Release Date : April 30 2017