nl.utwente.ewi.hmi.taverna.scuflworkers.rshell
Class RshellConnectionManager

java.lang.Object
  extended by org.embl.ebi.escience.scufl.enactor.WorkflowEventAdapter
      extended by nl.utwente.ewi.hmi.taverna.scuflworkers.rshell.RshellConnectionManager
All Implemented Interfaces:
WorkflowEventListener

public class RshellConnectionManager
extends WorkflowEventAdapter

Class for managing connections with RServe Now, it is possible to persist a connection and to keep the session

Author:
Ingo Wassink

Field Summary
static RshellConnectionManager INSTANCE
           
 
Method Summary
 RshellConnection createConnection(RshellConnectionSettings settings)
          Methos for creating a new r shell connection
 void releaseConnection(RshellConnection connection)
          Method for releasing the connection
 void releaseConnections()
          Method for removing all connections
 void workflowCompleted(WorkflowCompletionEvent e)
          Method which is called when a workflow is completed
 void workflowCreated(WorkflowCreationEvent e)
          Called when a workflow instance has been submitted along with associated input data to an enactor instance.
 
Methods inherited from class org.embl.ebi.escience.scufl.enactor.WorkflowEventAdapter
collectionConstructed, dataChanged, nestedWorkflowCompleted, nestedWorkflowCreated, nestedWorkflowFailed, processCompleted, processCompletedWithIteration, processFailed, workflowDestroyed, workflowFailed, workflowToBeDestroyed
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final RshellConnectionManager INSTANCE
Method Detail

workflowCreated

public void workflowCreated(WorkflowCreationEvent e)
Description copied from class: WorkflowEventAdapter
Called when a workflow instance has been submitted along with associated input data to an enactor instance. Methods on the WorkflowCreationEvent allow access to the underlying workflow instance, the user context and the enactor.

Specified by:
workflowCreated in interface WorkflowEventListener
Overrides:
workflowCreated in class WorkflowEventAdapter

workflowCompleted

public void workflowCompleted(WorkflowCompletionEvent e)
Method which is called when a workflow is completed

Specified by:
workflowCompleted in interface WorkflowEventListener
Overrides:
workflowCompleted in class WorkflowEventAdapter

createConnection

public RshellConnection createConnection(RshellConnectionSettings settings)
                                  throws org.rosuda.JRclient.RSrvException
Methos for creating a new r shell connection

Parameters:
settings - the connection settings
Returns:
the connection
Throws:
org.rosuda.JRclient.RSrvException

releaseConnection

public void releaseConnection(RshellConnection connection)
Method for releasing the connection

Parameters:
connection - the connection to be released

releaseConnections

public void releaseConnections()
Method for removing all connections