[Batchserver-cvs] batchserver/src/org/jmonks/batchserver/framework/management JobManagementAgent.j
Brought to you by:
suresh_pragada
From: Suresh <sur...@us...> - 2006-09-14 23:05:18
|
Update of /cvsroot/batchserver/batchserver/src/org/jmonks/batchserver/framework/management In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv10680/management Modified Files: JobManagementAgent.java ProcessorState.java Log Message: no message Index: JobManagementAgent.java =================================================================== RCS file: /cvsroot/batchserver/batchserver/src/org/jmonks/batchserver/framework/management/JobManagementAgent.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** JobManagementAgent.java 13 Sep 2006 23:29:45 -0000 1.5 --- JobManagementAgent.java 14 Sep 2006 23:05:12 -0000 1.6 *************** *** 19,29 **** * <p> * JobManagementAgent defines the methods to start and stop the JMX Agent for this job. ! * Only one agent will be created for a job and this agent will be initialized ! * when you request to get the job management agent instance. Agent service can be ! * started and stopped only once during the life cycle of the job. This uses * the JobConnectorHelper to take the help in creating different JMX ! * connector servers and different lookup locations to ! * register and unregister jmx connector servers. * </p> * @author Suresh Pragada * @version 1.0 --- 19,29 ---- * <p> * JobManagementAgent defines the methods to start and stop the JMX Agent for this job. ! * Only one agent will be created for a job and this can be created only be the framework. ! * Agent service can be started and stopped only once during the life cycle of the job. This uses * the JobConnectorHelper to take the help in creating different JMX ! * connector servers and register and unregister jmx connector servers to be looked up ! * by the JMX connector clients. * </p> + * * @author Suresh Pragada * @version 1.0 *************** *** 109,117 **** * when it is already started, it throws IllegalStateException. * </p> ! * @param jobName Name of the job the controller belongs to. * @param jobController Controller reference to be passed to the mbeans. * * @return Returns true, if manager is started properly, false, otherwise. * * @throws IllegalArgumentException If input parameters job name or job controller is null. * @throws IllegalStateException If manager is already started or already stopped. --- 109,120 ---- * when it is already started, it throws IllegalStateException. * </p> ! * ! * @param jobContext Context of the job is being run. * @param jobController Controller reference to be passed to the mbeans. + * @param agentManager Main class reference as a agent manager. * * @return Returns true, if manager is started properly, false, otherwise. * + * @throws SecurityException if an attempt is maded to start by any one other than Main(framework). * @throws IllegalArgumentException If input parameters job name or job controller is null. * @throws IllegalStateException If manager is already started or already stopped. *************** *** 218,226 **** * exit status will be sent to all the JMX remote clients as a notification. * ! * * @param exitCode errorCode returned by controller to the Main class. * * @return Returns true, if agent could be stopped properly, false otherwise. * * @throws IllegalArgumentException If input parameter status code is null. * @throws IllegalStateException If agent is already stopped or it not yet started. --- 221,231 ---- * exit status will be sent to all the JMX remote clients as a notification. * ! * @param jobContext Context of the job is being run. * @param exitCode errorCode returned by controller to the Main class. + * @param agentManager Main class reference as a agent manager. * * @return Returns true, if agent could be stopped properly, false otherwise. * + * @throws SecurityException if an attempt is maded to stop by any one other than Main(framework). * @throws IllegalArgumentException If input parameter status code is null. * @throws IllegalStateException If agent is already stopped or it not yet started. Index: ProcessorState.java =================================================================== RCS file: /cvsroot/batchserver/batchserver/src/org/jmonks/batchserver/framework/management/ProcessorState.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** ProcessorState.java 14 May 2006 01:34:49 -0000 1.1 --- ProcessorState.java 14 Sep 2006 23:05:12 -0000 1.2 *************** *** 7,10 **** --- 7,11 ---- * processing information. * </p> + * * @author Suresh pragada * @version 1.0 *************** *** 28,32 **** /** ! * Constructor to initialize the whole object at a time and make sure it is immutable. */ public ProcessorState(String processorID,String processorDescription,Object processingInfo) --- 29,33 ---- /** ! * Constructor initializes the object. */ public ProcessorState(String processorID,String processorDescription,Object processingInfo) *************** *** 74,78 **** return stringValue.toString(); } ! ! } --- 75,78 ---- return stringValue.toString(); } ! } |