public interface GridComponent
| Modifier and Type | Interface and Description |
|---|---|
static class |
GridComponent.DiscoveryDataExchangeType
Unique component type for discovery data exchange.
|
| Modifier and Type | Method and Description |
|---|---|
void |
collectGridNodeData(DiscoveryDataBag dataBag)
Collects discovery data on nodes already in grid on receiving
TcpDiscoveryNodeAddedMessage. |
void |
collectJoiningNodeData(DiscoveryDataBag dataBag)
Collects discovery data on joining node before sending
TcpDiscoveryJoinRequestMessage request. |
GridComponent.DiscoveryDataExchangeType |
discoveryDataType()
Gets unique component type to distinguish components providing discovery data.
|
void |
onDisconnected(IgniteFuture<?> reconnectFut)
Client disconnected callback.
|
void |
onGridDataReceived(DiscoveryDataBag.GridDiscoveryData data)
Receives discovery data object from remote nodes (called
on new node during discovery process).
|
void |
onJoiningNodeDataReceived(DiscoveryDataBag.JoiningNodeDiscoveryData data)
Method is called on nodes that are already in grid (not on joining node).
|
void |
onKernalStart(boolean active)
Callback that notifies that kernal has successfully started,
including all managers and processors.
|
void |
onKernalStop(boolean cancel)
Callback to notify that kernal is about to stop.
|
IgniteInternalFuture<?> |
onReconnected(boolean clusterRestarted)
Client reconnected callback.
|
void |
printMemoryStats()
Prints memory statistics (sizes of internal structures, etc.).
|
void |
start()
Starts grid component.
|
void |
stop(boolean cancel)
Stops grid component.
|
IgniteNodeValidationResult |
validateNode(ClusterNode node)
Validates that new node can join grid topology, this method is called on coordinator
node before new node joins topology.
|
void start()
throws IgniteCheckedException
IgniteCheckedException - Throws in case of any errors.void stop(boolean cancel)
throws IgniteCheckedException
cancel - If true, then all ongoing tasks or jobs for relevant
components need to be cancelled.IgniteCheckedException - Thrown in case of any errors.void onKernalStart(boolean active)
throws IgniteCheckedException
active - Cluster active flag (note: should be used carefully since state can
change concurrently).IgniteCheckedException - Thrown in case of any errors.void onKernalStop(boolean cancel)
cancel - Flag indicating whether jobs should be canceled.void collectJoiningNodeData(DiscoveryDataBag dataBag)
TcpDiscoveryJoinRequestMessage request.dataBag - container object to store discovery data in.void collectGridNodeData(DiscoveryDataBag dataBag)
TcpDiscoveryNodeAddedMessage.dataBag - container object to store discovery data in.void onGridDataReceived(DiscoveryDataBag.GridDiscoveryData data)
data - DiscoveryDataBag.GridDiscoveryData interface to retrieve discovery data collected on remote nodes
(data common for all nodes in grid and specific for each node).void onJoiningNodeDataReceived(DiscoveryDataBag.JoiningNodeDiscoveryData data)
data - DiscoveryDataBag.JoiningNodeDiscoveryData interface to retrieve discovery data of joining node.void printMemoryStats()
@Nullable IgniteNodeValidationResult validateNode(ClusterNode node)
node - Joining node.null in case of success.@Nullable GridComponent.DiscoveryDataExchangeType discoveryDataType()
collectJoiningNodeData(DiscoveryDataBag)
or collectGridNodeData(DiscoveryDataBag).void onDisconnected(IgniteFuture<?> reconnectFut) throws IgniteCheckedException
reconnectFut - Reconnect future.IgniteCheckedException - If failed.@Nullable IgniteInternalFuture<?> onReconnected(boolean clusterRestarted) throws IgniteCheckedException
clusterRestarted - Cluster restarted flag.IgniteCheckedException - If failed.
Follow @ApacheIgnite
Ignite Fabric : ver. 2.2.0 Release Date : September 15 2017