|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
public interface JPPFConnection
Interface for JPPF JCA connections. This interface provides an API to send jobs to a JPPF driver.
| Method Summary | |
|---|---|
void |
addSubmissionStatusListener(String submissionId,
SubmissionStatusListener listener)
Add a listener to the submission with the specified id. |
Collection<String> |
getAllSubmissionIds()
Get the ids of all currently available submissions. |
JPPFManagedConnection |
getManagedConnection()
Get the associated managed connection. |
List<JPPFTask> |
getSubmissionResults(String submissionId)
Get the results of an execution request. |
SubmissionStatus |
getSubmissionStatus(String submissionId)
Get the execution status of a tasks submission. |
boolean |
isClosed()
Determine whether this connection has been closed. |
void |
removeSubmissionStatusListener(String submissionId,
SubmissionStatusListener listener)
Remove a listener from the submission with the specified id. |
void |
setAvailable()
Set the closed state of this connection. |
void |
setManagedConnection(JPPFManagedConnection conn)
Set the associated managed connection. |
String |
submitNonBlocking(JPPFJob job)
Submit an asynchronous execution request to the JPPF client. |
String |
submitNonBlocking(JPPFJob job,
SubmissionStatusListener listener)
Submit an asynchronous execution request to the JPPF client. |
List<JPPFTask> |
waitForResults(String submissionId)
Wait until all results for the specfied job submission have been received. |
| Methods inherited from interface javax.resource.cci.Connection |
|---|
close, createInteraction, getLocalTransaction, getMetaData, getResultSetInfo |
| Methods inherited from interface org.jppf.jca.util.JPPFAccessor |
|---|
getJppfClient, getLogWriter, setJppfClient, setLogWriter |
| Method Detail |
|---|
String submitNonBlocking(JPPFJob job)
throws Exception
job - - the job to execute.
Exception - if an error occurs while submitting the request.
String submitNonBlocking(JPPFJob job,
SubmissionStatusListener listener)
throws Exception
job - the job to execute.listener - an optional listener to receive submission status change notifications, may be null.
Exception - if an error occurs while submitting the request.
List<JPPFTask> waitForResults(String submissionId)
throws Exception
submissionId - the id of the job submission.
JPPFTask instances.
Exception - if any error occurs.
void addSubmissionStatusListener(String submissionId,
SubmissionStatusListener listener)
submissionId - - the id of the submission.listener - - the listener to add.
void removeSubmissionStatusListener(String submissionId,
SubmissionStatusListener listener)
submissionId - the id of the submission.listener - the listener to remove.
SubmissionStatus getSubmissionStatus(String submissionId)
throws Exception
submissionId - the id of the submission for which to get the status.
Exception - if an error occurs while submitting the request.
List<JPPFTask> getSubmissionResults(String submissionId)
throws Exception
getSubmissionStatus(submissionId) has returned
either COMPLETE or
FAILED
submissionId - the id of the submission for which to get the execution results.
Exception - if an error occurs while submitting the request.Collection<String> getAllSubmissionIds()
boolean isClosed()
void setAvailable()
JPPFManagedConnection getManagedConnection()
JPPFManagedConnection instance.void setManagedConnection(JPPFManagedConnection conn)
conn - a JPPFManagedConnection instance.
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||