[cvs] expresso/expresso-web/WEB-INF/src/com/jcorporate/expresso/services/dbobj JobHandlerControl.java

JCorporate Ltd jcorp at jcorp2.servlets.net
Thu Sep 16 12:43:42 PDT 2004


Update of /home/javacorp/.cvs/expresso/expresso/expresso-web/WEB-INF/src/com/jcorporate/expresso/services/dbobj
In directory jcorp2.servlets.net:/tmp/cvs-serv10148/expresso-web/WEB-INF/src/com/jcorporate/expresso/services/dbobj

Modified Files:
	JobHandlerControl.java 
Log Message:
cosmetic; add comments, use string constants


Index: JobHandlerControl.java
===================================================================
RCS file: /home/javacorp/.cvs/expresso/expresso/expresso-web/WEB-INF/src/com/jcorporate/expresso/services/dbobj/JobHandlerControl.java,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** JobHandlerControl.java	27 Oct 2003 19:10:41 -0000	1.11
--- JobHandlerControl.java	16 Sep 2004 19:43:40 -0000	1.12
***************
*** 72,83 ****
  import com.jcorporate.expresso.core.misc.DateTime;
  
- import java.util.Calendar;
  import java.util.Vector;
  
- 
  /**
   *
-  *
-  * @version        $Revision$  $Date$
   * @author        Mike Dubman
   */
--- 72,81 ----
  import com.jcorporate.expresso.core.misc.DateTime;
  
  import java.util.Vector;
  
  /**
+  * applies operations (commands) to all jobs running on a server.
+  * For example, cause all jobs to stop or restart.
   *
   * @author        Mike Dubman
   */
***************
*** 85,88 ****
--- 83,89 ----
          extends SecuredDBObject {
      public static final String FLD_REQUEST_TIME = "RequestTime";
+     /**
+      * command to apply to all jobs on server. currently, only restart and stop are available
+      */
      public static final String FLD_COMMAND = "Command";
      public static final String FLD_UID = "ExpUid";
***************
*** 95,110 ****
      public static final String JOB_STATUS_RUNNING = "R";
  
!     /**
! 
!      * @see com.jcorporate.expresso.core.dbobj.SecuredDBObject
! 
!      *
  
       * @throws  DBException
- 
       */
      public JobHandlerControl()
              throws DBException {
-         super();
      } /* JobHandlerControl() */
  
--- 96,107 ----
      public static final String JOB_STATUS_RUNNING = "R";
  
!     public static final String RESTART_COMMAND = "restart";
!     public static final String STOP_COMMAND = "stop";
  
+     /**
       * @throws  DBException
       */
      public JobHandlerControl()
              throws DBException {
      } /* JobHandlerControl() */
  
***************
*** 132,142 ****
  
      /**
- 
-      * @see com.jcorporate.expresso.core.dbobj.SecuredDBObject#setupFields
- 
       *
- 
       * @throws  DBException
- 
       */
      protected synchronized void setupFields()
--- 129,134 ----
***************
*** 157,161 ****
      public void add()
              throws DBException {
-         Calendar rightNow = Calendar.getInstance();
  
          if (getField(FLD_STATUS_CODE).equals("")) {
--- 149,152 ----
***************
*** 170,186 ****
  
      /**
- 
       * Override the method getValidValues to provide specific values for our
- 
       * multi-valued fields
- 
       *
- 
       * @param    fieldName Field name for which values are requested
- 
       * @return    Vector The ValidValues field
- 
       * @throws    DBException If the values cannot be retrieved
- 
       */
      public Vector getValidValues(String fieldName)
--- 161,170 ----
***************
*** 220,223 ****
      }
  } /* JobHandlerControl */
- 
- /* JobHandlerControl */
\ No newline at end of file
--- 204,205 ----



More information about the cvs mailing list