public class TaskGraphManager
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_FACTORY_TYPE |
static java.lang.String |
NON_RUNNABLE_FACTORY_TYPE |
static java.lang.String |
TOOL_DEF_FACTORY_TYPE |
Constructor and Description |
---|
TaskGraphManager() |
Modifier and Type | Method and Description |
---|---|
void |
addTaskgraphManagerListener(TaskGraphManagerListener listener)
Adds a TaskgraphManagerListener
|
static Task |
createTask(Tool tool,
java.lang.String factorytype,
boolean preserveinst) |
static TaskGraph |
createTaskGraph()
Creates a empty root taskgraph using the non-runnable factory
|
static TaskGraph |
createTaskGraph(java.lang.String factorytype)
Creates a empty root taskgraph
|
static TaskGraph |
createTaskGraph(TaskGraph taskgraph,
java.lang.String factorytype,
boolean preserveinst)
Creates a root taskgraph based on the specified taskgraph
|
static TaskGraphFactory |
getTaskGraphFactory(java.lang.String type) |
static TaskGraphFactory |
getTaskGraphFactory(Tool tool) |
static java.lang.String |
getTaskGraphFactoryType(Tool tool) |
static ToolTable |
getToolTable() |
static TrianaServer |
getTrianaServer(TaskGraph taskgraph) |
static void |
initTaskGraphManager(TrianaProperties props)
Initializes the taskgraph factories
|
static void |
initToolTable(ToolTable tools)
Initializes the tool table.
|
static boolean |
isTaskGraphFactory(java.lang.String type) |
static void |
registerFactoryType(Tool tool,
java.lang.String type)
Initializes the factory type for the specified tool/taskgraph
|
static void |
registerTaskGraphFactory(java.lang.String type,
TaskGraphFactory factory)
Registers a taskgraph factory for the specifed factory type
|
void |
removeTaskgraphManagerListener(TaskGraphManagerListener listener)
Adds a TaskgraphManagerListener
|
static void |
setTrianaServer(TaskGraph taskgraph,
TrianaServer server)
Sets the TrianaServer for the specified TaskGraph
|
static void |
unregisterTaskGraphFactory(java.lang.String type)
Registers the taskgraph factory for the specifed factory type
|
public static final java.lang.String DEFAULT_FACTORY_TYPE
public static final java.lang.String NON_RUNNABLE_FACTORY_TYPE
public static final java.lang.String TOOL_DEF_FACTORY_TYPE
public static void initTaskGraphManager(TrianaProperties props)
public static void initToolTable(ToolTable tools)
public static ToolTable getToolTable()
public void addTaskgraphManagerListener(TaskGraphManagerListener listener)
public void removeTaskgraphManagerListener(TaskGraphManagerListener listener)
public static void registerTaskGraphFactory(java.lang.String type, TaskGraphFactory factory)
public static void unregisterTaskGraphFactory(java.lang.String type)
public static TaskGraphFactory getTaskGraphFactory(java.lang.String type)
public static boolean isTaskGraphFactory(java.lang.String type)
public static TrianaServer getTrianaServer(TaskGraph taskgraph)
public static void setTrianaServer(TaskGraph taskgraph, TrianaServer server)
public static void registerFactoryType(Tool tool, java.lang.String type)
public static java.lang.String getTaskGraphFactoryType(Tool tool)
public static TaskGraphFactory getTaskGraphFactory(Tool tool)
public static Task createTask(Tool tool, java.lang.String factorytype, boolean preserveinst) throws TaskException
TaskException
public static TaskGraph createTaskGraph() throws TaskException
TaskException
public static TaskGraph createTaskGraph(java.lang.String factorytype) throws TaskException
TaskException
public static TaskGraph createTaskGraph(TaskGraph taskgraph, java.lang.String factorytype, boolean preserveinst) throws TaskException
TaskException