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

Interface JobFrontendRef

    • Method Detail

      • assignBackend

        void assignBackend(JobSchedulerRef theJobScheduler,
                           java.lang.String name,
                           java.lang.String host,
                           java.lang.String jvm,
                           java.lang.String classpath,
                           java.lang.String[] jvmflags,
                           int Nt)
                    throws java.io.IOException
        Assign a backend process to the job.
        Parameters:
        theJobScheduler - Job Scheduler that is calling this method.
        name - Backend node name.
        host - Host name for SSH remote login.
        jvm - Full pathname of Java Virtual Machine.
        classpath - Java class path for PJ Library.
        jvmflags - Array of JVM command line flags.
        Nt - Number of CPUs assigned to the process.
        Throws:
        java.io.IOException - Thrown if an I/O error occurred.
      • assignJobNumber

        void assignJobNumber(JobSchedulerRef theJobScheduler,
                             int jobnum,
                             java.lang.String pjhost)
                      throws java.io.IOException
        Assign a job number to the job. The host name for the job frontend's middleware channel group is also specified.
        Parameters:
        theJobScheduler - Job Scheduler that is calling this method.
        jobnum - Job number.
        pjhost - Host name for middleware channel group.
        Throws:
        java.io.IOException - Thrown if an I/O error occurred.
      • cancelJob

        void cancelJob(JobSchedulerRef theJobScheduler,
                       java.lang.String errmsg)
                throws java.io.IOException
        Cancel the job.
        Parameters:
        theJobScheduler - Job Scheduler that is calling this method.
        errmsg - Error message string.
        Throws:
        java.io.IOException - Thrown if an I/O error occurred.
      • renewLease

        void renewLease(JobSchedulerRef theJobScheduler)
                 throws java.io.IOException
        Renew the lease on the job.
        Parameters:
        theJobScheduler - Job Scheduler that is calling this method.
        Throws:
        java.io.IOException - Thrown if an I/O error occurred.
      • backendFinished

        void backendFinished(JobBackendRef theJobBackend)
                      throws java.io.IOException
        Report that a backend process has finished executing the job.
        Parameters:
        theJobBackend - Job Backend that is calling this method.
        Throws:
        java.io.IOException - Thrown if an I/O error occurred.
      • backendReady

        void backendReady(JobBackendRef theJobBackend,
                          int rank,
                          java.net.InetSocketAddress middlewareAddress,
                          java.net.InetSocketAddress worldAddress,
                          java.net.InetSocketAddress frontendAddress)
                   throws java.io.IOException
        Report that a backend process is ready to commence executing the job.
        Parameters:
        theJobBackend - Job Backend that is calling this method.
        rank - Rank of the job backend process.
        middlewareAddress - Host/port to which the job backend process is listening for middleware messages.
        worldAddress - Host/port to which the job backend process is listening for the world communicator.
        frontendAddress - Host/port to which the job backend process is listening for the frontend communicator, or null if the frontend communicator does not exist.
        Throws:
        java.io.IOException - Thrown if an I/O error occurred.
      • cancelJob

        void cancelJob(JobBackendRef theJobBackend,
                       java.lang.String errmsg)
                throws java.io.IOException
        Cancel the job.
        Parameters:
        theJobBackend - Job Backend that is calling this method.
        errmsg - Error message string.
        Throws:
        java.io.IOException - Thrown if an I/O error occurred.
      • renewLease

        void renewLease(JobBackendRef theJobBackend)
                 throws java.io.IOException
        Renew the lease on the job.
        Parameters:
        theJobBackend - Job Backend that is calling this method.
        Throws:
        java.io.IOException - Thrown if an I/O error occurred.
      • requestResource

        void requestResource(JobBackendRef theJobBackend,
                             java.lang.String resourceName)
                      throws java.io.IOException
        Request the given resource from this job frontend's class loader.
        Parameters:
        theJobBackend - Job Backend that is calling this method.
        resourceName - Resource name.
        Throws:
        java.io.IOException - Thrown if an I/O error occurred.
      • outputFileOpen

        void outputFileOpen(JobBackendRef theJobBackend,
                            int bfd,
                            java.io.File file,
                            boolean append)
                     throws java.io.IOException
        Open the given output file for writing or appending.
        Parameters:
        theJobBackend - Job Backend that is calling this method.
        bfd - Backend file descriptor.
        file - File.
        append - True to append, false to overwrite.
        Throws:
        java.io.IOException - Thrown if an I/O error occurred.
      • outputFileWrite

        void outputFileWrite(JobBackendRef theJobBackend,
                             int ffd,
                             byte[] buf,
                             int off,
                             int len)
                      throws java.io.IOException
        Write the given bytes to the given output file. ffd = 1 refers to the job's standard output stream; ffd = 2 refers to the job's standard error stream; other values refer to a previously opened file.
        Parameters:
        theJobBackend - Job Backend that is calling this method.
        ffd - Frontend file descriptor.
        buf - Array of bytes to write.
        off - Index of first byte to write.
        len - Number of bytes to write.
        Throws:
        java.io.IOException - Thrown if an I/O error occurred.
      • outputFileFlush

        void outputFileFlush(JobBackendRef theJobBackend,
                             int ffd)
                      throws java.io.IOException
        Flush accumulated bytes to the given output 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.
      • outputFileClose

        void outputFileClose(JobBackendRef theJobBackend,
                             int ffd)
                      throws java.io.IOException
        Close the given output 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.
      • inputFileOpen

        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

        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

        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

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

        void close()
        Close communication with this Job Frontend.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.