Class DefaultCamelRepositoryJob
java.lang.Object
org.onehippo.forge.camel.scheduling.DefaultCamelRepositoryJob
- All Implemented Interfaces:
org.onehippo.repository.scheduling.RepositoryJob
public class DefaultCamelRepositoryJob
extends Object
implements org.onehippo.repository.scheduling.RepositoryJob
Default
RepositoryJob
implementation invoking Camel endpoint.
This default RepositoryJob
implementation reads attributes like the following from RepositoryJobExecutionContext
:
camel.endpoint.uri
: Camel Endpoint URI to invoke. This is required.camel.context.id
: Camel Context ID. If not provided, it retrieves the first one found.
-
Field Details
-
CAMEL_ENDPOINT_URI_ATTR
- See Also:
-
CAMEL_CONTEXT_ID_ATTR
- See Also:
-
-
Constructor Details
-
DefaultCamelRepositoryJob
public DefaultCamelRepositoryJob()
-
-
Method Details
-
execute
public void execute(org.onehippo.repository.scheduling.RepositoryJobExecutionContext context) throws RepositoryException - Specified by:
execute
in interfaceorg.onehippo.repository.scheduling.RepositoryJob
- Throws:
RepositoryException
-