Commits

jhouse  committed e55744b

QUARTZ-745 : Add javabean compliant accessors to all SchedulerMetaData properties

git-svn-id: http://svn.opensymphony.com/svn/quartz/trunk@91669f7d36a-ea1c-0410-88ea-9fd03e4c9665

  • Participants
  • Parent commits 0e48d5e

Comments (0)

Files changed (1)

File src/java/org/quartz/SchedulerMetaData.java

      * </p>
      * 
      * @return null if the scheduler has not been started.
+     * @deprecated - Please use <code>{@link #getRunningSince}</code>.
      */
     public Date runningSince() {
         return startTime;
 
     /**
      * <p>
+     * Returns the <code>Date</code> at which the Scheduler started running.
+     * </p>
+     * 
+     * @return null if the scheduler has not been started.
+     */
+    public Date getRunningSince() {
+        return startTime;
+    }
+    
+    /**
+     * <p>
      * Returns the number of jobs executed since the <code>Scheduler</code>
      * started..
      * </p>
+     * 
+     * @deprecated - Please use <code>{@link #getNumberOfJobsExecuted()}</code>.
      */
     public int numJobsExecuted() {
         return numJobsExec;
 
     /**
      * <p>
+     * Returns the number of jobs executed since the <code>Scheduler</code>
+     * started..
+     * </p>
+     */
+    public int getNumberOfJobsExecuted() {
+        return numJobsExec;
+    }
+
+    /**
+     * <p>
      * Returns whether the <code>Scheduler</code> is being used remotely (via
      * RMI).
      * </p>
         if (!isShutdown()) {
             if (runningSince() != null) {
                 str.append("  Running since: ");
-                str.append(runningSince());
+                str.append(getRunningSince());
             } else {
                 str.append("NOT STARTED.");
             }
         str.append("\n");
 
         str.append("  Number of jobs executed: ");
-        str.append(numJobsExecuted());
+        str.append(getNumberOfJobsExecuted());
         str.append("\n");
 
         str.append("  Using thread pool '");