Interface ProcessorSupplier.Context

    • Method Detail

      • 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].

      • attachedDirectory

        @Nonnull
        java.io.File attachedDirectory​(@Nonnull
                                       java.lang.String id)
        Uses the supplied ID to look up a directory you attached to the current Jet job. Creates a temporary directory with the same contents on the local cluster member and returns the location of the created directory. If the directory was already created, just returns its location.
        Parameters:
        id - the ID you used in a previous JobConfig.attachDirectory(java.net.URL) call
        Since:
        Jet 4.0
      • recreateAttachedDirectory

        @Nonnull
        java.io.File recreateAttachedDirectory​(@Nonnull
                                               java.lang.String id)
        Behaves like attachedDirectory(java.lang.String), but if the directory already exists, it deletes and recreates all its contents.
        Since:
        Jet 4.3
      • attachedFile

        @Nonnull
        java.io.File attachedFile​(@Nonnull
                                  java.lang.String id)
        Uses the supplied ID to look up a file you attached to the current Jet job. Creates a temporary file with the same contents on the local cluster member and returns the location of the created file. If the file was already created, just returns its location.
        Parameters:
        id - the ID you used in a previous JobConfig.attachFile(java.net.URL) call
        Since:
        Jet 4.0
      • recreateAttachedFile

        @Nonnull
        java.io.File recreateAttachedFile​(@Nonnull
                                          java.lang.String id)
        Behaves like attachedFile(java.lang.String), but if the file already exists, it deletes and recreates it.
        Since:
        Jet 4.3