SchedulerConfig.java revision b8cc31c8ae794225988943807e9bfcfc988d643c
/**
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2012 ForgeRock AS. All Rights Reserved
*
* The contents of this file are subject to the terms
* of the Common Development and Distribution License
* (the License). You may not use this file except in
* compliance with the License.
*
* You can obtain a copy of the License at
* See the License for the specific language governing
* permission and limitations under the License.
*
* When distributing Covered Code, include this CDDL
* Header Notice in each file and include the License file
* If applicable, add the following below the CDDL Header,
* with the fields enclosed by brackets [] replaced by
* your own identifying information:
* "Portions Copyrighted [year] [name of copyright owner]"
*
*/
/**
* Holds a Scheduler's configuration
*
* @author ckienle
*/
public class SchedulerConfig {
// Top level objects
// Threadpool objects
// Scheduler objects
private boolean executePersistentSchedules = true;
private Properties props;
} else {
props = new Properties();
}
}
}
}
}
}
} else {
}
}
}
}
if (!advancedConfig.isNull()) {
}
}
return props;
}
public boolean executePersistentSchedulesEnabled() {
return executePersistentSchedules;
}
public String getInstanceName() {
}
}
public String getInstanceId() {
if (instanceId != null) {
return instanceId;
}
}
this.instanceId = instanceId;
}
public String getRmiExport() {
}
}
public String getRmiProxy() {
}
}
public String getWrapJobExecutionInUserTransaction() {
}
public void setWrapJobExecutionInUserTransaction(
props.setProperty(StdSchedulerFactory.PROP_SCHED_WRAP_JOB_IN_USER_TX, wrapJobExecutionInUserTransaction);
}
public String getThreadPoolClass() {
return props.getProperty(StdSchedulerFactory.PROP_THREAD_POOL_CLASS, "org.quartz.simpl.SimpleThreadPool");
}
StringBuilder prop = new StringBuilder(StdSchedulerFactory.PROP_THREAD_POOL_PREFIX).append(".threadCount");
}
public String getThreadPoolThreadCount() {
if (threadCount != null) {
return threadCount;
}
StringBuilder prop = new StringBuilder(StdSchedulerFactory.PROP_THREAD_POOL_PREFIX).append(".threadCount");
}
}
public String getThreadPoolThreadPriority() {
StringBuilder prop = new StringBuilder(StdSchedulerFactory.PROP_THREAD_POOL_PREFIX).append(".threadPriority");
}
StringBuilder prop = new StringBuilder(StdSchedulerFactory.PROP_THREAD_POOL_PREFIX).append(".threadPriority");
}
return props.getProperty(
StdSchedulerFactory.PROP_SCHED_SCHEDULER_THREADS_INHERIT_CONTEXT_CLASS_LOADER_OF_INITIALIZING_THREAD,
"true");
}
public void setThreadPoolThreadsInheritCtxtCLOfInitThread(
StdSchedulerFactory.PROP_SCHED_SCHEDULER_THREADS_INHERIT_CONTEXT_CLASS_LOADER_OF_INITIALIZING_THREAD,
}
public String getJobStoreClass() {
return props.getProperty(StdSchedulerFactory.PROP_JOB_STORE_CLASS, "org.forgerock.openidm.quartz.impl.RepoJobStore");
}
}
public Properties toProps() {
StringBuilder propThreadPoolPriority = new StringBuilder(StdSchedulerFactory.PROP_THREAD_POOL_PREFIX).append(".threadPriority");
StringBuilder propThreadPoolCount = new StringBuilder(StdSchedulerFactory.PROP_THREAD_POOL_PREFIX).append(".threadCount");
props.put(StdSchedulerFactory.PROP_SCHED_WRAP_JOB_IN_USER_TX, getWrapJobExecutionInUserTransaction());
props.put(StdSchedulerFactory.PROP_SCHED_SCHEDULER_THREADS_INHERIT_CONTEXT_CLASS_LOADER_OF_INITIALIZING_THREAD,
return props;
}
}