Codota Logo
Trigger.getName
Code IndexAdd Codota to your IDE (free)

How to use
getName
method
in
org.quartz.triggers.Trigger

Best Java code snippets using org.quartz.triggers.Trigger.getName (Showing top 20 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ArrayList a =
  • Codota Iconnew ArrayList<String>()
  • Codota Iconnew ArrayList()
  • Codota Iconnew ArrayList<Object>()
  • Smart code suggestions by Codota
}
origin: org.knowm/sundial

/**
 * <p>
 * Create a <code>ObjectAlreadyExistsException</code> and auto-generate a message using the name/group from the given <code>Trigger</code>.
 * </p>
 * <p>
 * The message will read: <BR>
 * "Unable to store Trigger with name: '__' and group: '__', because one already exists with this identification."
 * </p>
 */
public ObjectAlreadyExistsException(Trigger offendingTrigger) {
 super("Unable to store Trigger with name: '" + offendingTrigger.getName() + "', because one already exists with this identification.");
}
origin: com.xeiam/sundial

/**
 * <p>
 * Create a <code>ObjectAlreadyExistsException</code> and auto-generate a message using the name/group from the given <code>Trigger</code>.
 * </p>
 * <p>
 * The message will read: <BR>
 * "Unable to store Trigger with name: '__' and group: '__', because one already exists with this identification."
 * </p>
 */
public ObjectAlreadyExistsException(Trigger offendingTrigger) {
 super("Unable to store Trigger with name: '" + offendingTrigger.getName() + "', because one already exists with this identification.");
}
origin: knowm/Sundial

 /**
  * Create a <code>ObjectAlreadyExistsException</code> and auto-generate a message using the
  * name/group from the given <code>Trigger</code>.
  *
  * <p>The message will read: <br>
  * "Unable to store Trigger with name: '__' and group: '__', because one already exists with this
  * identification."
  */
 public ObjectAlreadyExistsException(Trigger offendingTrigger) {

  super(
    "Unable to store Trigger with name: '"
      + offendingTrigger.getName()
      + "', because one already exists with this identification.");
 }
}
origin: com.xeiam/sundial

/**
 * Trigger equality is based upon the equality of the Trigger name.
 *
 * @return true if the key of this Trigger equals that of the given Trigger.
 */
@Override
public boolean equals(Object o) {
 if (!(o instanceof Trigger)) {
  return false;
 }
 Trigger other = (Trigger) o;
 if (other.getName() == null || getName() == null) {
  return false;
 }
 return getName().equals(other.getName());
}
origin: com.xeiam/sundial

private void notifySchedulerListenersScheduled(Trigger trigger) {
 // build a list of all scheduler listeners that are to be notified...
 List<SchedulerListener> schedListeners = buildSchedulerListenerList();
 // notify all scheduler listeners
 for (SchedulerListener sl : schedListeners) {
  try {
   sl.jobScheduled(trigger);
  } catch (Exception e) {
   logger.error("Error while notifying SchedulerListener of scheduled job." + "  Triger=" + trigger.getName(), e);
  }
 }
}
origin: org.knowm/sundial

public void notifySchedulerListenersFinalized(Trigger trigger) {
 // build a list of all scheduler listeners that are to be notified...
 List<SchedulerListener> schedListeners = buildSchedulerListenerList();
 // notify all scheduler listeners
 for (SchedulerListener sl : schedListeners) {
  try {
   sl.triggerFinalized(trigger);
  } catch (Exception e) {
   logger.error("Error while notifying SchedulerListener of finalized trigger." + "  Triger=" + trigger.getName(), e);
  }
 }
}
origin: com.xeiam/sundial

public void notifySchedulerListenersFinalized(Trigger trigger) {
 // build a list of all scheduler listeners that are to be notified...
 List<SchedulerListener> schedListeners = buildSchedulerListenerList();
 // notify all scheduler listeners
 for (SchedulerListener sl : schedListeners) {
  try {
   sl.triggerFinalized(trigger);
  } catch (Exception e) {
   logger.error("Error while notifying SchedulerListener of finalized trigger." + "  Triger=" + trigger.getName(), e);
  }
 }
}
origin: org.knowm/sundial

private void notifySchedulerListenersScheduled(Trigger trigger) {
 // build a list of all scheduler listeners that are to be notified...
 List<SchedulerListener> schedListeners = buildSchedulerListenerList();
 // notify all scheduler listeners
 for (SchedulerListener sl : schedListeners) {
  try {
   sl.jobScheduled(trigger);
  } catch (Exception e) {
   logger.error("Error while notifying SchedulerListener of scheduled job." + "  Triger=" + trigger.getName(), e);
  }
 }
}
origin: knowm/dropwizard-sundial

@Override
public void triggerComplete(Trigger trigger, JobExecutionContext context,
  Trigger.CompletedExecutionInstruction triggerInstructionCode) {
  metrics.timer(triggerMetricName(trigger.getName())).update(
    context.getJobRunTime(), TimeUnit.MILLISECONDS
  );
  metrics.timer(jobMetricName(context.getJobDetail().getName())).update(
    context.getJobRunTime(), TimeUnit.MILLISECONDS
  );
}
origin: knowm/Sundial

/**
 * Add all the mappings from the JobExecutionContext to the JobContext
 *
 * @param jobExecutionContext
 */
public void addQuartzContext(JobExecutionContext jobExecutionContext) {
 for (Object mapKey : jobExecutionContext.getMergedJobDataMap().keySet()) {
  // logger.debug("added key: " + (String) mapKey);
  // logger.debug("added value: " + (String)
  // jobExecutionContext.getMergedJobDataMap().get(mapKey));
  map.put((String) mapKey, jobExecutionContext.getMergedJobDataMap().get(mapKey));
 }
 map.put(KEY_JOB_NAME, jobExecutionContext.getJobDetail().getName());
 map.put(KEY_TRIGGER_NAME, (jobExecutionContext.getTrigger().getName()));
 if (jobExecutionContext.getTrigger() instanceof CronTrigger) {
  map.put(
    KEY_TRIGGER_CRON_EXPRESSION,
    ((CronTrigger) jobExecutionContext.getTrigger()).getCronExpression());
 }
}
origin: com.xeiam/sundial

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().getName() + " job= " + jec.getJobDetail().getName(), se);
  return false;
 }
 return true;
}
origin: org.knowm/sundial

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().getName() + " job= " + jec.getJobDetail().getName(), se);
  return false;
 }
 return true;
}
origin: knowm/Sundial

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().getName()
      + " job= "
      + jec.getJobDetail().getName(),
    se);
  return false;
 }
 return true;
}
origin: org.knowm/sundial

@Override
public void deleteJob(String jobKey) throws SchedulerException {
 validateState();
 List<? extends Trigger> triggers = getTriggersOfJob(jobKey);
 for (Trigger trigger : triggers) {
  unscheduleJob(trigger.getName());
 }
 boolean result = quartzSchedulerResources.getJobStore().removeJob(jobKey);
 if (result) {
  notifySchedulerThread(0L);
  notifySchedulerListenersJobDeleted(jobKey);
 }
}
origin: com.xeiam/sundial

@Override
public void deleteJob(String jobKey) throws SchedulerException {
 validateState();
 List<? extends Trigger> triggers = getTriggersOfJob(jobKey);
 for (Trigger trigger : triggers) {
  unscheduleJob(trigger.getName());
 }
 boolean result = quartzSchedulerResources.getJobStore().removeJob(jobKey);
 if (result) {
  notifySchedulerThread(0L);
  notifySchedulerListenersJobDeleted(jobKey);
 }
}
origin: knowm/Sundial

@Override
public void deleteJob(String jobKey) throws SchedulerException {
 validateState();
 List<? extends Trigger> triggers = getTriggersOfJob(jobKey);
 for (Trigger trigger : triggers) {
  unscheduleJob(trigger.getName());
 }
 boolean result = quartzSchedulerResources.getJobStore().removeJob(jobKey);
 if (result) {
  notifySchedulerThread(0L);
  notifySchedulerListenersJobDeleted(jobKey);
 }
}
origin: com.xeiam/sundial

@Override
public String toString() {
 return "JobExecutionContext:" + " trigger: '" + getTrigger().getName() + " job: " + getJobDetail().getName() + " fireTime: '" + getFireTime()
   + " scheduledFireTime: " + getScheduledFireTime() + " previousFireTime: '" + getPreviousFireTime() + " nextFireTime: " + getNextFireTime()
   + " isRecovering: " + isRecovering() + " refireCount: " + getRefireCount();
}
origin: org.knowm/sundial

@Override
public String toString() {
 return "JobExecutionContext:" + " trigger: '" + getTrigger().getName() + " job: " + getJobDetail().getName() + " fireTime: '" + getFireTime()
   + " scheduledFireTime: " + getScheduledFireTime() + " previousFireTime: '" + getPreviousFireTime() + " nextFireTime: " + getNextFireTime()
   + " isRecovering: " + isRecovering() + " refireCount: " + getRefireCount();
}
origin: org.knowm/sundial

private boolean notifyTriggerListenersComplete(JobExecutionContext jec, CompletedExecutionInstruction instCode) {
 try {
  qs.notifyTriggerListenersComplete(jec, instCode);
 } catch (SchedulerException se) {
  qs.notifySchedulerListenersError("Unable to notify TriggerListener(s) of Job that was executed: " + "(error will be ignored). trigger= "
    + jec.getTrigger().getName() + " job= " + jec.getJobDetail().getName(), se);
  return false;
 }
 if (jec.getTrigger().getNextFireTime() == null) {
  qs.notifySchedulerListenersFinalized(jec.getTrigger());
 }
 return true;
}
origin: com.xeiam/sundial

private boolean notifyTriggerListenersComplete(JobExecutionContext jec, CompletedExecutionInstruction instCode) {
 try {
  qs.notifyTriggerListenersComplete(jec, instCode);
 } catch (SchedulerException se) {
  qs.notifySchedulerListenersError("Unable to notify TriggerListener(s) of Job that was executed: " + "(error will be ignored). trigger= "
    + jec.getTrigger().getName() + " job= " + jec.getJobDetail().getName(), se);
  return false;
 }
 if (jec.getTrigger().getNextFireTime() == null) {
  qs.notifySchedulerListenersFinalized(jec.getTrigger());
 }
 return true;
}
org.quartz.triggersTriggergetName

Javadoc

Get the name of this Trigger.

Popular methods of Trigger

  • getNextFireTime
    Returns the next time at which the Trigger is scheduled to fire. If the trigger will not fire again,
  • getJobDataMap
    Get the JobDataMap that is associated with the Trigger. Changes made to this map during job executio
  • getJobName
    Get the name of the associated org.quartz.jobs.JobDetail.
  • getPriority
    The priority of a Trigger acts as a tiebreaker such that if two Triggers have the same scheduled fir

Popular in Java

  • Start an intent from android
  • addToBackStack (FragmentTransaction)
  • getSharedPreferences (Context)
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • ObjectMapper (com.fasterxml.jackson.databind)
    This mapper (or, data binder, or codec) provides functionality for converting between Java objects (
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • TreeSet (java.util)
    A NavigableSet implementation based on a TreeMap. The elements are ordered using their Comparable, o
  • BoxLayout (javax.swing)
  • JCheckBox (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now