public class RepositoryJobInfo extends Object
Jobs have names and are grouped. A job must have a unique name within a given group.
Jobs are triggered by RepositoryJobTrigger
s. Jobs can have multiple such triggers
associated with them.
Constructor and Description |
---|
RepositoryJobInfo(String name,
Class<? extends RepositoryJob> jobClass)
Create a job within the default group.
|
RepositoryJobInfo(String name,
String group,
Class<? extends RepositoryJob> jobClass)
Create a job.
|
Modifier and Type | Method and Description |
---|---|
javax.jcr.Node |
createNode(javax.jcr.Session session)
Override the way the job node is created.
|
String |
getAttribute(String name) |
Collection<String> |
getAttributeNames() |
String |
getGroup() |
Class<? extends RepositoryJob> |
getJobClass() |
String |
getName() |
void |
setAttribute(String name,
String value)
Set the value of an attribute.
|
public RepositoryJobInfo(String name, Class<? extends RepositoryJob> jobClass)
name
- the name of the job.jobClass
- the class of the job to run.public RepositoryJobInfo(String name, String group, Class<? extends RepositoryJob> jobClass)
name
- the name of the job.group
- the jobs group.jobClass
- the class of the job to runpublic String getName()
public String getGroup()
public Class<? extends RepositoryJob> getJobClass()
public void setAttribute(String name, String value)
RepositoryJob
during execution via the RepositoryJobExecutionContext
public Collection<String> getAttributeNames()
public javax.jcr.Node createNode(javax.jcr.Session session) throws javax.jcr.RepositoryException
session
- JCR session with which to create a new job node.null
to let the system create one.javax.jcr.RepositoryException
Copyright © 2007–2019 Hippo B.V. (http://www.onehippo.com). All rights reserved.