com.hazelcast.jet.core

## Interface ProcessorSupplier.Context

- All Superinterfaces:
    ProcessorMetaSupplier.Context
  All Known Subinterfaces:
    Processor.Context
  All Known Implementing Classes:
    TestProcessorContext, TestProcessorSupplierContext
  Enclosing interface:
    ProcessorSupplier

      public static interface ProcessorSupplier.Context
      extends ProcessorMetaSupplier.Context

  Context passed to the supplier in the `init()` call.
  Since:
    3.0

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `ILogger` | `logger()` Returns a logger for the associated `ProcessorSupplier`.
    `int` | `memberIndex()` Returns the index of the member among all the members that run this job: it's a unique cluster-wide index.

    - ### Methods inherited from interface com.hazelcast.jet.core.ProcessorMetaSupplier.Context

      `executionId, jetInstance, jobConfig, jobId, localParallelism, memberCount, processingGuarantee, snapshottingEnabled, totalParallelism, vertexName`

- - ### Method Detail

    - #### logger

          @Nonnull
          ILogger logger()

      Returns a logger for the associated `ProcessorSupplier`.
      Specified by:
        `logger` in interface `ProcessorMetaSupplier.Context`

    - #### memberIndex

          int memberIndex()

      Returns the index of the member among all the members that run this job: it's a unique cluster-wide index.

      The value is in the range `[0...memberCount-1]`.

Copyright © 2019. All rights reserved.