Class StagingPrecondition
java.lang.Object
org.apache.sling.distribution.journal.impl.precondition.StagingPrecondition
- All Implemented Interfaces:
Runnable
,Precondition
This is a precondition that watches status messages from other instances in order to confirm that a package can be processed.
The check will block until a status is found. If no status is received in 60 seconds it will throw an exception.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.sling.distribution.journal.impl.precondition.Precondition
Precondition.Decision
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
activate()
canProcess
(String subAgentName, long pkgOffset) Checks if a package can be processedvoid
void
run()
-
Constructor Details
-
StagingPrecondition
public StagingPrecondition()
-
-
Method Details
-
activate
public void activate() -
deactivate
public void deactivate() -
canProcess
Description copied from interface:Precondition
Checks if a package can be processed- Specified by:
canProcess
in interfacePrecondition
-
run
public void run()
-