|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.rit.pj.cluster.FrontendFileReader
public class FrontendFileReader
Class FrontendFileReader provides an object that reads sequential files in the job frontend process.
| Constructor Summary | |
|---|---|
FrontendFileReader(JobFrontend theJobFrontend)
Construct a new frontend file reader. |
|
| Method Summary | |
|---|---|
void |
inputFileClose(JobBackendRef theJobBackend,
int ffd)
Close the given input file. |
void |
inputFileOpen(JobBackendRef theJobBackend,
int bfd,
File file)
Open the given input file for reading. |
void |
inputFileRead(JobBackendRef theJobBackend,
int ffd,
int len)
Read bytes from the given input file. |
void |
inputFileSkip(JobBackendRef theJobBackend,
int ffd,
long len)
Skip bytes from the given input file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FrontendFileReader(JobFrontend theJobFrontend)
theJobFrontend - Job Frontend.| Method Detail |
|---|
public void inputFileOpen(JobBackendRef theJobBackend,
int bfd,
File file)
throws IOException
theJobBackend - Job Backend that is calling this method.bfd - Backend file descriptor.file - File.
IOException - Thrown if an I/O error occurred.
public void inputFileRead(JobBackendRef theJobBackend,
int ffd,
int len)
throws IOException
theJobBackend - Job Backend that is calling this method.ffd - Frontend file descriptor.len - Number of bytes to read.
IOException - Thrown if an I/O error occurred.
public void inputFileSkip(JobBackendRef theJobBackend,
int ffd,
long len)
throws IOException
theJobBackend - Job Backend that is calling this method.ffd - Frontend file descriptor.len - Number of bytes to skip.
IOException - Thrown if an I/O error occurred.
public void inputFileClose(JobBackendRef theJobBackend,
int ffd)
throws IOException
theJobBackend - Job Backend that is calling this method.ffd - Frontend file descriptor.
IOException - Thrown if an I/O error occurred.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||