public interface Queryable extends java.io.Closeable
| Modifier and Type | Method and Description |
|---|---|
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.
|
void disconnect() throws QueryException
QueryExceptionjava.util.List<java.lang.String> getWorkflows() throws QueryException
QueryExceptionjava.lang.String getWorkflowName(KeplerLSID lsid) throws QueryException
lsid - the workflow's LSID.QueryExceptionjava.lang.String getWorkflowNameForExecution(KeplerLSID lsid) throws QueryException
lsid - the execution LSID.QueryExceptionjava.util.List<java.lang.Integer> getExecutions() throws QueryException
QueryExceptionjava.util.List<KeplerLSID> getExecutionLSIDs() throws QueryException
QueryExceptionjava.util.List<java.lang.Integer> getExecutionsForWorkflow(java.lang.String workflow) throws QueryException
QueryExceptionjava.lang.Integer getExecutionForExecutionLSID(KeplerLSID runLSID) throws QueryException
QueryExceptionKeplerLSID getExecutionLSIDForExecution(java.lang.Integer execId) throws QueryException
QueryExceptionjava.util.List<java.lang.Integer> getExecutionsForAnnotation(java.lang.String annotation) throws QueryException
QueryExceptionjava.util.Date[] getTimestampsForExecution(int execId) throws QueryException
execId - the execution idQueryExceptionjava.lang.String getMoMLForExecution(int execId) throws QueryException
QueryExceptionjava.lang.String getMoMLForExecution(KeplerLSID lsid) throws QueryException
QueryExceptionjava.util.List<java.lang.String> getMoMLForExecutionLSIDs(java.util.List<KeplerLSID> lsids) throws QueryException
QueryExceptionNamedObj getWorkflowForExecution(java.lang.Integer execId) throws QueryException
QueryExceptionjava.util.List<java.lang.Integer> getExecutionsForTimespan(java.util.Date start, java.util.Date end) throws QueryException
QueryExceptionjava.util.List<java.lang.Integer> getExecutionsForWorkflowRuns(java.lang.String workflowName, java.lang.String userName) throws QueryException
QueryExceptionjava.util.List<java.lang.Integer> getExecutionsForWorkflowRunsAfter(java.lang.String workflowName, java.lang.String userName, java.util.Date after) throws QueryException
QueryExceptionjava.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
QueryExceptionjava.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
QueryExceptionjava.util.List<java.lang.Integer> getExecutionsForWorkflowRunsBefore(java.lang.String workflowName, java.lang.String userName, java.util.Date before) throws QueryException
QueryExceptionjava.lang.Integer getLastExecutionForWorkflow(KeplerLSID lsid) throws QueryException
lsid - the workflow lsid.QueryExceptionjava.lang.Integer getLastExecutionForWorkflow(java.lang.String workflow) throws QueryException
workflow - the workflow nameQueryExceptionKeplerLSID getLastExecutionLSIDForWorkflow(java.lang.String workflow) throws QueryException
workflow - the workflow name.QueryExceptionKeplerLSID getLastExecutionLSIDForWorkflow(KeplerLSID lsid) throws QueryException
lsid - the workflow LSID.QueryExceptionjava.lang.String getErrorForExecution(KeplerLSID lsid) throws QueryException
lsid - the workflow execution lsid.QueryExceptionisErrorForExecutionboolean isErrorForExecution(KeplerLSID executionLSID) throws QueryException
QueryExceptionjava.util.List<java.lang.Integer> getTokensForExecution(int execId, boolean last) throws QueryException
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 token.QueryExceptionjava.util.List<java.lang.Integer> getTokensForExecution(int execId, java.lang.Integer portId, boolean last) throws QueryException
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.QueryExceptionjava.util.List<java.lang.Integer> getActorFiringForToken(int tokenId, boolean read) throws QueryException
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.QueryExceptionjava.util.List<java.lang.Integer> getTokensForFiring(int fireId, boolean read) throws QueryException
fireId - the firing idread - if true, get the tokens read; otherwise get the tokens
written.QueryExceptionToken getToken(int tokenId) throws QueryException
QueryExceptionjava.lang.String getTokenValue(int tokenId) throws QueryException
QueryExceptionjava.lang.String getTokenType(int tokenId) throws QueryException
QueryExceptionjava.lang.Integer getChannelForToken(int tokenId, boolean read, java.lang.Integer fireId) throws QueryException
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.QueryExceptionjava.lang.String getActorName(int fireId) throws QueryException
QueryExceptionjava.lang.String getActorType(int fireId) throws QueryException
QueryExceptionjava.lang.Integer getEntityId(java.lang.String entityName, KeplerLSID lsid) throws QueryException
entityName - name of entity.lsid - the workflow LSID. NOTE: the revision is ignored.QueryExceptionjava.lang.Integer getEntityId(java.lang.String entityName, java.lang.String workflowName) throws QueryException
entityName - the name of the entity.workflowName - the name of the workflow.QueryExceptionjava.lang.String getEntityType(java.lang.Integer entityId) throws QueryException
QueryExceptionjava.lang.Integer getEntityWorkflowId(java.lang.Integer entityId) throws QueryException
QueryExceptionjava.util.Map<java.lang.String,java.lang.String> getParameterNameValuesForFiring(int fireId) throws QueryException
QueryExceptionjava.util.Map<java.lang.String,java.lang.String> getParameterNameValuesForExecution(int execId) throws QueryException
QueryExceptionjava.lang.String getParameterValueLatest(java.lang.String parameter, KeplerLSID lsid) throws QueryException
parameter - the parameter name.lsid - the workflow lsidQueryExceptionjava.lang.String getParameterValueAtTime(java.util.Date timestamp, java.lang.String parameter, KeplerLSID lsid) throws QueryException
timestamp - the timeparameter - the parameter namelsid - the workflow lsidQueryExceptionjava.util.List<java.lang.Integer> getImmediateDependencies(int tokenId) throws QueryException
QueryExceptionjava.util.List<byte[]> getAssociatedDataForExecution(int execId, java.util.Map<java.lang.String,java.lang.String> metadataMap, boolean matchAny) throws QueryException
QueryExceptionjava.util.Map<java.lang.String,java.lang.String> getAssociatedKeysValuesForExecution(int execId) throws QueryException
QueryExceptionjava.util.Map<KeplerLSID,WorkflowRun> getWorkflowRunsForExecutionLSIDs(java.util.List<KeplerLSID> executions) throws QueryException
QueryExceptionjava.util.List<WorkflowRun> getWorkflowRunsForUser(java.lang.String user) throws QueryException
QueryExceptionjava.util.List<java.lang.Integer> getExecutionIdsForTags(java.lang.String tagsSearchString) throws QueryException
QueryExceptionjava.util.List<java.lang.String> getTagsForExecutionId(int execId) throws QueryException
QueryExceptionjava.lang.String getTypeForTag(java.lang.String conceptId)
java.util.Map<NamedOntClass,java.lang.String> getTagClassesForExecutionId(int execId) throws QueryException
QueryExceptionjava.lang.Integer getExecutionForExecutionLSIDWithoutRevision(java.lang.String execLSIDWithoutRevision) throws QueryException
QueryExceptionjava.lang.Integer getExecutionForOldestReferralExecutionLSIDWithoutRevision(java.lang.String stringWithoutRevision) throws QueryException
QueryExceptionjava.util.List<KeplerLSID> getExecutionsForType(WorkflowRun.type type) throws QueryException
QueryExceptionboolean isImportedExecution(KeplerLSID executionLSID) throws QueryException
QueryExceptionjava.util.List<java.lang.String> getPortsForActor(KeplerLSID workflow, java.lang.String actor) throws QueryException
workflow - the LSID of the workflowactor - the fully-qualified name of the actorQueryExceptionjava.lang.String getUserForExecution(KeplerLSID execLSID) throws QueryException
QueryExceptionjava.lang.String getUserForExecution(java.lang.Integer execId) throws QueryException
QueryExceptionjava.lang.String getHostIdForExecution(java.lang.Integer execId) throws QueryException
QueryExceptionjava.lang.String getOutputRoleToken(int tokenId) throws QueryException
QueryExceptionjava.lang.String getInputRoleForTokenAndFireId(int tokenId, int fireId) throws QueryException
QueryExceptionjava.util.Map<java.lang.String,java.lang.String> getParameterNameValuesOfSpecificTypeForExecution(int execId) throws QueryException
QueryExceptionjava.util.Date[] getTimestampsForActorFiring(int fireId) throws QueryException
QueryExceptionjava.util.List<java.lang.Integer> getActorFiringIds(java.lang.String actorName, java.lang.Integer wfExecId) throws QueryException
QueryExceptionjava.util.Map<java.lang.String,java.lang.String> getParameterAndPortParameterNameValuesForFiring(int fireId) throws QueryException
QueryExceptionjava.util.List<java.lang.Integer> getActorFirings(int wfExecId) throws QueryException
QueryExceptionjava.util.Date[] getTimestampsForTokenRead(java.lang.Integer tokenId) throws QueryException
QueryExceptionjava.util.Date getTimestampForTokenWrite(java.lang.Integer tokenId) throws QueryException
QueryExceptionlong getTotalExecutionTimeForActor(KeplerLSID workflow, KeplerLSID execLSID, java.lang.String actor) throws QueryException
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.QueryExceptionjava.util.Map<java.lang.String,java.lang.Long> getExecutionTimesForActor(KeplerLSID workflow, KeplerLSID execLSID, java.lang.String actor) throws QueryException
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.QueryExceptionjava.lang.Integer getTotalIOBytesForActor(KeplerLSID workflow, java.lang.Integer execId, java.lang.String actor, boolean read) throws QueryException
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.QueryExceptionjava.util.Map<java.lang.Integer,java.lang.Integer> getIOBytesForPort(KeplerLSID workflow, java.lang.Integer execId, java.lang.String port, boolean read) throws QueryException
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