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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
protected PdbPairsMessage
talk to centralized server and fetch all alignments to run.protected static String
boolean
void
run()
protected void
sendResultsToServer
(List<String> results) void
setWaitForAlignments
(boolean waitForAlignments) void
Send signal to terminate calculations
-
Field Details
-
cache
-
-
Constructor Details
-
FarmJobRunnable
-
-
Method Details
-
addAlignmentProgressListener
-
clearListeners
public void clearListeners() -
getRandomUsername
-
run
public void run() -
alignPair
- Throws:
StructureException
IOException
-
alignPair
public String alignPair(String name1, String name2, String algorithmName) throws StructureException, IOException - Throws:
StructureException
IOException
-
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)
-