tassl.application.workflow
Class WorkflowClient

java.lang.Object
  extended by tassl.application.workflow.WorkflowClient

public class WorkflowClient
extends java.lang.Object


Constructor Summary
WorkflowClient(java.lang.String servIp, int servPort, java.util.Properties p)
           
 
Method Summary
 boolean cancelWorkflow(java.lang.String wfid)
           
 java.lang.String checkStatus(java.lang.String wfId)
           
 boolean connect()
           
 void disconnect()
           
 void getResults(java.lang.String wfid, java.lang.String user, java.lang.String path)
          Get list of Result locations and retrieve them
 java.lang.String getSupportedApps()
           
static void main(java.lang.String[] args)
           
 java.lang.String replaceFileValue(java.lang.String line)
          Read file and replace \n with the equivalent in XML -
 java.lang.String submit(java.lang.String workflowString)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorkflowClient

public WorkflowClient(java.lang.String servIp,
                      int servPort,
                      java.util.Properties p)
Method Detail

connect

public boolean connect()

disconnect

public void disconnect()

submit

public java.lang.String submit(java.lang.String workflowString)

replaceFileValue

public java.lang.String replaceFileValue(java.lang.String line)
Read file and replace \n with the equivalent in XML -

Parameters:
line - path to the property file
Returns:
the content of the file in a single string

checkStatus

public java.lang.String checkStatus(java.lang.String wfId)

getResults

public void getResults(java.lang.String wfid,
                       java.lang.String user,
                       java.lang.String path)
Get list of Result locations and retrieve them

Parameters:
wfid -
user -
path -

cancelWorkflow

public boolean cancelWorkflow(java.lang.String wfid)

getSupportedApps

public java.lang.String getSupportedApps()
                                  throws java.io.IOException
Throws:
java.io.IOException

main

public static void main(java.lang.String[] args)