本文整理了Java中org.quartz.Trigger.getFullName()
方法的一些代码示例,展示了Trigger.getFullName()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Trigger.getFullName()
方法的具体详情如下:
包路径:org.quartz.Trigger
类名称:Trigger
方法名:getFullName
[英]Returns the 'full name' of the Trigger
in the format "group.name".
[中]以“group.name”格式返回Trigger
的“全名”。
代码示例来源:origin: quartz/quartz-all
public int hashCode() {
return getFullName().hashCode();
}
代码示例来源:origin: com.opensymphony.quartz/com.springsource.org.quartz
public int hashCode() {
return getFullName().hashCode();
}
代码示例来源:origin: com.opensymphony.quartz/com.springsource.org.quartz
/**
* <p>
* Add the specified name of a <code>{@link TriggerListener}</code> to
* the end of the <code>Trigger</code>'s list of listeners.
* </p>
*/
public void addTriggerListener(String name) {
if (triggerListeners.contains(name)) {
throw new IllegalArgumentException(
"Trigger listener '" + name + "' is already registered for trigger: " + getFullName());
}
triggerListeners.add(name);
}
代码示例来源:origin: quartz/quartz-all
/**
* <p>
* Add the specified name of a <code>{@link TriggerListener}</code> to
* the end of the <code>Trigger</code>'s list of listeners.
* </p>
*/
public void addTriggerListener(String name) {
if (triggerListeners.contains(name)) {
throw new IllegalArgumentException(
"Trigger listener '" + name + "' is already registered for trigger: " + getFullName());
}
triggerListeners.add(name);
}
代码示例来源:origin: net.sourceforge.kivu4j/utils-job
@Override
public void scheduleJob(Trigger trigger) {
Assert.notNull(trigger, "'trigger' must not be null");
logger.info("schedule trigger " + trigger.getFullName());
try {
this.scheduler.scheduleJob(trigger);
} catch (SchedulerException e) {
throw new JobException(e);
}
}
代码示例来源:origin: com.opensymphony.quartz/com.springsource.org.quartz
public int compare(Object obj1, Object obj2) {
TriggerWrapper trig1 = (TriggerWrapper) obj1;
TriggerWrapper trig2 = (TriggerWrapper) obj2;
int comp = trig1.trigger.compareTo(trig2.trigger);
if (comp != 0) {
return comp;
}
comp = trig2.trigger.getPriority() - trig1.trigger.getPriority();
if (comp != 0) {
return comp;
}
return trig1.trigger.getFullName().compareTo(trig2.trigger.getFullName());
}
代码示例来源:origin: quartz/quartz-all
public int compare(Object obj1, Object obj2) {
TriggerWrapper trig1 = (TriggerWrapper) obj1;
TriggerWrapper trig2 = (TriggerWrapper) obj2;
int comp = trig1.trigger.compareTo(trig2.trigger);
if (comp != 0) {
return comp;
}
comp = trig2.trigger.getPriority() - trig1.trigger.getPriority();
if (comp != 0) {
return comp;
}
return trig1.trigger.getFullName().compareTo(trig2.trigger.getFullName());
}
代码示例来源:origin: net.sourceforge.kivu4j.utils/kivu4j-utils-job
@Override
public void scheduleJob(Trigger trigger) {
Assert.notNull(trigger, "'trigger' must not be null");
logger.info("schedule trigger " + trigger.getFullName());
try {
this.scheduler.scheduleJob(trigger);
} catch (SchedulerException e) {
throw new JobException(e);
}
}
代码示例来源:origin: quartz/quartz-all
public void notifySchedulerListenersSchduled(Trigger trigger) {
// build a list of all scheduler listeners that are to be notified...
List schedListeners = getSchedulerListeners();
// notify all scheduler listeners
java.util.Iterator itr = schedListeners.iterator();
while (itr.hasNext()) {
SchedulerListener sl = (SchedulerListener) itr.next();
try {
sl.jobScheduled(trigger);
} catch (Exception e) {
getLog().error(
"Error while notifying SchedulerListener of scheduled job."
+ " Triger=" + trigger.getFullName(), e);
}
}
}
代码示例来源:origin: quartz/quartz-all
public void notifySchedulerListenersFinalized(Trigger trigger) {
// build a list of all scheduler listeners that are to be notified...
List schedListeners = getSchedulerListeners();
// notify all scheduler listeners
java.util.Iterator itr = schedListeners.iterator();
while (itr.hasNext()) {
SchedulerListener sl = (SchedulerListener) itr.next();
try {
sl.triggerFinalized(trigger);
} catch (Exception e) {
getLog().error(
"Error while notifying SchedulerListener of finalized trigger."
+ " Triger=" + trigger.getFullName(), e);
}
}
}
代码示例来源:origin: com.opensymphony.quartz/com.springsource.org.quartz
public void notifySchedulerListenersSchduled(Trigger trigger) {
// build a list of all scheduler listeners that are to be notified...
List schedListeners = getSchedulerListeners();
// notify all scheduler listeners
java.util.Iterator itr = schedListeners.iterator();
while (itr.hasNext()) {
SchedulerListener sl = (SchedulerListener) itr.next();
try {
sl.jobScheduled(trigger);
} catch (Exception e) {
getLog().error(
"Error while notifying SchedulerListener of scheduled job."
+ " Triger=" + trigger.getFullName(), e);
}
}
}
代码示例来源:origin: net.sourceforge.kivu4j.utils/kivu4j-utils-job
@Override
public void rescheduleJob(Trigger oldTrg, Trigger newTrg) {
Assert.notNull(oldTrg, "'oldTrg' must not be null");
Assert.notNull(newTrg, "'newTrigger' must not be null");
try {
logger.info("reschedule trigger " + newTrg.getFullName());
this.scheduler.rescheduleJob(oldTrg.getName(), oldTrg.getGroup(), newTrg);
} catch (SchedulerException e) {
throw new JobException(e);
}
}
代码示例来源:origin: net.sourceforge.kivu4j/utils-job
@Override
public void rescheduleJob(Trigger oldTrg, Trigger newTrg) {
Assert.notNull(oldTrg, "'oldTrg' must not be null");
Assert.notNull(newTrg, "'newTrigger' must not be null");
try {
logger.info("reschedule trigger " + newTrg.getFullName());
this.scheduler.rescheduleJob(oldTrg.getName(), oldTrg.getGroup(), newTrg);
} catch (SchedulerException e) {
throw new JobException(e);
}
}
代码示例来源:origin: com.opensymphony.quartz/com.springsource.org.quartz
/**
* <p>
* Return a simple string representation of this object.
* </p>
*/
public String toString() {
return "Trigger '" + getFullName() + "': triggerClass: '"
+ getClass().getName() + " isVolatile: " + isVolatile()
+ " calendar: '" + getCalendarName() + "' misfireInstruction: "
+ getMisfireInstruction() + " nextFireTime: " + getNextFireTime();
}
代码示例来源:origin: quartz/quartz-all
/**
* <p>
* Return a simple string representation of this object.
* </p>
*/
public String toString() {
return "Trigger '" + getFullName() + "': triggerClass: '"
+ getClass().getName() + " isVolatile: " + isVolatile()
+ " calendar: '" + getCalendarName() + "' misfireInstruction: "
+ getMisfireInstruction() + " nextFireTime: " + getNextFireTime();
}
代码示例来源:origin: com.opensymphony.quartz/com.springsource.org.quartz
private boolean notifyJobListenersComplete(JobExecutionContext jec,
JobExecutionException jobExEx) {
try {
qs.notifyJobListenersWasExecuted(jec, jobExEx);
} catch (SchedulerException se) {
qs.notifySchedulerListenersError(
"Unable to notify JobListener(s) of Job that was executed: "
+ "(error will be ignored). trigger= "
+ jec.getTrigger().getFullName() + " job= "
+ jec.getJobDetail().getFullName(), se);
return false;
}
return true;
}
代码示例来源:origin: quartz/quartz-all
private boolean notifyJobListenersComplete(JobExecutionContext jec,
JobExecutionException jobExEx) {
try {
qs.notifyJobListenersWasExecuted(jec, jobExEx);
} catch (SchedulerException se) {
qs.notifySchedulerListenersError(
"Unable to notify JobListener(s) of Job that was executed: "
+ "(error will be ignored). trigger= "
+ jec.getTrigger().getFullName() + " job= "
+ jec.getJobDetail().getFullName(), se);
return false;
}
return true;
}
代码示例来源:origin: com.opensymphony.quartz/com.springsource.org.quartz
public String toString() {
return "JobExecutionContext:" + " trigger: '"
+ getTrigger().getFullName() + " job: "
+ getJobDetail().getFullName() + " fireTime: '" + getFireTime()
+ " scheduledFireTime: " + getScheduledFireTime()
+ " previousFireTime: '" + getPreviousFireTime()
+ " nextFireTime: " + getNextFireTime() + " isRecovering: "
+ isRecovering() + " refireCount: " + getRefireCount();
}
代码示例来源:origin: quartz/quartz-all
public String toString() {
return "JobExecutionContext:" + " trigger: '"
+ getTrigger().getFullName() + " job: "
+ getJobDetail().getFullName() + " fireTime: '" + getFireTime()
+ " scheduledFireTime: " + getScheduledFireTime()
+ " previousFireTime: '" + getPreviousFireTime()
+ " nextFireTime: " + getNextFireTime() + " isRecovering: "
+ isRecovering() + " refireCount: " + getRefireCount();
}
代码示例来源:origin: net.sourceforge.kivu4j.job/kivu4j-job-services
public TriggerDto make(Trigger trigger) {
int state = this.scheduleManager.getTriggerState(trigger.getName(),
trigger.getGroup());
TriggerDto dto = new TriggerDto(trigger.getJobName(),
trigger.getJobGroup(),
trigger.getName(),
trigger.getGroup(),
trigger.getFullName(),
trigger.getDescription(),
ConvertUtil.convert(trigger.getNextFireTime(), String.class),
state);
dto.setID(ConvertUtil.convert(trigger.getFullName().hashCode(), Long.class));
return dto;
}
}
内容来源于网络,如有侵权,请联系作者删除!