Class FarmJobRunnable
java.lang.Object
org.biojava.nbio.structure.align.client.FarmJobRunnable
- All Implemented Interfaces:
 Runnable
Contains the single thread for a job that can run multiple alignments.
- Author:
 - Andreas Prlic
 
- 
Field Summary
Fields - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidvoidprotected PdbPairsMessagetalk to centralized server and fetch all alignments to run.protected static Stringbooleanvoidrun()protected voidsendResultsToServer(List<String> results) voidsetWaitForAlignments(boolean waitForAlignments) voidSend signal to terminate calculations 
- 
Field Details
- 
cache
 
 - 
 - 
Constructor Details
- 
FarmJobRunnable
 
 - 
 - 
Method Details
- 
addAlignmentProgressListener
 - 
clearListeners
public void clearListeners() - 
getRandomUsername
 - 
run
public void run() - 
alignPair
- Throws:
 StructureExceptionIOException
 - 
alignPair
public String alignPair(String name1, String name2, String algorithmName) throws StructureException, IOException - Throws:
 StructureExceptionIOException
 - 
getAlignmentPairsFromServer
talk to centralized server and fetch all alignments to run.- Returns:
 - a list of pairs to align.
 
 - 
sendResultsToServer
 - 
terminate
public void terminate()Send signal to terminate calculations - 
isWaitForAlignments
public boolean isWaitForAlignments() - 
setWaitForAlignments
public void setWaitForAlignments(boolean waitForAlignments)  
 -