com.partnersoft.v3x.apps.Staker.server
Class JobLibraryFileManager
java.lang.Object
com.partnersoft.v3x.apps.Staker.server.JobLibraryFileManager
public class JobLibraryFileManager
- extends java.lang.Object
An object that manages job files and their operations: loading, saving, etc.
for the server. It hides the details of actual job file loading and saving,
and allows clients to simply think in terms of Jobs and JobHeaders.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JobLibraryFileManager
public JobLibraryFileManager(Log log)
JobLibraryFileManager
public JobLibraryFileManager(java.lang.String mainDirName,
Log log)
allJobNumbers
public java.util.ArrayList allJobNumbers()
loadHeader
public JobHeader loadHeader(java.lang.String jobNumber)
throws java.io.IOException
- Throws:
java.io.IOException
loadJob
public Job loadJob(java.lang.String jobNumber)
throws java.io.IOException
- Throws:
java.io.IOException
loadCheckouts
public JobCheckouts loadCheckouts(java.lang.String jobNumber)
throws java.io.IOException
- Throws:
java.io.IOException
saveCheckouts
public void saveCheckouts(JobCheckouts checkouts)
throws java.io.IOException
- Throws:
java.io.IOException
saveJob
public void saveJob(Job job)
throws java.io.IOException
- Throws:
java.io.IOException
closeJob
public void closeJob(java.lang.String jobNumber)
throws java.io.IOException
- Throws:
java.io.IOException
archiveJob
public void archiveJob(Job job)
throws java.io.IOException
- Backs up the job to archive/`jobNumber`-`timestamp`.tof.
- Throws:
java.io.IOException