[Batchserver-cvs] batchserver/src/org/jmonks/batchserver/framework/repository Repository.java, 1.4
Brought to you by:
suresh_pragada
From: Suresh <sur...@us...> - 2006-09-10 17:56:38
|
Update of /cvsroot/batchserver/batchserver/src/org/jmonks/batchserver/framework/repository In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv9630 Modified Files: Repository.java Log Message: no message Index: Repository.java =================================================================== RCS file: /cvsroot/batchserver/batchserver/src/org/jmonks/batchserver/framework/repository/Repository.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** Repository.java 28 Mar 2006 04:56:24 -0000 1.4 --- Repository.java 10 Sep 2006 17:56:35 -0000 1.5 *************** *** 145,149 **** * @throws IllegalArgumentException If any one of the input values is null. */ ! public abstract Object getDataFromPreviousJob(String dataIdentifer, String sourceJobName, String targetJobName); --- 145,149 ---- * @throws IllegalArgumentException If any one of the input values is null. */ ! public abstract Object getDataFromPreviousJob(String dataIdentifier, String sourceJobName, String targetJobName); *************** *** 234,279 **** public abstract JobStatistics[] getStatistics(String jobName); ! /** ! * <p> ! * Persist the controller in repository with the given job name. ! * If there are any controller entries with this job name, it removes them ! * first and then saves this controller. This will be useful, when job wants to be restarted. ! * When controller receives stop signal from servier with restart flag, it persist itself into ! * the repository. ! * </p> ! * ! * @param jobName Name of the job ! * @param controller Controller object to be persisted. ! * ! * @return Returns true, if it could persist the controller, false, otherwise. ! * ! * @throws IllegalArgumentException If input arguments job name or controller is null. ! */ ! public abstract boolean saveController(String jobName, final JobController controller); ! ! /** ! * <p> ! * Loads the controller assosicated with this job name in the repsoitory. When controller starts ! * execution, always, it looks into the reposiotry for restart. This can be overriden by passing addition ! * configuration property. ! * </p> ! * ! * @param jobName Name of the job. ! * ! * @return Returns the controller object, null, if it couldnt find any. ! * ! * @throws IllegalArgumentException If input arguments job name is null. ! */ ! public abstract JobController loadController(String jobName); ! ! /** ! * Releases the persistedcontroller object from repository. ! * ! * @param jobName Name of the job. ! * ! * @return Returns true, if it could release the controller from repository, null, otherwise. ! * ! * @throws IllegalArgumentException If input arguments job name is null. ! */ ! public abstract boolean releaseController(String jobName); } --- 234,280 ---- public abstract JobStatistics[] getStatistics(String jobName); ! //////// Following APIs are for future use. ! //////// /** ! //////// * <p> ! //////// * Persist the controller in repository with the given job name. ! //////// * If there are any controller entries with this job name, it removes them ! //////// * first and then saves this controller. This will be useful, when job wants to be restarted. ! //////// * When controller receives stop signal from servier with restart flag, it persist itself into ! //////// * the repository. ! //////// * </p> ! //////// * ! //////// * @param jobName Name of the job ! //////// * @param controller Controller object to be persisted. ! //////// * ! //////// * @return Returns true, if it could persist the controller, false, otherwise. ! //////// * ! //////// * @throws IllegalArgumentException If input arguments job name or controller is null. ! //////// */ ! //////// public abstract boolean saveController(String jobName, final JobController controller); ! //////// ! //////// /** ! //////// * <p> ! //////// * Loads the controller assosicated with this job name in the repsoitory. When controller starts ! //////// * execution, always, it looks into the reposiotry for restart. This can be overriden by passing addition ! //////// * configuration property. ! //////// * </p> ! //////// * ! //////// * @param jobName Name of the job. ! //////// * ! //////// * @return Returns the controller object, null, if it couldnt find any. ! //////// * ! //////// * @throws IllegalArgumentException If input arguments job name is null. ! //////// */ ! //////// public abstract JobController loadController(String jobName); ! //////// ! //////// /** ! //////// * Releases the persistedcontroller object from repository. ! //////// * ! //////// * @param jobName Name of the job. ! //////// * ! //////// * @return Returns true, if it could release the controller from repository, null, otherwise. ! //////// * ! //////// * @throws IllegalArgumentException If input arguments job name is null. ! //////// */ ! //////// public abstract boolean releaseController(String jobName); } |