public interface AssetUpdate
Modifier and Type | Interface and Description |
---|---|
static interface |
AssetUpdate.AssetCheck
Check if the given asset is acceptable for the asset, e.g.
|
static interface |
AssetUpdate.Check
Simple check if a null asset (e.g.
|
static interface |
AssetUpdate.JobRunner
Run the update on the given asset and update instance.
|
static interface |
AssetUpdate.Runner
Run the update on the given asset and update instance.
|
Modifier and Type | Method and Description |
---|---|
void |
addJob(Job job)
Announce that a job is run as part of this update.
|
void |
checkAndRun(AssetUpdate.Check check,
AssetUpdate.Runner runner)
Perform and the check, and if successful, run the instance
|
java.io.Serializable |
checkAndRunJob(AssetUpdate.Check check,
AssetUpdate.JobRunner runner)
Variation of
checkAndRun(Check, Runner) that can return the identity
of a started, decoupled sling job. |
void |
done()
Report the upate as finished.
|
void |
error(java.lang.Exception ex)
Report an error during update.
|
Asset |
getAsset()
Get the asset this update is about.
|
Asset |
getAsset(AssetUpdate.Check check)
Get the asset, if it is acceptable.
|
void |
ignore()
Ignore this update in monitoring.
|
boolean |
isIgnored() |
Asset getAsset()
Asset getAsset(AssetUpdate.Check check) throws WorkflowException
check
- the check to be performedWorkflowException
- on general failurevoid checkAndRun(AssetUpdate.Check check, AssetUpdate.Runner runner) throws WorkflowException
check
- the check to be performed on the assetrunner
- the code to be executed on a successful checkWorkflowException
- on general failurejava.io.Serializable checkAndRunJob(AssetUpdate.Check check, AssetUpdate.JobRunner runner) throws WorkflowException
checkAndRun(Check, Runner)
that can return the identity
of a started, decoupled sling job.check
- the check to be performed on the assetrunner
- the code to be executed on a successful checkWorkflowException
- on general failureboolean isIgnored()
void ignore()
void done()
void error(java.lang.Exception ex)
ex
- the exception that as caught, or null.void addJob(Job job)
job
- the job that will run"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"