Class SchedulerMetaData
- java.lang.Object
-
- org.quartz.SchedulerMetaData
-
- All Implemented Interfaces:
java.io.Serializable
public class SchedulerMetaData extends java.lang.Object implements java.io.SerializableDescribes the settings and capabilities of a giveninstance.Scheduler- Author:
- James House
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SchedulerMetaData(java.lang.String schedName, java.lang.String schedInst, java.lang.Class<?> schedClass, boolean isRemote, boolean started, boolean isInStandbyMode, boolean shutdown, java.util.Date startTime, int numJobsExec, java.lang.Class<?> jsClass, boolean jsPersistent, boolean jsClustered, java.lang.Class<?> tpClass, int tpSize, java.lang.String version)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Class<?>getJobStoreClass()Returns the class-name of theJobStoreinstance that is being used by theScheduler.intgetNumberOfJobsExecuted()Returns the number of jobs executed since theSchedulerstarted..java.util.DategetRunningSince()Returns theDateat which the Scheduler started running.java.lang.Class<?>getSchedulerClass()Returns the class-name of theSchedulerinstance.java.lang.StringgetSchedulerInstanceId()Returns the instance Id of theScheduler.java.lang.StringgetSchedulerName()Returns the name of theScheduler.java.lang.StringgetSummary()Returns a formatted (human readable) String describing all theScheduler's meta-data values.java.lang.Class<?>getThreadPoolClass()Returns the class-name of theThreadPoolinstance that is being used by theScheduler.intgetThreadPoolSize()Returns the number of threads currently in theScheduler'sThreadPool.java.lang.StringgetVersion()Returns the version of Quartz that is running.booleanisInStandbyMode()Reports whether theScheduleris in standby mode.booleanisJobStoreClustered()Returns whether or not theScheduler'sJobStoreis clustered.booleanisJobStoreSupportsPersistence()Returns whether or not theScheduler'sJobStoreinstance supports persistence.booleanisSchedulerRemote()Returns whether theScheduleris being used remotely (via RMI).booleanisShutdown()Reports whether theSchedulerhas been shutdown.booleanisStarted()Returns whether the scheduler has been started.java.lang.StringtoString()Return a simple string representation of this object.
-
-
-
Constructor Detail
-
SchedulerMetaData
public SchedulerMetaData(java.lang.String schedName, java.lang.String schedInst, java.lang.Class<?> schedClass, boolean isRemote, boolean started, boolean isInStandbyMode, boolean shutdown, java.util.Date startTime, int numJobsExec, java.lang.Class<?> jsClass, boolean jsPersistent, boolean jsClustered, java.lang.Class<?> tpClass, int tpSize, java.lang.String version)
-
-
Method Detail
-
getSchedulerName
public java.lang.String getSchedulerName()
Returns the name of the
Scheduler.
-
getSchedulerInstanceId
public java.lang.String getSchedulerInstanceId()
Returns the instance Id of the
Scheduler.
-
getSchedulerClass
public java.lang.Class<?> getSchedulerClass()
Returns the class-name of the
Schedulerinstance.
-
getRunningSince
public java.util.Date getRunningSince()
Returns the
Dateat which the Scheduler started running.- Returns:
- null if the scheduler has not been started.
-
getNumberOfJobsExecuted
public int getNumberOfJobsExecuted()
Returns the number of jobs executed since the
Schedulerstarted..
-
isSchedulerRemote
public boolean isSchedulerRemote()
Returns whether the
Scheduleris being used remotely (via RMI).
-
isStarted
public boolean isStarted()
Returns whether the scheduler has been started.
Note:
isStarted()may returntrueeven ifisInStandbyMode()returnstrue.
-
isInStandbyMode
public boolean isInStandbyMode()
Reports whether theScheduleris in standby mode.
-
isShutdown
public boolean isShutdown()
Reports whether the
Schedulerhas been shutdown.
-
getJobStoreClass
public java.lang.Class<?> getJobStoreClass()
Returns the class-name of the
JobStoreinstance that is being used by theScheduler.
-
isJobStoreSupportsPersistence
public boolean isJobStoreSupportsPersistence()
Returns whether or not the
Scheduler'sJobStoreinstance supports persistence.
-
isJobStoreClustered
public boolean isJobStoreClustered()
Returns whether or not the
Scheduler'sJobStoreis clustered.
-
getThreadPoolClass
public java.lang.Class<?> getThreadPoolClass()
Returns the class-name of the
ThreadPoolinstance that is being used by theScheduler.
-
getThreadPoolSize
public int getThreadPoolSize()
Returns the number of threads currently in the
Scheduler'sThreadPool.
-
getVersion
public java.lang.String getVersion()
Returns the version of Quartz that is running.
-
toString
public java.lang.String toString()
Return a simple string representation of this object.
- Overrides:
toStringin classjava.lang.Object
-
getSummary
public java.lang.String getSummary() throws SchedulerExceptionReturns a formatted (human readable) String describing all the
Scheduler's meta-data values.The format of the String looks something like this:
Quartz Scheduler 'SchedulerName' with instanceId 'SchedulerInstanceId' Scheduler class: 'org.quartz.impl.StdScheduler' - running locally. Running since: '11:33am on Jul 19, 2002' Not currently paused. Number of Triggers fired: '123' Using thread pool 'org.quartz.simpl.SimpleThreadPool' - with '8' threads Using job-store 'org.quartz.impl.JDBCJobStore' - which supports persistence.
- Throws:
SchedulerException
-
-