org.enhydra.shark.toolagent
Class StandardToolAgentManager

java.lang.Object
  extended by org.enhydra.shark.toolagent.StandardToolAgentManager
All Implemented Interfaces:
ToolAgentManager

public class StandardToolAgentManager
extends java.lang.Object
implements ToolAgentManager

Standard manager for creating and invoking tool agents.

Version:
1.0
Author:
Sasa Bojanic

Field Summary
static java.lang.String APPLICATION_MAPPING_CLASS_NAME_PROPERTY
           
static java.lang.String DEFAULT_TOOL_AGENT
           
 
Constructor Summary
StandardToolAgentManager()
           
 
Method Summary
 void configure(CallbackUtilities cus)
           
 ToolAgent createToolAgent(WMSessionHandle shandle, java.lang.String className)
           
 ApplicationMappingManager getApplicationMapPersistenceManager()
           
 java.util.List getDefinedToolAgents(WMSessionHandle shandle)
          Returns all tool agents specified in shark's properties.
 java.lang.String[][] getToolAgentsInfo(WMSessionHandle shandle)
           
 void invokeToolAgent(WMSessionHandle shandle, WMEntity appInfo, WMEntity toolInfo, AppParameter[] aprs, java.lang.String procId, java.lang.String actId, java.lang.String assId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

APPLICATION_MAPPING_CLASS_NAME_PROPERTY

public static final java.lang.String APPLICATION_MAPPING_CLASS_NAME_PROPERTY
See Also:
Constant Field Values

DEFAULT_TOOL_AGENT

public static final java.lang.String DEFAULT_TOOL_AGENT
See Also:
Constant Field Values
Constructor Detail

StandardToolAgentManager

public StandardToolAgentManager()
Method Detail

configure

public void configure(CallbackUtilities cus)
               throws java.lang.Exception
Specified by:
configure in interface ToolAgentManager
Throws:
java.lang.Exception

getDefinedToolAgents

public java.util.List getDefinedToolAgents(WMSessionHandle shandle)
                                    throws java.lang.Exception
Returns all tool agents specified in shark's properties.

Specified by:
getDefinedToolAgents in interface ToolAgentManager
Throws:
java.lang.Exception

createToolAgent

public ToolAgent createToolAgent(WMSessionHandle shandle,
                                 java.lang.String className)
                          throws java.lang.Exception
Throws:
java.lang.Exception

invokeToolAgent

public void invokeToolAgent(WMSessionHandle shandle,
                            WMEntity appInfo,
                            WMEntity toolInfo,
                            AppParameter[] aprs,
                            java.lang.String procId,
                            java.lang.String actId,
                            java.lang.String assId)
                     throws java.lang.Exception
Specified by:
invokeToolAgent in interface ToolAgentManager
Throws:
java.lang.Exception

getApplicationMapPersistenceManager

public ApplicationMappingManager getApplicationMapPersistenceManager()
Specified by:
getApplicationMapPersistenceManager in interface ToolAgentManager

getToolAgentsInfo

public java.lang.String[][] getToolAgentsInfo(WMSessionHandle shandle)
                                       throws java.lang.Exception
Specified by:
getToolAgentsInfo in interface ToolAgentManager
Throws:
java.lang.Exception