public class IgfsProcessor extends IgfsProcessorAdapter
GridComponent.DiscoveryDataExchangeTypectx, diagnosticLog, log| Constructor and Description |
|---|
IgfsProcessor(GridKernalContext ctx) |
| Modifier and Type | Method and Description |
|---|---|
@Nullable ComputeJob |
createJob(IgfsJob job,
@Nullable String igfsName,
IgfsPath path,
long start,
long len,
IgfsRecordResolver recRslv)
Create compute job for the given IGFS job.
|
@Nullable Collection<IpcServerEndpoint> |
endpoints(String name)
Gets server endpoints for particular IGFS.
|
@Nullable IgniteFileSystem |
igfs(String name)
Gets IGFS instance.
|
Collection<IgniteFileSystem> |
igfss()
Gets all IGFS instances.
|
void |
onActivate(GridKernalContext kctx)
Called when cluster performing activation.
|
void |
onDeActivate(GridKernalContext kctx)
Called when cluster performing deactivation.
|
void |
onKernalStart(boolean active)
Callback that notifies that kernal has successfully started,
including all managers and processors.
|
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()
Starts grid component.
|
void |
stop(boolean cancel)
Stops grid component.
|
assertParameter, collectGridNodeData, collectJoiningNodeData, discoveryDataType, onDisconnected, onGridDataReceived, onJoiningNodeDataReceived, onReconnected, toString, validateNode, validateNodepublic IgfsProcessor(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 onKernalStart(boolean active)
throws IgniteCheckedException
onKernalStart in interface GridComponentonKernalStart in class GridProcessorAdapteractive - Cluster active flag (note: should be used carefully since state can
change concurrently).IgniteCheckedException - Thrown in case of any errors.public void onActivate(GridKernalContext kctx) throws IgniteCheckedException
kctx - Kernal context.IgniteCheckedException - If failed.public void onDeActivate(GridKernalContext kctx)
kctx - Kernal context.public void stop(boolean cancel)
stop in interface GridComponentstop in class GridProcessorAdaptercancel - If true, then all ongoing tasks or jobs for relevant
components need to be cancelled.public void onKernalStop(boolean cancel)
onKernalStop in interface GridComponentonKernalStop in class GridProcessorAdaptercancel - Flag indicating whether jobs should be canceled.public void printMemoryStats()
printMemoryStats in interface GridComponentprintMemoryStats in class GridProcessorAdapterpublic Collection<IgniteFileSystem> igfss()
igfss in class IgfsProcessorAdapter@Nullable public @Nullable IgniteFileSystem igfs(String name)
igfs in class IgfsProcessorAdaptername - (Nullable) IGFS name.@Nullable public @Nullable Collection<IpcServerEndpoint> endpoints(String name)
endpoints in class IgfsProcessorAdaptername - IGFS name.null in case IGFS is not defined.@Nullable public @Nullable ComputeJob createJob(IgfsJob job, @Nullable @Nullable String igfsName, IgfsPath path, long start, long len, IgfsRecordResolver recRslv)
createJob in class IgfsProcessorAdapterjob - IGFS job.igfsName - IGFS name.path - Path.start - Start position.len - Length.recRslv - Record resolver.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.8.0 Release Date : February 27 2020