public class CleanupWorkflowOperationHandler
extends org.opencastproject.workflow.api.AbstractWorkflowOperationHandler
| Modifier and Type | Field and Description |
|---|---|
protected org.opencastproject.security.api.TrustedHttpClient |
client
The http client to use when connecting to remote servers
|
static String |
DELAY
Time to wait in seconds before removing files
|
static String |
DELETE_EXTERNAL
Deleting external URI's config key
|
static String |
PRESERVE_FLAVOR_PROPERTY
The element flavors to maintain in the original mediapackage.
|
protected org.opencastproject.workspace.api.Workspace |
workspace
The workspace to use in retrieving and storing files.
|
| Constructor and Description |
|---|
CleanupWorkflowOperationHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanUpJobArgument(org.opencastproject.workflow.api.WorkflowInstance workflowInstance)
Deletes JobArguments for every finished Job of the WorkfloInstance
|
void |
setTrustedHttpClient(org.opencastproject.security.api.TrustedHttpClient client)
Sets the trusted http client
|
void |
setWorkspace(org.opencastproject.workspace.api.Workspace workspace)
Sets the workspace to use.
|
org.opencastproject.workflow.api.WorkflowOperationResult |
start(org.opencastproject.workflow.api.WorkflowInstance workflowInstance,
org.opencastproject.job.api.JobContext context) |
activate, asList, cfgKeyMissing, createResult, createResult, createResult, createResult, destroy, equals, getCfg, getConfig, getConfig, getConfig, getDescription, getFileNameFromElements, getId, getOptConfig, getOptConfig, hashCode, setJobBarrierPollingInterval, setServiceRegistry, skip, toString, waitForStatus, waitForStatuspublic static final String PRESERVE_FLAVOR_PROPERTY
public static final String DELETE_EXTERNAL
public static final String DELAY
protected org.opencastproject.workspace.api.Workspace workspace
protected org.opencastproject.security.api.TrustedHttpClient client
public void setWorkspace(org.opencastproject.workspace.api.Workspace workspace)
workspace - the workspacepublic void setTrustedHttpClient(org.opencastproject.security.api.TrustedHttpClient client)
client - the trusted http clientpublic void cleanUpJobArgument(org.opencastproject.workflow.api.WorkflowInstance workflowInstance)
workflowInstance - public org.opencastproject.workflow.api.WorkflowOperationResult start(org.opencastproject.workflow.api.WorkflowInstance workflowInstance,
org.opencastproject.job.api.JobContext context)
throws org.opencastproject.workflow.api.WorkflowOperationException
start in interface org.opencastproject.workflow.api.WorkflowOperationHandlerstart in class org.opencastproject.workflow.api.AbstractWorkflowOperationHandlerorg.opencastproject.workflow.api.WorkflowOperationExceptionAbstractWorkflowOperationHandler.start(org.opencastproject.workflow.api.WorkflowInstance,
JobContext)Copyright © 2009–2021 Opencast Project. All rights reserved.