Tabnine Logo
RemoteMBeanScheduler
Code IndexAdd Tabnine to your IDE (free)

How to use
RemoteMBeanScheduler
in
org.quartz.impl

Best Java code snippets using org.quartz.impl.RemoteMBeanScheduler (Showing top 20 results out of 315)

origin: quartz-scheduler/quartz

/**
 * <p>
 * Returns the name of the <code>Scheduler</code>.
 * </p>
 */
public String getSchedulerName() throws SchedulerException {
  return (String)getAttribute("SchedulerName");
}
origin: quartz-scheduler/quartz

/**
 * <p>
 * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>.
 * </p>
 */
public void shutdown() throws SchedulerException {
  // Have to get the scheduler name before we actually call shutdown.
  String schedulerName = getSchedulerName();
  
  invoke("shutdown", new Object[] {}, new String[] {});
  SchedulerRepository.getInstance().remove(schedulerName);
}
origin: quartz-scheduler/quartz

/**
 * <p>
 * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>,
 * passing the <code>SchedulingContext</code> associated with this
 * instance.
 * </p>
 */
public void triggerJob(JobKey jobKey) throws SchedulerException {
  triggerJob(jobKey, null);
}

origin: quartz-scheduler/quartz

/**
 * <p>
 * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>.
 * </p>
 */
public void standby() throws SchedulerException {
  invoke("standby", new Object[] {}, new String[] {});
}
origin: quartz/quartz-all

/**
 * <p>
 * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>.
 * </p>
 */
public void shutdown(boolean waitForJobsToComplete)
  throws SchedulerException {
  // Have to get the scheduler name before we actually call shutdown.
  String schedulerName = getSchedulerName();
  
  invoke(
    "shutdown", 
    new Object[] { toBoolean(waitForJobsToComplete) }, 
    new String[] { boolean.class.getName() });
  
  SchedulerRepository.getInstance().remove(schedulerName);
}
origin: quartz/quartz-all

public SchedulerMetaData getMetaData() throws SchedulerException {
  AttributeList attributeList = 
    getAttributes(
      new String[] {
        "schedulerName",
        "schedulerInstanceId",
        "inStandbyMode",
        "shutdown",
        "jobStoreClass",
        "threadPoolClass",
        "threadPoolSize",
        "version"
      });
  
  return new SchedulerMetaData(
      (String)attributeList.get(0),
      (String)attributeList.get(1),
      getClass(), true, isStarted(), 
      ((Boolean)attributeList.get(2)).booleanValue(), 
      ((Boolean)attributeList.get(3)).booleanValue(), 
      (Date)invoke("runningSince", new Object[] {}, new String[] {}), 
      ((Integer)invoke("numJobsExecuted", new Object[] {}, new String[] {})).intValue(),
      (Class)attributeList.get(4),
      ((Boolean)invoke("supportsPersistence", new Object[] {}, new String[] {})).booleanValue(),
      (Class)attributeList.get(5),
      ((Integer)attributeList.get(6)).intValue(),
      (String)attributeList.get(7));
}
origin: com.opensymphony.quartz/com.springsource.org.quartz

jmxScheduler.setSchedulingContext(schedCtxt);
jmxScheduler.setSchedulerObjectName(jmxObjectName);
jmxScheduler.initialize();
origin: quartz-scheduler/quartz

public SchedulerMetaData getMetaData() throws SchedulerException {
  AttributeList attributeList =
    getAttributes(
      new String[] {
        "SchedulerName",
        (String)getAttribute(attributeList, 0).getValue(),
        (String)getAttribute(attributeList, 1).getValue(),
        getClass(), true, false,
        (Boolean)getAttribute(attributeList, 2).getValue(),
        (Boolean)getAttribute(attributeList, 3).getValue(),
        null,
        Integer.parseInt(((Map)getAttribute(attributeList, 8).getValue()).get("JobsExecuted").toString()),
        Class.forName((String)getAttribute(attributeList, 4).getValue()),
        false,
        false,
        Class.forName((String)getAttribute(attributeList, 5).getValue()),
        (Integer)getAttribute(attributeList, 6).getValue(),
        (String)getAttribute(attributeList, 7).getValue());
  } catch (ClassNotFoundException e) {
    throw new SchedulerException(e);
origin: quartz-scheduler/quartz

jmxScheduler.setSchedulerObjectName(jmxObjectName);
jmxScheduler.initialize();
origin: quartz/quartz-all

/**
 * @see org.quartz.Scheduler#isInStandbyMode()
 * @deprecated
 */
public boolean isPaused() throws SchedulerException {
  return isInStandbyMode();
}
origin: quartz-scheduler/quartz

/**
 * <p>
 * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>.
 * </p>
 */
public void start() throws SchedulerException {
  invoke("start", new Object[] {}, new String[] {});
}
origin: com.opensymphony.quartz/com.springsource.org.quartz

/**
 * <p>
 * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>.
 * </p>
 */
public void shutdown(boolean waitForJobsToComplete)
  throws SchedulerException {
  // Have to get the scheduler name before we actually call shutdown.
  String schedulerName = getSchedulerName();
  
  invoke(
    "shutdown", 
    new Object[] { toBoolean(waitForJobsToComplete) }, 
    new String[] { boolean.class.getName() });
  
  SchedulerRepository.getInstance().remove(schedulerName);
}
origin: com.opensymphony.quartz/com.springsource.org.quartz

public SchedulerMetaData getMetaData() throws SchedulerException {
  AttributeList attributeList = 
    getAttributes(
      new String[] {
        "schedulerName",
        "schedulerInstanceId",
        "inStandbyMode",
        "shutdown",
        "jobStoreClass",
        "threadPoolClass",
        "threadPoolSize",
        "version"
      });
  
  return new SchedulerMetaData(
      (String)attributeList.get(0),
      (String)attributeList.get(1),
      getClass(), true, isStarted(), 
      ((Boolean)attributeList.get(2)).booleanValue(), 
      ((Boolean)attributeList.get(3)).booleanValue(), 
      (Date)invoke("runningSince", new Object[] {}, new String[] {}), 
      ((Integer)invoke("numJobsExecuted", new Object[] {}, new String[] {})).intValue(),
      (Class)attributeList.get(4),
      ((Boolean)invoke("supportsPersistence", new Object[] {}, new String[] {})).booleanValue(),
      (Class)attributeList.get(5),
      ((Integer)attributeList.get(6)).intValue(),
      (String)attributeList.get(7));
}
origin: quartz/quartz-all

jmxScheduler.setSchedulingContext(schedCtxt);
jmxScheduler.setSchedulerObjectName(jmxObjectName);
jmxScheduler.initialize();
origin: quartz-scheduler/quartz

public SchedulerMetaData getMetaData() throws SchedulerException {
  AttributeList attributeList =
    getAttributes(
      new String[] {
        "SchedulerName",
        (String)getAttribute(attributeList, 0).getValue(),
        (String)getAttribute(attributeList, 1).getValue(),
        getClass(), true, false,
        (Boolean)getAttribute(attributeList, 2).getValue(),
        (Boolean)getAttribute(attributeList, 3).getValue(),
        null,
        Integer.parseInt(((Map)getAttribute(attributeList, 8).getValue()).get("JobsExecuted").toString()),
        Class.forName((String)getAttribute(attributeList, 4).getValue()),
        false,
        false,
        Class.forName((String)getAttribute(attributeList, 5).getValue()),
        (Integer)getAttribute(attributeList, 6).getValue(),
        (String)getAttribute(attributeList, 7).getValue());
  } catch (ClassNotFoundException e) {
    throw new SchedulerException(e);
origin: quartz-scheduler/quartz

jmxScheduler.setSchedulerObjectName(jmxObjectName);
jmxScheduler.initialize();
origin: com.opensymphony.quartz/com.springsource.org.quartz

/**
 * @see org.quartz.Scheduler#isInStandbyMode()
 * @deprecated
 */
public boolean isPaused() throws SchedulerException {
  return isInStandbyMode();
}
origin: quartz-scheduler/quartz

/**
 * <p>
 * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>.
 * </p>
 */
public void start() throws SchedulerException {
  invoke("start", new Object[] {}, new String[] {});
}
origin: quartz-scheduler/quartz

/**
 * <p>
 * Returns the instance Id of the <code>Scheduler</code>.
 * </p>
 */
public String getSchedulerInstanceId() throws SchedulerException {
  return (String)getAttribute("SchedulerInstanceId");
}
origin: quartz-scheduler/quartz

/**
 * <p>
 * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>.
 * </p>
 */
public void shutdown() throws SchedulerException {
  // Have to get the scheduler name before we actually call shutdown.
  String schedulerName = getSchedulerName();
  
  invoke("shutdown", new Object[] {}, new String[] {});
  SchedulerRepository.getInstance().remove(schedulerName);
}
org.quartz.implRemoteMBeanScheduler

Javadoc

An implementation of the Scheduler interface that remotely proxies all method calls to the equivalent call on a given QuartzScheduler instance, via JMX.

A user must create a subclass to implement the actual connection to the remote MBeanServer using their application specific connector.

Most used methods

  • getAttribute
  • getAttributes
    Get the given attributes of the remote Scheduler MBean.
  • getSchedulerName
    Returns the name of the Scheduler.
  • initialize
    Initialize this RemoteMBeanScheduler instance, connecting to the remote MBean server.
  • invoke
    Invoke the given operation on the remote Scheduler MBean.
  • setSchedulerObjectName
    Set the name under which the Scheduler MBean is registered on the remote MBean server.
  • triggerJob
    Calls the equivalent method on the 'proxied' QuartzScheduler, passing the SchedulingContext associ
  • isInStandbyMode
    Calls the equivalent method on the 'proxied' QuartzScheduler.
  • isStarted
    Whether the scheduler has been started. Note: This only reflects whether #start() has ever been call
  • setSchedulingContext
    Set the scheduling context of this proxy.
  • standby
    Calls the equivalent method on the 'proxied' QuartzScheduler.
  • toBoolean
  • standby,
  • toBoolean,
  • triggerJobWithVolatileTrigger

Popular in Java

  • Start an intent from android
  • getApplicationContext (Context)
  • getSystemService (Context)
  • setRequestProperty (URLConnection)
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now