public class RunConnection extends Object
Constructor and Description |
---|
RunConnection() |
Modifier and Type | Method and Description |
---|---|
RemoteRunDelegate |
fromDBform(RunDBSupport db)
Get the remote run delegate for a particular persistent connection.
|
String |
getId() |
String |
getSecurityToken() |
boolean |
isFinished() |
boolean |
isProvenanceGenerated() |
void |
makeChanges(RemoteRunDelegate rrd)
Flush changes from a remote run delegate to the database.
|
void |
setFinished(boolean finished) |
void |
setProvenanceGenerated(boolean generate) |
static RunConnection |
toDBform(RemoteRunDelegate rrd)
Manufacture a persistent representation of the given workflow run.
|
public String getId()
public boolean isFinished()
public void setFinished(boolean finished)
public boolean isProvenanceGenerated()
public void setProvenanceGenerated(boolean generate)
@Nonnull public static RunConnection toDBform(@Nonnull RemoteRunDelegate rrd) throws IOException
rrd
- The remote delegate of the workflow run.IOException
- If serialisation fails.@Nonnull public RemoteRunDelegate fromDBform(@Nonnull RunDBSupport db) throws Exception
db
- The database facade.Exception
- If anything goes wrong.public void makeChanges(@Nonnull RemoteRunDelegate rrd) throws IOException
rrd
- The remote run delegate object that has potential changes.IOException
- If anything goes wrong in serialization.public String getSecurityToken()
Copyright © 2015–2018 The Apache Software Foundation. All rights reserved.