public class SchedulerMetaData extends Object
IScheduler instance.| Constructor and Description |
|---|
SchedulerMetaData(String schedName,
String schedInst,
Class<?> schedClass,
boolean started,
boolean isInStandbyMode,
boolean shutdown,
Date startTime,
int numJobsExec,
Class<?> jsClass,
boolean jsPersistent,
boolean jsClustered,
Class<?> tpClass,
int tpSize,
String version) |
| Modifier and Type | Method and Description |
|---|---|
Class<?> |
getJobStoreClass()
Returns the class-name of the
JobStore instance that is being
used by the Scheduler. |
int |
getNumberOfJobsExecuted()
Returns the number of jobs executed since the
Scheduler
started. |
Date |
getRunningSince()
Returns the
Date at which the Scheduler started running. |
Class<?> |
getSchedulerClass()
Returns the class-name of the
Scheduler instance. |
String |
getSchedulerInstanceId()
Returns the instance Id of the
Scheduler. |
String |
getSchedulerName()
Returns the name of the
Scheduler. |
String |
getSummary()
Returns a formatted (human readable) String describing all the
Scheduler's meta-data values. |
Class<?> |
getThreadPoolClass()
Returns the class-name of the
ThreadPool instance that is
being used by the Scheduler. |
int |
getThreadPoolSize()
Returns the number of threads currently in the
Scheduler's
ThreadPool. |
String |
getVersion()
Returns the version of Quartz that is running.
|
boolean |
isInStandbyMode()
Reports whether the
Scheduler is in standby mode. |
boolean |
isJobStoreClustered()
Returns whether or not the
Scheduler'sJobStore is
clustered. |
boolean |
isJobStoreSupportsPersistence()
Returns whether or not the
Scheduler'sJobStore
instance supports persistence. |
boolean |
isShutdown()
Reports whether the
Scheduler has been shutdown. |
boolean |
isStarted()
Returns whether the scheduler has been started.
|
String |
toString()
Return a simple string representation of this object.
|
public String getSchedulerName()
Scheduler.public String getSchedulerInstanceId()
Scheduler.public Class<?> getSchedulerClass()
Scheduler instance.public Date getRunningSince()
Date at which the Scheduler started running.public int getNumberOfJobsExecuted()
Scheduler
started.public boolean isStarted()
Returns whether the scheduler has been started.
Note: isStarted() may return true even if
isInStandbyMode() returns true.
public boolean isInStandbyMode()
Scheduler is in standby mode.public boolean isShutdown()
Reports whether the Scheduler has been shutdown.
public Class<?> getJobStoreClass()
Returns the class-name of the JobStore instance that is being
used by the Scheduler.
public boolean isJobStoreSupportsPersistence()
Returns whether or not the Scheduler'sJobStore
instance supports persistence.
public boolean isJobStoreClustered()
Returns whether or not the Scheduler'sJobStore is
clustered.
public Class<?> getThreadPoolClass()
Returns the class-name of the ThreadPool instance that is
being used by the Scheduler.
public int getThreadPoolSize()
Returns the number of threads currently in the Scheduler's
ThreadPool.
public String getVersion()
Returns the version of Quartz that is running.
public String toString()
Return a simple string representation of this object.
public String getSummary() throws SchedulerException
Returns a formatted (human readable) String describing all the
Scheduler's meta-data values.
The format of the String looks something like this:
Mini Quartz Scheduler 'SchedulerName' with instanceId 'SchedulerInstanceId' Scheduler class: 'com.helger.quartz.impl.StdScheduler' - running locally. Running since: '11:33am on Jul 19, 2002' Not currently paused. Number of Triggers fired: '123' Using thread pool 'com.helger.quartz.simpl.SimpleThreadPool' - with '8' threads Using job-store 'com.helger.quartz.impl.JDBCJobStore' - which supports persistence.
SchedulerException - On errorCopyright © 2016–2021 Philip Helger. All rights reserved.