public interface GridComponent
| Modifier and Type | Method and Description |
|---|---|
Object |
collectDiscoveryData(UUID nodeId)
Gets discovery data object that will be sent to new node
during discovery process.
|
void |
onDiscoveryDataReceived(Object data)
Receives discovery data object from remote nodes (called
on new node during discovery process).
|
void |
onKernalStart()
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.
|
void |
printMemoryStats()
Prints memory statistics (sizes of internal structures, etc.).
|
void |
start()
Starts grid component.
|
void |
stop(boolean cancel)
Stops grid component.
|
GridNodeValidationResult |
validateNode(GridNode node)
Validates that new node can join grid topology, this method is called on coordinator
node before new node joins topology.
|
void start()
throws GridException
GridException - Throws in case of any errors.void stop(boolean cancel)
throws GridException
cancel - If true, then all ongoing tasks or jobs for relevant
components need to be cancelled.GridException - Thrown in case of any errors.void onKernalStart()
throws GridException
GridException - Thrown in case of any errors.void onKernalStop(boolean cancel)
cancel - Flag indicating whether jobs should be canceled.@Nullable Object collectDiscoveryData(UUID nodeId)
nodeId - ID of new node that joins topology.null if there is nothing
to send for this component.void onDiscoveryDataReceived(Object data)
data - Discovery data object or null if nothing was
sent for this component.void printMemoryStats()
@Nullable GridNodeValidationResult validateNode(GridNode node)
node - Joining node.null in case of success.Copyright © 2014. All rights reserved.