@IgniteSpiMultipleInstancesSupport(value=true) public class NoopEventStorageSpi extends IgniteSpiAdapter implements EventStorageSpi
EventStorageSpi
.ignite, igniteInstanceName
Constructor and Description |
---|
NoopEventStorageSpi() |
Modifier and Type | Method and Description |
---|---|
<T extends Event> |
localEvents(IgnitePredicate<T> p)
Queries locally-stored events only.
|
void |
record(Event evt)
Records single event.
|
void |
spiStart(@Nullable String gridName)
This method is called to start SPI.
|
void |
spiStop()
This method is called to stop SPI.
|
addTimeoutObject, assertParameter, checkConfigurationConsistency0, clientFailureDetectionTimeout, configInfo, createSpiAttributeName, failureDetectionTimeout, failureDetectionTimeoutEnabled, failureDetectionTimeoutEnabled, getConsistentAttributeNames, getExceptionRegistry, getLocalNode, getName, getNodeAttributes, getSpiContext, ignite, initFailureDetectionTimeout, injectables, injectResources, isNodeStopping, onBeforeStart, onClientDisconnected, onClientReconnected, onContextDestroyed, onContextDestroyed0, onContextInitialized, onContextInitialized0, registerMBean, removeTimeoutObject, setName, started, startInfo, startStopwatch, stopInfo, unregisterMBean
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getName, getNodeAttributes, onClientDisconnected, onClientReconnected, onContextDestroyed, onContextInitialized
public <T extends Event> Collection<T> localEvents(IgnitePredicate<T> p)
localEvents
in interface EventStorageSpi
p
- Event predicate filter.public void record(Event evt) throws IgniteSpiException
record
in interface EventStorageSpi
evt
- Event that should be recorded.IgniteSpiException
- If event recording failed for any reason.public void spiStart(@Nullable @Nullable String gridName) throws IgniteSpiException
spiStart
in interface IgniteSpi
gridName
- Name of Ignite instance this SPI is being started for
(null
for default Ignite instance).IgniteSpiException
- Throws in case of any error during SPI start.public void spiStop() throws IgniteSpiException
Note that this method can be called at any point including during recovery of failed start. It should make no assumptions on what state SPI will be in when this method is called.
spiStop
in interface IgniteSpi
IgniteSpiException
- Thrown in case of any error during SPI stop.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.7.2 Release Date : February 6 2019