compbio.ws.server
Class WSUtil

java.lang.Object
  extended by compbio.ws.server.WSUtil

public final class WSUtil
extends Object


Constructor Summary
WSUtil()
           
 
Method Summary
static
<T> String
align(List<FastaSequence> sequences, ConfiguredExecutable<T> confExec, org.apache.log4j.Logger logger, String callingMethod, Limit<T> limit)
           
static
<T> String
analize(List<FastaSequence> sequences, ConfiguredExecutable<T> confExec, org.apache.log4j.Logger log, String method, Limit<T> limit)
           
static boolean cancelJob(String jobId)
           
static
<T> ScoreManager
getAnnotation(String jobId, org.apache.log4j.Logger log)
           
static
<T> List<String>
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)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WSUtil

public WSUtil()
Method Detail

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