本文整理了Java中org.quartz.Scheduler.standby()
方法的一些代码示例,展示了Scheduler.standby()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Scheduler.standby()
方法的具体详情如下:
包路径:org.quartz.Scheduler
类名称:Scheduler
方法名:standby
[英]Temporarily halts the Scheduler
's firing of Triggers
.
When start()
is called (to bring the scheduler out of stand-by mode), trigger misfire instructions will NOT be applied during the execution of the start()
method - any misfires will be detected immediately afterward (by the JobStore
's normal process).
The scheduler is not destroyed, and can be re-started at any time.
[中]暂时停止Scheduler
对Triggers
的发射。
当调用start()
时(使调度程序脱离待机模式),在start()
方法执行期间不会应用触发器缺火指令-任何缺火都将在之后立即检测(通过JobStore
的正常过程)。
调度程序不会被破坏,可以随时重新启动。
代码示例来源:origin: spring-projects/spring-framework
@Override
public void stop() throws SchedulingException {
if (this.scheduler != null) {
try {
this.scheduler.standby();
}
catch (SchedulerException ex) {
throw new SchedulingException("Could not stop Quartz Scheduler", ex);
}
}
}
代码示例来源:origin: org.springframework/spring-context-support
@Override
public void stop() throws SchedulingException {
if (this.scheduler != null) {
try {
this.scheduler.standby();
}
catch (SchedulerException ex) {
throw new SchedulingException("Could not stop Quartz Scheduler", ex);
}
}
}
代码示例来源:origin: org.ikasan/ikasan-dashboard-jar
public void stop()
{
try
{
this.scheduler.standby();
}
catch (SchedulerException e)
{
throw new RuntimeException("Could not shutdown house keeping scheduler!");
}
}
代码示例来源:origin: org.ikasan/ikasan-dashboard-jar
public void stop()
{
try
{
this.scheduler.standby();
}
catch (SchedulerException e)
{
throw new RuntimeException("Could not shutdown house keeping scheduler!");
}
}
代码示例来源:origin: org.nuxeo.ecm.core/nuxeo-core-event
@Override
public void stop(ComponentContext context) {
try {
scheduler.standby();
} catch (SchedulerException cause) {
log.error("Cannot put scheduler in stand by mode", cause);
}
}
代码示例来源:origin: ru.yandex.qatools.camelot/camelot-commons
@Override
public synchronized void standby() {
try {
scheduler.standby();
} catch (Exception e) {
logger.warn("Exception during the standby of the Quartz!", e);
}
}
代码示例来源:origin: ucarGroup/DataLink
public void standby() {
try {
scheduler.standby();
logger.info("schedule service change to standby mode success.");
} catch (Exception e) {
logger.error("schedule service change to standby mode failed.", e);
}
}
}
代码示例来源:origin: apache/lens
@Override
public synchronized void stop() {
try {
scheduler.standby();
log.info("Alarm Service stopped successfully.");
} catch (SchedulerException e) {
log.error("Failed to shut down the Quartz Scheduler for AlarmService.", e);
}
}
代码示例来源:origin: OpenNMS/opennms
/**
* <p>standBy</p>
*
* @throws org.quartz.SchedulerException if any.
*/
public void standBy() throws SchedulerException {
getScheduler().standby();
}
代码示例来源:origin: myschedule/myschedule-quartz-extra
public void standby() {
try {
scheduler.standby();
} catch (SchedulerException e) {
throw new QuartzRuntimeException(e);
}
}
代码示例来源:origin: org.codelibs/elasticsearch-quartz
public void standby() {
try {
scheduler.standby();
} catch (final SchedulerException e) {
throw new QuartzSchedulerException(e);
}
}
代码示例来源:origin: org.opennms/opennms-provisiond
/**
* <p>standBy</p>
*
* @throws org.quartz.SchedulerException if any.
*/
public void standBy() throws SchedulerException {
getScheduler().standby();
}
代码示例来源:origin: org.opensingular/singular-app-commons
@Override
public void stop() throws SchedulingException {
if (this.scheduler != null) {
try {
this.scheduler.standby();
} catch (SchedulerException ex) {
throw new SchedulingException("Could not stop Quartz Scheduler", ex);
}
}
}
代码示例来源:origin: com.thesett.jenerator.utils/jenerator_util_dropwizard_0.9
/** {@inheritDoc} */
public void stop() throws SchedulerException {
boolean performShutdown =
Boolean.valueOf(configProperties.getProperty("performShutdown", DEFAULT_PERFORM_SHUTDOWN)).booleanValue();
if (!performShutdown) {
return;
}
if (SundialJobScheduler.getScheduler() != null) {
SundialJobScheduler.getScheduler().standby();
}
LOG.info("Sundial Scheduler shutdown successfully.");
}
代码示例来源:origin: openhab/openhab-core
public RuleTriggerManager(Injector injector) {
try {
scheduler = StdSchedulerFactory.getDefaultScheduler();
scheduler.setJobFactory(injector.getInstance(GuiceAwareJobFactory.class));
// we want to defer timer rule execution until after the startup rules have been executed.
scheduler.standby();
} catch (SchedulerException e) {
logger.error("initializing scheduler throws exception", e);
}
}
代码示例来源:origin: pentaho/pentaho-platform
/** {@inheritDoc} */
public void pause() throws SchedulerException {
try {
getQuartzScheduler().standby();
} catch ( org.quartz.SchedulerException e ) {
throw new SchedulerException( e );
}
}
代码示例来源:origin: com.atlassian.scheduler/atlassian-scheduler-quartz1
void standby() throws SchedulerServiceException {
try {
getScheduler().standby();
} catch (SchedulerException se) {
throw checked("Quartz scheduler refused to enter standby mode", se);
}
}
代码示例来源:origin: com.threewks.thundr/thundr-quartz
@Override
public void standby() throws QuartzException {
try {
delegate.standby();
} catch (SchedulerException e) {
Logger.error(e.getMessage());
throw new QuartzException(e);
}
}
代码示例来源:origin: com.threewks.thundr/thundr-contrib-quartz
@Override
public void standby() throws QuartzException {
try {
delegate.standby();
} catch (SchedulerException e) {
Logger.error(e.getMessage());
throw new QuartzException(e);
}
}
代码示例来源:origin: Evolveum/midpoint
void pauseScheduler(OperationResult result) {
LOGGER.info("Putting Quartz scheduler into standby mode");
try {
getQuartzScheduler().standby();
result.recordSuccess();
} catch (SchedulerException e1) {
LoggingUtils.logUnexpectedException(LOGGER, "Couldn't put local Quartz scheduler into standby mode", e1);
result.recordFatalError("Couldn't put local Quartz scheduler into standby mode", e1);
}
}
内容来源于网络,如有侵权,请联系作者删除!