public class GridNoopManagerAdapter extends Object implements GridManager
GridManager adapter.| Constructor and Description |
|---|
GridNoopManagerAdapter(GridKernalContext ctx) |
| Modifier and Type | Method and Description |
|---|---|
void |
addSpiAttributes(Map<String,Object> attrs)
Adds attributes from underlying SPI to map of all attributes.
|
Object |
collectDiscoveryData(UUID nodeId)
Gets discovery data object that will be sent to new node
during discovery process.
|
boolean |
enabled() |
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.
|
public GridNoopManagerAdapter(GridKernalContext ctx)
ctx - Kernal context.public void addSpiAttributes(Map<String,Object> attrs) throws GridException
addSpiAttributes in interface GridManagerattrs - Map of all attributes gotten from SPI's so far.GridException - Wrapper for exception thrown by underlying SPI.public boolean enabled()
enabled in interface GridManagertrue if at least one SPI does not have a NO-OP
implementation, false otherwise.public void start()
throws GridException
start in interface GridComponentGridException - Throws in case of any errors.public void stop(boolean cancel)
throws GridException
stop in interface GridComponentcancel - If true, then all ongoing tasks or jobs for relevant
components need to be cancelled.GridException - Thrown in case of any errors.public void onKernalStart()
throws GridException
onKernalStart in interface GridComponentGridException - Thrown in case of any errors.public void onKernalStop(boolean cancel)
onKernalStop in interface GridComponentcancel - Flag indicating whether jobs should be canceled.@Nullable public Object collectDiscoveryData(UUID nodeId)
collectDiscoveryData in interface GridComponentnodeId - ID of new node that joins topology.null if there is nothing
to send for this component.public void onDiscoveryDataReceived(Object data)
onDiscoveryDataReceived in interface GridComponentdata - Discovery data object or null if nothing was
sent for this component.public void printMemoryStats()
printMemoryStats in interface GridComponent@Nullable public GridNodeValidationResult validateNode(GridNode node)
validateNode in interface GridComponentnode - Joining node.null in case of success.Copyright © 2014. All rights reserved.