public class DataStreamProcessor<K,V> extends GridProcessorAdapter
GridComponent.DiscoveryDataExchangeType
ctx, log
Constructor and Description |
---|
DataStreamProcessor(GridKernalContext ctx) |
Modifier and Type | Method and Description |
---|---|
DataStreamerImpl<K,V> |
dataStreamer(String cacheName) |
static byte |
ioPolicy(IgniteClosure<ClusterNode,Byte> rslvr,
ClusterNode node)
Get IO policy for particular node with provided resolver.
|
void |
onDisconnected(IgniteFuture<?> reconnectFut)
Client disconnected callback.
|
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(boolean activeOnStart)
Starts grid component.
|
assertParameter, collectGridNodeData, collectJoiningNodeData, discoveryDataType, onGridDataReceived, onJoiningNodeDataReceived, onKernalStart, onReconnected, stop, toString, validateNode
public DataStreamProcessor(GridKernalContext ctx)
ctx
- Kernal context.public void start(boolean activeOnStart) throws IgniteCheckedException
start
in interface GridComponent
start
in class GridProcessorAdapter
IgniteCheckedException
- Throws in case of any errors.public void onKernalStop(boolean cancel)
onKernalStop
in interface GridComponent
onKernalStop
in class GridProcessorAdapter
cancel
- Flag indicating whether jobs should be canceled.public void onDisconnected(IgniteFuture<?> reconnectFut) throws IgniteCheckedException
onDisconnected
in interface GridComponent
onDisconnected
in class GridProcessorAdapter
reconnectFut
- Reconnect future.IgniteCheckedException
- If failed.public DataStreamerImpl<K,V> dataStreamer(@Nullable String cacheName)
cacheName
- Cache name (null
for default cache).public static byte ioPolicy(@Nullable IgniteClosure<ClusterNode,Byte> rslvr, ClusterNode node)
rslvr
- Resolver.node
- Node.public void printMemoryStats()
printMemoryStats
in interface GridComponent
printMemoryStats
in class GridProcessorAdapter
Follow @ApacheIgnite
Ignite Fabric : ver. 2.0.0 Release Date : April 30 2017