|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.v3x.apps.Staker.server.SocketJobLibrarian
public class SocketJobLibrarian
A front end to the JobLibrary. Handles locking, merging, checkout, etc. Library clients should use this class to access the library; administrators can use the library directly. Also encapsulates any network transfers necessary.
| Constructor Summary | |
|---|---|
SocketJobLibrarian(java.lang.String portedServerAddress)
|
|
SocketJobLibrarian(java.lang.String portedServerAddress,
boolean loadUnitLookups)
|
|
SocketJobLibrarian(java.lang.String serverAddress,
int serverPort)
|
|
SocketJobLibrarian(java.lang.String serverAddress,
int serverPort,
boolean loadUnitLookups)
|
|
| Method Summary | |
|---|---|
void |
addJob(Job newJob)
Add a new job to the library. |
void |
addJobLibraryListener(JobLibraryListener nosey)
|
java.util.Iterator |
allHeaders()
Get a list of all the job headers in the library. |
java.util.Iterator |
allJobNumbers()
Get a list of all the job numbers. |
java.util.ArrayList |
allJobNumbersList()
Get a list of all the job numbers. |
java.util.Iterator |
allJobsAssignedTo(java.lang.String stakerName)
Get a list of all the job numbers assigned to the given staker |
void |
checkinHeader(CheckedOutJobHeader header)
Check in a job header; merges it with any other versions in the library. |
void |
checkinJob(CheckedOutJob job)
Check in job with modifications. |
CheckedOutJobHeader |
checkoutHeader(java.lang.String jobNumber)
Check out a job header for modifications. |
CheckedOutJob |
checkoutJob(java.lang.String jobNumber)
Check out a job for modifications. |
void |
close()
Close down for the day. |
void |
createJob(java.lang.String newJobName)
Create a new job in the library. |
void |
fireJobChanged(java.lang.String jobNumber)
Fire a job change event for the named job. |
void |
forceReleaseJob(java.lang.String jobNumber)
Release job; this will eject the checkout for that job - use with caution. |
boolean |
jobExists(java.lang.String jobNumber)
Check if a job exists in the library. |
java.lang.String |
jobStatus(java.lang.String jobNumber)
Get status of job. |
java.lang.Object |
processCustomRequest(CustomLibraryRequest request)
Process a special request. |
void |
releaseHeader(CheckedOutJobHeader header)
Release a job header from checkout; doesn't modify. |
void |
releaseJob(CheckedOutJob job)
Release job - checks in without modifications. |
void |
removeJobLibraryListener(JobLibraryListener nosey)
|
void |
verifyCompatibility()
Verify compatibility with Hub. |
JobHeader |
viewHeader(java.lang.String jobNumber)
See the job header corresponding to the job number. |
Job |
viewJob(java.lang.String jobNumber)
See the job corresponding to the job number. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SocketJobLibrarian(java.lang.String portedServerAddress,
boolean loadUnitLookups)
throws JobLibraryException
JobLibraryException
public SocketJobLibrarian(java.lang.String portedServerAddress)
throws JobLibraryException
JobLibraryException
public SocketJobLibrarian(java.lang.String serverAddress,
int serverPort)
throws JobLibraryException
JobLibraryException
public SocketJobLibrarian(java.lang.String serverAddress,
int serverPort,
boolean loadUnitLookups)
throws JobLibraryException
JobLibraryException| Method Detail |
|---|
public java.util.Iterator allHeaders()
throws JobLibraryException
allHeaders in interface JobLibrarianJobLibraryException
public java.util.Iterator allJobNumbers()
throws JobLibraryException
allJobNumbers in interface JobLibrarianJobLibraryException
public java.util.ArrayList allJobNumbersList()
throws JobLibraryException
allJobNumbersList in interface JobLibrarianJobLibraryException
public java.util.Iterator allJobsAssignedTo(java.lang.String stakerName)
throws JobLibraryException
allJobsAssignedTo in interface JobLibrarianJobLibraryException
public void addJob(Job newJob)
throws JobLibraryException
addJob in interface JobLibrarianJobLibraryException
public void createJob(java.lang.String newJobName)
throws JobLibraryException
createJob in interface JobLibrarianJobLibraryException
public JobHeader viewHeader(java.lang.String jobNumber)
throws JobLibraryException
viewHeader in interface JobLibrarianJobLibraryException
public CheckedOutJobHeader checkoutHeader(java.lang.String jobNumber)
throws JobLibraryException
checkoutHeader in interface JobLibrarianJobLibraryException
public void releaseHeader(CheckedOutJobHeader header)
throws JobLibraryException
releaseHeader in interface JobLibrarianJobLibraryException
public void checkinHeader(CheckedOutJobHeader header)
throws JobLibraryException
checkinHeader in interface JobLibrarianJobLibraryException
public Job viewJob(java.lang.String jobNumber)
throws JobLibraryException
viewJob in interface JobLibrarianJobLibraryException
public CheckedOutJob checkoutJob(java.lang.String jobNumber)
throws JobLibraryException
checkoutJob in interface JobLibrarianJobLibraryException
public void releaseJob(CheckedOutJob job)
throws JobLibraryException
releaseJob in interface JobLibrarianJobLibraryException
public void forceReleaseJob(java.lang.String jobNumber)
throws JobLibraryException
forceReleaseJob in interface JobLibrarianJobLibraryException
public void checkinJob(CheckedOutJob job)
throws JobLibraryException
checkinJob in interface JobLibrarianJobLibraryException
public void verifyCompatibility()
throws JobLibraryException
JobLibraryException
public void fireJobChanged(java.lang.String jobNumber)
throws JobLibraryException
fireJobChanged in interface JobLibrarianJobLibraryException
public java.lang.Object processCustomRequest(CustomLibraryRequest request)
throws JobLibraryException
processCustomRequest in interface JobLibrarianJobLibraryException
public void close()
throws JobLibraryException
JobLibrarian
close in interface JobLibrarianJobLibraryException
public boolean jobExists(java.lang.String jobNumber)
throws JobLibraryException
jobExists in interface JobLibrarianJobLibraryException
public java.lang.String jobStatus(java.lang.String jobNumber)
throws JobLibraryException
jobStatus in interface JobLibrarianJobLibraryExceptionpublic void addJobLibraryListener(JobLibraryListener nosey)
addJobLibraryListener in interface JobLibrarianpublic void removeJobLibraryListener(JobLibraryListener nosey)
removeJobLibraryListener in interface JobLibrarian
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||