use of org.apache.ignite.internal.managers.eventstorage.GridEventStorageManager in project ignite by apache.
the class IgfsUtils method sendEvents.
/**
* Sends a series of event.
*
* @param kernalCtx Kernal context.
* @param path The path of the created file.
* @param newPath New path.
* @param type The type of event to send.
*/
public static void sendEvents(GridKernalContext kernalCtx, IgfsPath path, IgfsPath newPath, int type) {
assert kernalCtx != null;
assert path != null;
GridEventStorageManager evts = kernalCtx.event();
ClusterNode locNode = kernalCtx.discovery().localNode();
if (evts.isRecordable(type)) {
if (newPath == null)
evts.record(new IgfsEvent(path, locNode, type));
else
evts.record(new IgfsEvent(path, newPath, locNode, type));
}
}
Aggregations