|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.sling.event.impl.jobs.JobManagerConfiguration
public class JobManagerConfiguration
Configuration of the job handling
Field Summary | |
---|---|
static String |
CONFIG_PROPERTY_BACKGROUND_LOAD_DELAY
The background loader waits this time of seconds after startup before loading events from the repository. |
static String |
CONFIG_PROPERTY_REPOSITORY_PATH
The path where all jobs are stored. |
static long |
DEFAULT_BACKGROUND_LOAD_DELAY
Default background load delay. |
static boolean |
DEFAULT_DISABLE_DISTRIBUTION
Default for disabling the distribution. |
static String |
DEFAULT_REPOSITORY_PATH
Default repository path. |
static String |
PROPERTY_DISABLE_DISTRIBUTION
Configuration switch for distributing the jobs. |
Constructor Summary | |
---|---|
JobManagerConfiguration(Map<String,Object> props)
|
Method Summary | |
---|---|
boolean |
disableDistribution()
|
String |
getAssginedJobsPath()
Get the resource path for all assigned jobs. |
long |
getBackgroundLoadDelay()
|
String |
getLocalJobsPath()
Get the resource path for all jobs assigned to the current instance |
String |
getLocksPath()
Get the resource path for all locks |
String |
getPreviousVersionAnonPath()
|
String |
getPreviousVersionIdentifiedPath()
|
String |
getUnassignedJobsPath()
Get the resource path for all unassigned jobs. |
String |
getUniqueId(String jobTopic)
Get the unique job id |
String |
getUniquePath(String targetId,
String topic,
String jobId,
Map<String,Object> jobProperties)
Create a unique job path (folder and name) for the job. |
boolean |
isJob(String jobPath)
|
boolean |
isLocalJob(String jobPath)
|
boolean |
isLock(String lockPath)
|
void |
update(Map<String,Object> props)
Update with a new configuration |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String DEFAULT_REPOSITORY_PATH
public static final String CONFIG_PROPERTY_REPOSITORY_PATH
public static final long DEFAULT_BACKGROUND_LOAD_DELAY
public static final String CONFIG_PROPERTY_BACKGROUND_LOAD_DELAY
public static final boolean DEFAULT_DISABLE_DISTRIBUTION
public static final String PROPERTY_DISABLE_DISTRIBUTION
Constructor Detail |
---|
public JobManagerConfiguration(Map<String,Object> props)
Method Detail |
---|
public void update(Map<String,Object> props)
public String getAssginedJobsPath()
public String getUnassignedJobsPath()
public String getLocalJobsPath()
public String getLocksPath()
public long getBackgroundLoadDelay()
public String getUniquePath(String targetId, String topic, String jobId, Map<String,Object> jobProperties)
public String getUniqueId(String jobTopic)
public boolean isLocalJob(String jobPath)
public boolean isJob(String jobPath)
public boolean isLock(String lockPath)
public String getPreviousVersionAnonPath()
public String getPreviousVersionIdentifiedPath()
public boolean disableDistribution()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |