compbio.ws.server
Class WSUtil
java.lang.Object
compbio.ws.server.WSUtil
public final class WSUtil
- extends Object
Method Summary |
static
|
align(List<FastaSequence> sequences,
ConfiguredExecutable<T> confExec,
org.apache.log4j.Logger logger,
String callingMethod,
Limit<T> limit)
|
static
|
analize(List<FastaSequence> sequences,
ConfiguredExecutable<T> confExec,
org.apache.log4j.Logger log,
String method,
Limit<T> limit)
|
static boolean |
cancelJob(String jobId)
|
static
|
getAnnotation(String jobId,
org.apache.log4j.Logger log)
|
static
|
getCommands(List<Option<T>> options,
String keyValueSeparator)
|
static AsyncExecutor |
getEngine(ConfiguredExecutable<?> confClustal)
|
static JobStatus |
getJobStatus(String jobId)
|
static byte |
getProgress(String jobId)
|
static ChunkHolder |
pullFile(String file,
long position)
|
static void |
validateAAConInput(List<FastaSequence> sequences)
|
static void |
validateFastaInput(List<FastaSequence> sequences)
|
static void |
validateJobId(String jobId)
|
WSUtil
public WSUtil()
validateJobId
public static final void validateJobId(String jobId)
throws InvalidParameterException
- Throws:
InvalidParameterException
validateFastaInput
public static final void validateFastaInput(List<FastaSequence> sequences)
throws JobSubmissionException
- Throws:
JobSubmissionException
getJobStatus
public static JobStatus getJobStatus(String jobId)
pullFile
public static ChunkHolder pullFile(String file,
long position)
getProgress
public static byte getProgress(String jobId)
getEngine
public static AsyncExecutor getEngine(ConfiguredExecutable<?> confClustal)
cancelJob
public static boolean cancelJob(String jobId)
align
public static <T> String align(List<FastaSequence> sequences,
ConfiguredExecutable<T> confExec,
org.apache.log4j.Logger logger,
String callingMethod,
Limit<T> limit)
throws LimitExceededException,
JobSubmissionException
- Throws:
LimitExceededException
JobSubmissionException
analize
public static <T> String analize(List<FastaSequence> sequences,
ConfiguredExecutable<T> confExec,
org.apache.log4j.Logger log,
String method,
Limit<T> limit)
throws JobSubmissionException
- Throws:
JobSubmissionException
getCommands
public static final <T> List<String> getCommands(List<Option<T>> options,
String keyValueSeparator)
validateAAConInput
public static void validateAAConInput(List<FastaSequence> sequences)
throws JobSubmissionException
- Throws:
JobSubmissionException
getAnnotation
public static <T> ScoreManager getAnnotation(String jobId,
org.apache.log4j.Logger log)
throws ResultNotAvailableException
- Throws:
ResultNotAvailableException