public abstract class DefaultQuery extends java.lang.Object implements Queryable
Constructor and Description |
---|
DefaultQuery() |
Modifier and Type | Method and Description |
---|---|
protected java.lang.Integer |
_getLastExecutionId(KeplerLSID workflow)
Get the last execution id for a workflow.
|
protected abstract boolean |
_stringTokenValuesHaveSurroundingQuotes()
Returns true if getTokenValue() for StringTokens has
surrounding double-quotes. i.e., the value was saved
using StringToken.toString() (which adds double-quotes)
instead of StringToken.stringValue().
|
void |
close() |
void |
disconnect()
Disconnect from provenance store.
|
java.util.List<java.lang.Integer> |
getActorFiringForToken(int tokenId,
boolean read)
Get the firing id(s) of the actor(s) that read or wrote a token.
|
java.util.List<java.lang.Integer> |
getActorFiringIds(java.lang.String actorName,
java.lang.Integer wfExecId)
Get actor fire ids based on its full name and workflow exec ID.
|
java.util.List<java.lang.Integer> |
getActorFirings(int wfExecId)
Get all actor fire ids for a workflow exec ID.
|
java.lang.String |
getActorName(int fireId)
Get an actor's name for a firing id.
|
java.lang.String |
getActorType(int fireId)
Get an actor's type for a firing id.
|
java.util.List<byte[]> |
getAssociatedDataForExecution(int execId,
java.util.Map<java.lang.String,java.lang.String> metadataMap,
boolean matchAny)
Get a file associated with an execution.
|
java.util.Map<java.lang.String,java.lang.String> |
getAssociatedKeysValuesForExecution(int execId)
Get any associated keys-values for an execution.
|
java.lang.Integer |
getChannelForToken(int tokenId,
boolean read,
java.lang.Integer fireId)
Get the channel that a token was read or written on.
|
java.lang.Integer |
getEntityId(java.lang.String entityName,
KeplerLSID lsid)
Get the id of entity.
|
java.lang.Integer |
getEntityId(java.lang.String entityName,
java.lang.String workflowName)
Get the id of entity.
|
java.lang.String |
getEntityType(java.lang.Integer entityId)
Get the type of entity.
|
java.lang.Integer |
getEntityWorkflowId(java.lang.Integer entityId)
Get the workflow id of entity.
|
java.lang.String |
getErrorForExecution(KeplerLSID lsid)
Get the error for an execution.
|
java.lang.Integer |
getExecutionForExecutionLSID(KeplerLSID runLSID)
Get the execution for a specific run LSID.
|
java.lang.Integer |
getExecutionForExecutionLSIDWithoutRevision(java.lang.String execLSIDWithoutRevision)
Get execution id for an execution LSID without revision.
|
java.lang.Integer |
getExecutionForOldestReferralExecutionLSIDWithoutRevision(java.lang.String stringWithoutRevision)
Get execution id for execution that has the given LSID as its
oldest referral.
|
java.util.List<java.lang.Integer> |
getExecutionIdsForTags(java.lang.String tagsSearchString)
Get execution ids for %tagsSearchString% (case insensitive)
|
KeplerLSID |
getExecutionLSIDForExecution(java.lang.Integer execId)
Get the execution LSID for a specific execution id.
|
java.util.List<KeplerLSID> |
getExecutionLSIDs()
Get a list of all execution LSIDs.
|
java.util.List<KeplerLSID> |
getExecutionLSIDsForWorkflowRuns(java.lang.String workflowName,
java.lang.String userName,
java.util.Date after,
java.util.Date before,
int execIdAfter,
int execIdBefore) |
java.util.List<java.lang.Integer> |
getExecutions()
Get a list of all executions.
|
java.util.List<java.lang.Integer> |
getExecutionsForAnnotation(java.lang.String annotation)
Get a list of executions for a specific execution annotation.
|
java.util.List<java.lang.Integer> |
getExecutionsForTimespan(java.util.Date start,
java.util.Date end)
Get executions within a timespan.
|
java.util.List<KeplerLSID> |
getExecutionsForType(WorkflowRun.type type)
Get a list of executions corresponding to a specific type.
|
java.util.List<java.lang.Integer> |
getExecutionsForWorkflow(java.lang.String workflow)
Get a list of executions for a specific workflow.
|
java.util.List<java.lang.Integer> |
getExecutionsForWorkflowRuns(java.lang.String workflowName,
java.lang.String userName)
Get executions that have %workflowName% and %userName%.
|
java.util.List<java.lang.Integer> |
getExecutionsForWorkflowRuns(java.lang.String workflowName,
java.lang.String userName,
java.util.Date after,
java.util.Date before,
int execIdAfter,
int execIdBefore)
Get executions that have %workflowName% and %userName%. and
startTime >= after and startTime <= before.
|
java.util.List<java.lang.Integer> |
getExecutionsForWorkflowRunsAfter(java.lang.String workflowName,
java.lang.String userName,
java.util.Date after)
Get executions that have %workflowName% and %userName%. and
startTime > after.
|
java.util.List<java.lang.Integer> |
getExecutionsForWorkflowRunsBefore(java.lang.String workflowName,
java.lang.String userName,
java.util.Date before)
Get exections that have %workflowName% and %userName%, and
startTime < before.
|
java.util.Map<java.lang.String,java.lang.Long> |
getExecutionTimesForActor(KeplerLSID workflow,
KeplerLSID execLSID,
java.lang.String actor)
Get the execution times for an actor.
|
java.lang.String |
getHostIdForExecution(java.lang.Integer execId)
Get the host id for a specific execution id.
|
java.util.List<java.lang.Integer> |
getImmediateDependencies(int tokenId)
Get the token(s) that generated a token.
|
java.lang.String |
getInputRoleForTokenAndFireId(int tokenId,
int fireId)
Get the input role (port name) of a token.
|
java.util.Map<java.lang.Integer,java.lang.Integer> |
getIOBytesForPort(KeplerLSID workflow,
java.lang.Integer execId,
java.lang.String port,
boolean read)
Get the number of bytes read or written by a port.
|
java.lang.Integer |
getLastExecutionForWorkflow(KeplerLSID lsid)
Get the last execution for a workflow.
|
java.lang.Integer |
getLastExecutionForWorkflow(java.lang.String workflow)
Get the last execution for a workflow.
|
KeplerLSID |
getLastExecutionLSIDForWorkflow(KeplerLSID lsid)
Get the last execution LSID for a workflow.
|
KeplerLSID |
getLastExecutionLSIDForWorkflow(java.lang.String workflow)
Get the last execution LSID for a workflow.
|
java.lang.String |
getMoMLForExecution(int execId)
Get workflow MoML for an execution.
|
java.lang.String |
getMoMLForExecution(KeplerLSID lsid)
Get workflow MoML for an execution LSID
|
java.util.List<java.lang.String> |
getMoMLForExecutionLSIDs(java.util.List<KeplerLSID> lsids)
Get workflow MoMLs for a list of execution lsids.
|
java.lang.String |
getOutputRoleToken(int tokenId)
Get the output role (port name) of a token.
|
java.util.Map<java.lang.String,java.lang.String> |
getParameterAndPortParameterNameValuesForFiring(int fireId)
Get an actor's parameter and port parameter name value pairs for a firing id.
|
java.util.Map<java.lang.String,java.lang.String> |
getParameterNameValuesForExecution(int execId)
Get the parameter name value pairs for an execution.
|
java.util.Map<java.lang.String,java.lang.String> |
getParameterNameValuesForFiring(int fireId)
Get an actor's parameter name value pairs for a firing id.
|
java.util.Map<java.lang.String,java.lang.String> |
getParameterNameValuesOfSpecificTypeForExecution(int execId)
Get the parameter name value pairs for an execution, whose parameter type is
either '.Parameter' or '.StringParameter'
|
java.lang.String |
getParameterValueAtTime(java.util.Date timestamp,
java.lang.String parameter,
KeplerLSID lsid)
Get the value of a parameter at a specific time.
|
java.lang.String |
getParameterValueLatest(java.lang.String parameter,
KeplerLSID lsid)
Get the latest value of a parameter.
|
java.util.List<java.lang.String> |
getPortsForActor(KeplerLSID workflow,
java.lang.String actor)
Get the ports for an actor.
|
java.util.Map<NamedOntClass,java.lang.String> |
getTagClassesForExecutionId(int execId)
Get a map of tags and their types (context, or tagee, currently "run"
or "workflow") for an executionLSID
|
java.util.List<java.lang.String> |
getTagsForExecutionId(int execId)
Get tags for an execution LSID
|
java.util.Date |
getTimestampForTokenWrite(java.lang.Integer tokenId)
Get the timestamp when a token was written.
|
java.util.Date[] |
getTimestampsForActorFiring(int fireId)
Get the start and end timestamps of an actor firing.
|
java.util.Date[] |
getTimestampsForExecution(int execId)
Get the start and end timestamps of an execution.
|
java.util.Date[] |
getTimestampsForTokenRead(java.lang.Integer tokenId)
Get the timestamp(s) when a token was read.
|
Token |
getToken(int tokenId)
Get the Token.
|
java.util.List<java.lang.Integer> |
getTokensForExecution(int execId,
boolean last)
Get an sequence of tokens for an execution.
|
java.util.List<java.lang.Integer> |
getTokensForExecution(int execId,
java.lang.Integer portId,
boolean last)
Get an sequence of tokens for an execution.
|
java.util.List<java.lang.Integer> |
getTokensForFiring(int fireId,
boolean read)
Get tokens for a firing.
|
java.lang.String |
getTokenType(int tokenId)
Get the type of a token.
|
java.lang.String |
getTokenValue(int tokenId)
Get the value of a token.
|
long |
getTotalExecutionTimeForActor(KeplerLSID workflow,
KeplerLSID execLSID,
java.lang.String actor)
Get the total execution time for an actor.
|
java.lang.Integer |
getTotalIOBytesForActor(KeplerLSID workflow,
java.lang.Integer execId,
java.lang.String actor,
boolean read)
Get the total number of bytes read or or written by an actor over all its ports.
|
java.lang.String |
getTypeForTag(java.lang.String conceptId)
Get the type of a tag, null if none
|
java.lang.String |
getUserForExecution(java.lang.Integer execId)
Get the user for a specific execution id.
|
java.lang.String |
getUserForExecution(KeplerLSID execLSID)
Get the user for a specific execution LSID.
|
NamedObj |
getWorkflowForExecution(java.lang.Integer execId)
Get the workflow object for a execution id.
|
java.lang.String |
getWorkflowName(KeplerLSID lsid)
Get a workflow name.
|
java.lang.String |
getWorkflowNameForExecution(KeplerLSID lsid)
Get a workflow name for an execution LSID.
|
java.util.Map<KeplerLSID,WorkflowRun> |
getWorkflowRunsForExecutionLSIDs(java.util.List<KeplerLSID> executions)
Get "workflow runs" for a list of execution LSIDs.
|
java.util.List<WorkflowRun> |
getWorkflowRunsForUser(java.lang.String user)
Get workflow runs for a user.
|
java.util.List<java.lang.String> |
getWorkflows()
Get a list of workflow names.
|
boolean |
isErrorForExecution(KeplerLSID executionLSID)
Returns true if the execution had an error.
|
boolean |
isImportedExecution(KeplerLSID executionLSID)
See if an execution appears to be imported.
|
public DefaultQuery()
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
java.io.IOException
public void disconnect() throws QueryException
Queryable
disconnect
in interface Queryable
QueryException
public java.util.List<java.lang.String> getWorkflows() throws QueryException
Queryable
getWorkflows
in interface Queryable
QueryException
public java.lang.String getWorkflowName(KeplerLSID lsid) throws QueryException
Queryable
getWorkflowName
in interface Queryable
lsid
- the workflow's LSID.QueryException
public java.lang.String getWorkflowNameForExecution(KeplerLSID lsid) throws QueryException
Queryable
getWorkflowNameForExecution
in interface Queryable
lsid
- the execution LSID.QueryException
public java.util.List<java.lang.Integer> getExecutions() throws QueryException
Queryable
getExecutions
in interface Queryable
QueryException
public java.util.List<KeplerLSID> getExecutionLSIDs() throws QueryException
Queryable
getExecutionLSIDs
in interface Queryable
QueryException
public java.util.List<java.lang.Integer> getExecutionsForWorkflow(java.lang.String workflow) throws QueryException
Queryable
getExecutionsForWorkflow
in interface Queryable
QueryException
public java.lang.Integer getExecutionForExecutionLSID(KeplerLSID runLSID) throws QueryException
Queryable
getExecutionForExecutionLSID
in interface Queryable
QueryException
public KeplerLSID getExecutionLSIDForExecution(java.lang.Integer execId) throws QueryException
Queryable
getExecutionLSIDForExecution
in interface Queryable
QueryException
public java.util.List<java.lang.Integer> getExecutionsForAnnotation(java.lang.String annotation) throws QueryException
Queryable
getExecutionsForAnnotation
in interface Queryable
QueryException
public java.util.Date[] getTimestampsForExecution(int execId) throws QueryException
Queryable
getTimestampsForExecution
in interface Queryable
execId
- the execution idQueryException
public java.lang.String getMoMLForExecution(int execId) throws QueryException
Queryable
getMoMLForExecution
in interface Queryable
QueryException
public java.lang.String getMoMLForExecution(KeplerLSID lsid) throws QueryException
Queryable
getMoMLForExecution
in interface Queryable
QueryException
public java.util.List<java.lang.String> getMoMLForExecutionLSIDs(java.util.List<KeplerLSID> lsids) throws QueryException
Queryable
getMoMLForExecutionLSIDs
in interface Queryable
QueryException
public NamedObj getWorkflowForExecution(java.lang.Integer execId) throws QueryException
getWorkflowForExecution
in interface Queryable
QueryException
public java.util.List<java.lang.Integer> getExecutionsForTimespan(java.util.Date start, java.util.Date end) throws QueryException
Queryable
getExecutionsForTimespan
in interface Queryable
QueryException
public java.util.List<java.lang.Integer> getExecutionsForWorkflowRuns(java.lang.String workflowName, java.lang.String userName) throws QueryException
Queryable
getExecutionsForWorkflowRuns
in interface Queryable
QueryException
public java.util.List<java.lang.Integer> getExecutionsForWorkflowRunsAfter(java.lang.String workflowName, java.lang.String userName, java.util.Date after) throws QueryException
Queryable
getExecutionsForWorkflowRunsAfter
in interface Queryable
QueryException
public java.util.List<java.lang.Integer> getExecutionsForWorkflowRuns(java.lang.String workflowName, java.lang.String userName, java.util.Date after, java.util.Date before, int execIdAfter, int execIdBefore) throws QueryException
Queryable
getExecutionsForWorkflowRuns
in interface Queryable
QueryException
public java.util.List<KeplerLSID> getExecutionLSIDsForWorkflowRuns(java.lang.String workflowName, java.lang.String userName, java.util.Date after, java.util.Date before, int execIdAfter, int execIdBefore) throws QueryException
getExecutionLSIDsForWorkflowRuns
in interface Queryable
QueryException
public java.util.List<java.lang.Integer> getExecutionsForWorkflowRunsBefore(java.lang.String workflowName, java.lang.String userName, java.util.Date before) throws QueryException
Queryable
getExecutionsForWorkflowRunsBefore
in interface Queryable
QueryException
public java.lang.Integer getLastExecutionForWorkflow(KeplerLSID lsid) throws QueryException
Queryable
getLastExecutionForWorkflow
in interface Queryable
lsid
- the workflow lsid.QueryException
public java.lang.Integer getLastExecutionForWorkflow(java.lang.String workflow) throws QueryException
Queryable
getLastExecutionForWorkflow
in interface Queryable
workflow
- the workflow nameQueryException
public KeplerLSID getLastExecutionLSIDForWorkflow(java.lang.String workflow) throws QueryException
Queryable
getLastExecutionLSIDForWorkflow
in interface Queryable
workflow
- the workflow name.QueryException
public KeplerLSID getLastExecutionLSIDForWorkflow(KeplerLSID lsid) throws QueryException
Queryable
getLastExecutionLSIDForWorkflow
in interface Queryable
lsid
- the workflow LSID.QueryException
public java.lang.String getErrorForExecution(KeplerLSID lsid) throws QueryException
Queryable
getErrorForExecution
in interface Queryable
lsid
- the workflow execution lsid.QueryException
isErrorForExecution
public boolean isErrorForExecution(KeplerLSID executionLSID) throws QueryException
Queryable
isErrorForExecution
in interface Queryable
QueryException
public java.util.List<java.lang.Integer> getTokensForExecution(int execId, boolean last) throws QueryException
getTokensForExecution
in interface Queryable
execId
- the execution idlast
- if true, the sequence starts at the last token created
and goes backwards to the first; otherwise the sequence starts at
the first.QueryException
public java.util.List<java.lang.Integer> getTokensForExecution(int execId, java.lang.Integer portId, boolean last) throws QueryException
getTokensForExecution
in interface Queryable
execId
- the execution idportId
- the port id. If null, returns the ids of
tokens read in entire execution.last
- if true, the sequence starts at the last token created
and goes backwards to the first; otherwise the sequence starts at
the first.QueryException
public java.util.List<java.lang.Integer> getActorFiringForToken(int tokenId, boolean read) throws QueryException
getActorFiringForToken
in interface Queryable
tokenId
- the token idread
- If true, return the actor(s) firing id(s) that read
the token. Otherwise, return the actor firing that wrote the token.QueryException
public java.util.List<java.lang.Integer> getTokensForFiring(int fireId, boolean read) throws QueryException
Queryable
getTokensForFiring
in interface Queryable
fireId
- the firing idread
- if true, get the tokens read; otherwise get the tokens
written.QueryException
public Token getToken(int tokenId) throws QueryException
getToken
in interface Queryable
QueryException
public java.lang.String getTokenValue(int tokenId) throws QueryException
Queryable
getTokenValue
in interface Queryable
QueryException
public java.lang.String getTokenType(int tokenId) throws QueryException
Queryable
getTokenType
in interface Queryable
QueryException
public java.lang.Integer getChannelForToken(int tokenId, boolean read, java.lang.Integer fireId) throws QueryException
getChannelForToken
in interface Queryable
tokenId
- the token idread
- if true, return the channel the token was read on.
otherwise, return the channel the token was written on.fireId
- the actor firing id. can be null for writes, but
must be specified for reads.QueryException
public java.lang.String getActorName(int fireId) throws QueryException
Queryable
getActorName
in interface Queryable
QueryException
public java.lang.String getActorType(int fireId) throws QueryException
Queryable
getActorType
in interface Queryable
QueryException
public java.lang.Integer getEntityId(java.lang.String entityName, KeplerLSID lsid) throws QueryException
Queryable
getEntityId
in interface Queryable
entityName
- name of entity.lsid
- the workflow LSID. NOTE: the revision is ignored.QueryException
public java.lang.Integer getEntityId(java.lang.String entityName, java.lang.String workflowName) throws QueryException
Queryable
getEntityId
in interface Queryable
entityName
- the name of the entity.workflowName
- the name of the workflow.QueryException
public java.lang.String getEntityType(java.lang.Integer entityId) throws QueryException
Queryable
getEntityType
in interface Queryable
QueryException
public java.lang.Integer getEntityWorkflowId(java.lang.Integer entityId) throws QueryException
Queryable
getEntityWorkflowId
in interface Queryable
QueryException
public java.util.Map<java.lang.String,java.lang.String> getParameterNameValuesForFiring(int fireId) throws QueryException
Queryable
getParameterNameValuesForFiring
in interface Queryable
QueryException
public java.util.Map<java.lang.String,java.lang.String> getParameterNameValuesForExecution(int execId) throws QueryException
Queryable
getParameterNameValuesForExecution
in interface Queryable
QueryException
public java.lang.String getParameterValueLatest(java.lang.String parameter, KeplerLSID lsid) throws QueryException
Queryable
getParameterValueLatest
in interface Queryable
parameter
- the parameter name.lsid
- the workflow lsidQueryException
public java.lang.String getParameterValueAtTime(java.util.Date timestamp, java.lang.String parameter, KeplerLSID lsid) throws QueryException
Queryable
getParameterValueAtTime
in interface Queryable
timestamp
- the timeparameter
- the parameter namelsid
- the workflow lsidQueryException
public java.util.List<java.lang.Integer> getImmediateDependencies(int tokenId) throws QueryException
Queryable
getImmediateDependencies
in interface Queryable
QueryException
public java.util.List<byte[]> getAssociatedDataForExecution(int execId, java.util.Map<java.lang.String,java.lang.String> metadataMap, boolean matchAny) throws QueryException
Queryable
getAssociatedDataForExecution
in interface Queryable
QueryException
public java.util.Map<java.lang.String,java.lang.String> getAssociatedKeysValuesForExecution(int execId) throws QueryException
getAssociatedKeysValuesForExecution
in interface Queryable
QueryException
public java.util.Map<KeplerLSID,WorkflowRun> getWorkflowRunsForExecutionLSIDs(java.util.List<KeplerLSID> executions) throws QueryException
Queryable
getWorkflowRunsForExecutionLSIDs
in interface Queryable
QueryException
public java.util.List<WorkflowRun> getWorkflowRunsForUser(java.lang.String user) throws QueryException
getWorkflowRunsForUser
in interface Queryable
QueryException
public java.util.List<java.lang.Integer> getExecutionIdsForTags(java.lang.String tagsSearchString) throws QueryException
Queryable
getExecutionIdsForTags
in interface Queryable
QueryException
public java.util.List<java.lang.String> getTagsForExecutionId(int execId) throws QueryException
Queryable
getTagsForExecutionId
in interface Queryable
QueryException
public java.lang.String getTypeForTag(java.lang.String conceptId)
Queryable
getTypeForTag
in interface Queryable
public java.util.Map<NamedOntClass,java.lang.String> getTagClassesForExecutionId(int execId) throws QueryException
Queryable
getTagClassesForExecutionId
in interface Queryable
QueryException
public java.lang.Integer getExecutionForExecutionLSIDWithoutRevision(java.lang.String execLSIDWithoutRevision) throws QueryException
Queryable
getExecutionForExecutionLSIDWithoutRevision
in interface Queryable
QueryException
public java.lang.Integer getExecutionForOldestReferralExecutionLSIDWithoutRevision(java.lang.String stringWithoutRevision) throws QueryException
Queryable
getExecutionForOldestReferralExecutionLSIDWithoutRevision
in interface Queryable
QueryException
public java.util.List<KeplerLSID> getExecutionsForType(WorkflowRun.type type) throws QueryException
Queryable
getExecutionsForType
in interface Queryable
QueryException
public boolean isImportedExecution(KeplerLSID executionLSID) throws QueryException
Queryable
isImportedExecution
in interface Queryable
QueryException
public java.util.List<java.lang.String> getPortsForActor(KeplerLSID workflow, java.lang.String actor) throws QueryException
Queryable
getPortsForActor
in interface Queryable
workflow
- the LSID of the workflowactor
- the fully-qualified name of the actorQueryException
public java.lang.String getUserForExecution(java.lang.Integer execId) throws QueryException
Queryable
getUserForExecution
in interface Queryable
QueryException
public java.lang.String getUserForExecution(KeplerLSID execLSID) throws QueryException
Queryable
getUserForExecution
in interface Queryable
QueryException
public java.lang.String getHostIdForExecution(java.lang.Integer execId) throws QueryException
Queryable
getHostIdForExecution
in interface Queryable
QueryException
public java.lang.String getOutputRoleToken(int tokenId) throws QueryException
Queryable
getOutputRoleToken
in interface Queryable
QueryException
public java.lang.String getInputRoleForTokenAndFireId(int tokenId, int fireId) throws QueryException
Queryable
getInputRoleForTokenAndFireId
in interface Queryable
QueryException
public java.util.Map<java.lang.String,java.lang.String> getParameterNameValuesOfSpecificTypeForExecution(int execId) throws QueryException
Queryable
getParameterNameValuesOfSpecificTypeForExecution
in interface Queryable
QueryException
public java.util.Date[] getTimestampsForActorFiring(int fireId) throws QueryException
Queryable
getTimestampsForActorFiring
in interface Queryable
QueryException
public java.util.List<java.lang.Integer> getActorFiringIds(java.lang.String actorName, java.lang.Integer wfExecId) throws QueryException
Queryable
getActorFiringIds
in interface Queryable
QueryException
public java.util.Map<java.lang.String,java.lang.String> getParameterAndPortParameterNameValuesForFiring(int fireId) throws QueryException
Queryable
getParameterAndPortParameterNameValuesForFiring
in interface Queryable
QueryException
public java.util.List<java.lang.Integer> getActorFirings(int wfExecId) throws QueryException
Queryable
getActorFirings
in interface Queryable
QueryException
public long getTotalExecutionTimeForActor(KeplerLSID workflow, KeplerLSID execLSID, java.lang.String actor) throws QueryException
getTotalExecutionTimeForActor
in interface Queryable
workflow
- the workflow LSID. If null, must specify execution id.execLSID
- the execution id. If null, use the last execution of the workflow.actor
- the full actor name.QueryException
public java.util.Map<java.lang.String,java.lang.Long> getExecutionTimesForActor(KeplerLSID workflow, KeplerLSID execLSID, java.lang.String actor) throws QueryException
getExecutionTimesForActor
in interface Queryable
workflow
- the workflow LSID. If null, must specify execution id.execLSID
- the execution LSID. If null, the last execution of the workflow
is used.actor
- the full actor name.QueryException
public java.util.Map<java.lang.Integer,java.lang.Integer> getIOBytesForPort(KeplerLSID workflow, java.lang.Integer execId, java.lang.String port, boolean read) throws QueryException
getIOBytesForPort
in interface Queryable
workflow
- the workflow LSID. If null, must specify execution id.execId
- the execution id. If null, the last execution of the workflow
is used.port
- the full port name.read
- If true, get the bytes read. Otherwise, get the bytes written.QueryException
public java.lang.Integer getTotalIOBytesForActor(KeplerLSID workflow, java.lang.Integer execId, java.lang.String actor, boolean read) throws QueryException
getTotalIOBytesForActor
in interface Queryable
workflow
- the workflow LSID. If null, specify the execution id.execId
- the execution id. If null, the last execution of the workflow
is used.actor
- the full actor name.read
- If true, get the bytes read. Otherwise, get the bytes written.QueryException
public java.util.Date[] getTimestampsForTokenRead(java.lang.Integer tokenId) throws QueryException
getTimestampsForTokenRead
in interface Queryable
QueryException
public java.util.Date getTimestampForTokenWrite(java.lang.Integer tokenId) throws QueryException
getTimestampForTokenWrite
in interface Queryable
QueryException
protected java.lang.Integer _getLastExecutionId(KeplerLSID workflow) throws QueryException
QueryException
protected abstract boolean _stringTokenValuesHaveSurroundingQuotes()