public class GridContinuousProcessor extends GridProcessorAdapter
GridComponent.DiscoveryDataExchangeTypectx, log| Constructor and Description |
|---|
GridContinuousProcessor(GridKernalContext ctx) |
| Modifier and Type | Method and Description |
|---|---|
void |
addNotification(UUID nodeId,
UUID routineId,
Object obj,
Object orderedTopic,
boolean sync,
boolean msg) |
Object |
collectDiscoveryData(UUID nodeId)
Gets discovery data object that will be sent to new node
during discovery process.
|
GridComponent.DiscoveryDataExchangeType |
discoveryDataType()
Gets unique component type to distinguish components providing discovery data.
|
void |
onCacheStart(GridCacheContext ctx)
Callback invoked when cache is started.
|
void |
onCacheStop(GridCacheContext ctx) |
void |
onDiscoveryDataReceived(UUID nodeId,
UUID rmtNodeId,
Object obj)
Receives discovery data object from remote nodes (called
on new node during discovery process).
|
void |
start()
Starts grid component.
|
IgniteInternalFuture<UUID> |
startRoutine(GridContinuousHandler hnd,
int bufSize,
long interval,
boolean autoUnsubscribe,
IgnitePredicate<ClusterNode> prjPred) |
void |
stop(boolean cancel)
Stops grid component.
|
IgniteInternalFuture<?> |
stopRoutine(UUID routineId) |
assertParameter, onKernalStart, onKernalStop, printMemoryStats, toString, validateNodepublic GridContinuousProcessor(GridKernalContext ctx)
ctx - Kernal context.public void start()
throws IgniteCheckedException
start in interface GridComponentstart in class GridProcessorAdapterIgniteCheckedException - Throws in case of any errors.public void stop(boolean cancel)
throws IgniteCheckedException
stop in interface GridComponentstop in class GridProcessorAdaptercancel - If true, then all ongoing tasks or jobs for relevant
components need to be cancelled.IgniteCheckedException - Thrown in case of any errors.@Nullable public GridComponent.DiscoveryDataExchangeType discoveryDataType()
GridComponent.collectDiscoveryData(UUID).discoveryDataType in interface GridComponentdiscoveryDataType in class GridProcessorAdapter@Nullable public Object collectDiscoveryData(UUID nodeId)
collectDiscoveryData in interface GridComponentcollectDiscoveryData in class GridProcessorAdapternodeId - ID of new node that joins topology.null if there is nothing
to send for this component.public void onDiscoveryDataReceived(UUID nodeId, UUID rmtNodeId, Object obj)
onDiscoveryDataReceived in interface GridComponentonDiscoveryDataReceived in class GridProcessorAdapternodeId - Joining node ID.rmtNodeId - Remote node ID for which data is provided.obj - Discovery data object or null if nothing waspublic void onCacheStart(GridCacheContext ctx) throws IgniteCheckedException
ctx - Cache context.IgniteCheckedExceptionpublic void onCacheStop(GridCacheContext ctx)
ctx - Callback invoked when cache is stopped.public IgniteInternalFuture<UUID> startRoutine(GridContinuousHandler hnd, int bufSize, long interval, boolean autoUnsubscribe, @Nullable IgnitePredicate<ClusterNode> prjPred)
hnd - Handler.bufSize - Buffer size.interval - Time interval.autoUnsubscribe - Automatic unsubscribe flag.prjPred - Projection predicate.public IgniteInternalFuture<?> stopRoutine(UUID routineId)
routineId - Consume ID.public void addNotification(UUID nodeId, UUID routineId, @Nullable Object obj, @Nullable Object orderedTopic, boolean sync, boolean msg) throws IgniteCheckedException
nodeId - ID of the node that started routine.routineId - Routine ID.obj - Notification object.orderedTopic - Topic for ordered notifications. If null, non-ordered message will be sent.sync - If true then waits for event acknowledgment.IgniteCheckedException - In case of error.
Follow @ApacheIgnite
Ignite Fabric : ver. 1.0.0 Release Date : March 31 2015