Class DataStreamProcessor<K,V>
- java.lang.Object
-
- org.apache.ignite.internal.processors.GridProcessorAdapter
-
- org.apache.ignite.internal.processors.datastreamer.DataStreamProcessor<K,V>
-
- All Implemented Interfaces:
GridComponent,GridProcessor
public class DataStreamProcessor<K,V> extends GridProcessorAdapter
Data stream processor.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.ignite.internal.GridComponent
GridComponent.DiscoveryDataExchangeType
-
-
Field Summary
-
Fields inherited from class org.apache.ignite.internal.processors.GridProcessorAdapter
ctx, diagnosticLog, log
-
-
Constructor Summary
Constructors Constructor Description DataStreamProcessor(GridKernalContext ctx)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DataStreamerImpl<K,V>dataStreamer(@Nullable String cacheName)static byteioPolicy(@Nullable IgniteClosure<ClusterNode,Byte> rslvr, ClusterNode node)Get IO policy for particular node with provided resolver.voidonDisconnected(IgniteFuture<?> reconnectFut)Client disconnected callback.voidonKernalStop(boolean cancel)Callback to notify that kernal is about to stop.voidprintMemoryStats()Prints memory statistics (sizes of internal structures, etc.).voidstart()Starts grid component.-
Methods inherited from class org.apache.ignite.internal.processors.GridProcessorAdapter
assertParameter, collectGridNodeData, collectJoiningNodeData, discoveryDataType, onGridDataReceived, onJoiningNodeDataReceived, onKernalStart, onReconnected, stop, toString, validateNode, validateNode
-
-
-
-
Constructor Detail
-
DataStreamProcessor
public DataStreamProcessor(GridKernalContext ctx)
- Parameters:
ctx- Kernal context.
-
-
Method Detail
-
start
public void start() throws IgniteCheckedExceptionStarts grid component.- Specified by:
startin interfaceGridComponent- Overrides:
startin classGridProcessorAdapter- Throws:
IgniteCheckedException- Throws in case of any errors.
-
onKernalStop
public void onKernalStop(boolean cancel)
Callback to notify that kernal is about to stop.- Specified by:
onKernalStopin interfaceGridComponent- Overrides:
onKernalStopin classGridProcessorAdapter- Parameters:
cancel- Flag indicating whether jobs should be canceled.
-
onDisconnected
public void onDisconnected(IgniteFuture<?> reconnectFut) throws IgniteCheckedException
Client disconnected callback.- Specified by:
onDisconnectedin interfaceGridComponent- Overrides:
onDisconnectedin classGridProcessorAdapter- Parameters:
reconnectFut- Reconnect future.- Throws:
IgniteCheckedException- If failed.
-
dataStreamer
public DataStreamerImpl<K,V> dataStreamer(@Nullable @Nullable String cacheName)
- Parameters:
cacheName- Cache name (nullfor default cache).- Returns:
- Data loader.
-
ioPolicy
public static byte ioPolicy(@Nullable @Nullable IgniteClosure<ClusterNode,Byte> rslvr, ClusterNode node)Get IO policy for particular node with provided resolver.- Parameters:
rslvr- Resolver.node- Node.- Returns:
- IO policy.
-
printMemoryStats
public void printMemoryStats()
Prints memory statistics (sizes of internal structures, etc.). NOTE: this method is for testing and profiling purposes only.- Specified by:
printMemoryStatsin interfaceGridComponent- Overrides:
printMemoryStatsin classGridProcessorAdapter
-
-