Documentation of 'edu.rit.pj.cluster.FrontendFileReader' Java class
FrontendFileReader
edu.rit.pj.cluster

Class FrontendFileReader



  • public class FrontendFileReader
    extends java.lang.Object
    Class FrontendFileReader provides an object that reads sequential files in the job frontend process.
    • Constructor Detail

      • FrontendFileReader

        public FrontendFileReader(JobFrontend theJobFrontend)
        Construct a new frontend file reader.
        Parameters:
        theJobFrontend - Job Frontend.
    • Method Detail

      • inputFileOpen

        public void inputFileOpen(JobBackendRef theJobBackend,
                                  int bfd,
                                  java.io.File file)
                           throws java.io.IOException
        Open the given input file for reading.
        Parameters:
        theJobBackend - Job Backend that is calling this method.
        bfd - Backend file descriptor.
        file - File.
        Throws:
        java.io.IOException - Thrown if an I/O error occurred.
      • inputFileRead

        public void inputFileRead(JobBackendRef theJobBackend,
                                  int ffd,
                                  int len)
                           throws java.io.IOException
        Read bytes from the given input file. ffd = 1 refers to the job's standard input stream; other values refer to a previously opened file.
        Parameters:
        theJobBackend - Job Backend that is calling this method.
        ffd - Frontend file descriptor.
        len - Number of bytes to read.
        Throws:
        java.io.IOException - Thrown if an I/O error occurred.
      • inputFileSkip

        public void inputFileSkip(JobBackendRef theJobBackend,
                                  int ffd,
                                  long len)
                           throws java.io.IOException
        Skip bytes from the given input file.
        Parameters:
        theJobBackend - Job Backend that is calling this method.
        ffd - Frontend file descriptor.
        len - Number of bytes to skip.
        Throws:
        java.io.IOException - Thrown if an I/O error occurred.
      • inputFileClose

        public void inputFileClose(JobBackendRef theJobBackend,
                                   int ffd)
                            throws java.io.IOException
        Close the given input file.
        Parameters:
        theJobBackend - Job Backend that is calling this method.
        ffd - Frontend file descriptor.
        Throws:
        java.io.IOException - Thrown if an I/O error occurred.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.