Update of /cvsroot/batchserver/batchserver/src/org/jmonks/batchserver/framework/controller/basic
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30411/controller/basic
Added Files:
BasicJobController.java BasicJobProcessor.java
Log Message:
Submitting the class skeltons
--- NEW FILE: BasicJobProcessor.java ---
package org.jmonks.batchserver.framework.controller.basic;
import org.jmonks.batchserver.framework.config.BasicJobProcessorConfig;
import org.jmonks.batchserver.framework.common.*;
/**
* <p>
* This is the basic job processor. This interface lets the developers to extend this interface and implement their logic.
* </p>
*
* @author : Suresh Pragada
* @version 1.0
*/
public interface BasicJobProcessor
{
public boolean suspend();
public boolean resume();
public boolean stop();
public void initialize(BasicJobProcessorConfig Unnamed);
public org.jmonks.batchserver.framework.common.StatusCode process();
public void cleanup();
public Object getProcessorState();
public int getTotalCount();
public int getProcessedCount();
}
--- NEW FILE: BasicJobController.java ---
package org.jmonks.batchserver.framework.controller.basic;
import org.jmonks.batchserver.framework.controller.*;
import org.jmonks.batchserver.framework.mgmtmntr.*;
import org.jmonks.batchserver.framework.common.*;
/**
* <p>
* This is the basic implementation of Job Controller.
* </p>
*
* @author : Suresh Pragada
* @version 1.0
*/
public class BasicJobController extends JobController {
private BasicJobProcessor mBasicJobProcessor;
public BasicJobController()
{
}
public org.jmonks.batchserver.framework.common.StatusCode process()
{
return null;
}
/**
* Returns the total number of records.
*
* @return Returns the total number of records the job gonna process.
*/
public int getExpectedRecordsCount()
{
return 0;
}
/**
* Returns the numebr of records processed so far.
*/
public int getProcessedRecordsCount()
{
return 0;
}
/**
* Returns the thread count.
*/
public String getThreadIDList()
{
return null;
}
/**
* Returns the state of the thread as a ThreadState object.
*/
public org.jmonks.batchserver.framework.mgmtmntr.ThreadState getThreadState(String threadID)
{
return null;
}
/**
* Returns the job status.
*/
public org.jmonks.batchserver.framework.mgmtmntr.JobStatus getJobStatus()
{
return null;
}
/**
* Stops the job and persist the state of this job, if restart flag is true.
*/
public boolean stop(boolean restart)
{
return true;
}
/**
* Suspends the job.
*/
public boolean suspend()
{
return true;
}
/**
* Resume the job
*/
public boolean resume()
{
return true;
}
/**
* @see org.jmonks.batchserver.framework.controller.JobController#readObject(ObjectInputStream)
*/
public void readObject(java.io.ObjectInputStream inputStream)
{
}
/**
* @see org.jmonks.batchserver.framework.controller.JobController#writeObject(ObjectOutputStream)
*/
public void writeObject(java.io.ObjectOutputStream outputStream)
{
}
}
|