public class BrokerUtils
extends java.lang.Object
| Constructor and Description |
|---|
BrokerUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addParentDetailsToSubWorkflow(org.shiwa.desktop.data.description.core.WorkflowImplementation impl,
java.util.UUID runUUID,
java.util.UUID parentID,
java.lang.String jobID,
java.lang.String jobInstID)
Adds the parent details to sub workflow.
|
static java.lang.String |
getJSONReply(java.lang.String url,
java.lang.String uuid,
java.lang.String execBundleName)
Gets the jSON reply.
|
static java.io.File |
getResultBundle(java.lang.String url,
java.lang.String key)
Gets the result bundle.
|
static Scheduler |
getSchedulerForTaskGraph(TaskGraph taskGraph)
Gets the scheduler for task graph.
|
static java.lang.String |
getTimeStamp()
Gets the time stamp.
|
static java.lang.String |
postBundle(java.lang.String hostAddress,
java.lang.String routingKey,
java.lang.String execBundleName,
java.io.File tempBundleFile)
Post bundle.
|
static void |
prepareSubworkflow(Task task,
java.util.UUID runUUID,
org.shiwa.desktop.data.description.core.WorkflowImplementation workflowImplementation)
Prepare subworkflow.
|
static java.lang.String |
waitForExec(java.lang.String url,
int i,
java.lang.String uuid,
java.lang.String execBundleName)
Wait for exec.
|
public static java.lang.String getTimeStamp()
public static java.io.File getResultBundle(java.lang.String url,
java.lang.String key)
url - the urlkey - the keypublic static java.lang.String waitForExec(java.lang.String url,
int i,
java.lang.String uuid,
java.lang.String execBundleName)
url - the urli - the iuuid - the uuidexecBundleName - the exec bundle namepublic static java.lang.String getJSONReply(java.lang.String url,
java.lang.String uuid,
java.lang.String execBundleName)
url - the urluuid - the uuidexecBundleName - the exec bundle namepublic static java.lang.String postBundle(java.lang.String hostAddress,
java.lang.String routingKey,
java.lang.String execBundleName,
java.io.File tempBundleFile)
hostAddress - the host addressroutingKey - the routing keyexecBundleName - the exec bundle nametempBundleFile - the temp bundle filepublic static void addParentDetailsToSubWorkflow(org.shiwa.desktop.data.description.core.WorkflowImplementation impl,
java.util.UUID runUUID,
java.util.UUID parentID,
java.lang.String jobID,
java.lang.String jobInstID)
impl - the implrunUUID - the run uuidparentID - the parent idjobID - the job idjobInstID - the job inst idpublic static Scheduler getSchedulerForTaskGraph(TaskGraph taskGraph)
taskGraph - the task graphpublic static void prepareSubworkflow(Task task, java.util.UUID runUUID, org.shiwa.desktop.data.description.core.WorkflowImplementation workflowImplementation)
task - the taskrunUUID - the run uuidworkflowImplementation - the workflow implementation