public class GridStreamProcessor extends GridProcessorAdapter
ctx, log| Constructor and Description |
|---|
GridStreamProcessor(GridKernalContext ctx) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAttributes(Map<String,Object> attrs)
Adds attributes from this component to map of all node attributes.
|
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 |
onUndeployed(UUID leftNodeId,
ClassLoader ldr)
Callback for undeployed class loaders.
|
void |
start()
Starts grid component.
|
void |
stop(boolean cancel)
Stops grid component.
|
GridStreamer |
streamer() |
GridStreamer |
streamer(String name) |
Collection<GridStreamer> |
streamers() |
assertParameter, collectDiscoveryData, onDiscoveryDataReceived, printMemoryStats, toString, validateNodepublic GridStreamProcessor(GridKernalContext ctx)
ctx - Kernal context.public void onKernalStart()
throws GridException
onKernalStart in interface GridComponentonKernalStart in class GridProcessorAdapterGridException - Thrown in case of any errors.public void start()
throws GridException
start in interface GridComponentstart in class GridProcessorAdapterGridException - 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.public void stop(boolean cancel)
throws GridException
stop in interface GridComponentstop in class GridProcessorAdaptercancel - If true, then all ongoing tasks or jobs for relevant
components need to be cancelled.GridException - Thrown in case of any errors.public void addAttributes(Map<String,Object> attrs) throws GridException
addAttributes in interface GridProcessoraddAttributes in class GridProcessorAdapterattrs - Map of all attributes.GridException - If failed.public GridStreamer streamer()
public GridStreamer streamer(@Nullable String name)
name - Streamer name.public Collection<GridStreamer> streamers()
public void onUndeployed(UUID leftNodeId, ClassLoader ldr)
leftNodeId - Left node ID.ldr - Class loader.Copyright © 2014. All rights reserved.