SMILA 1.0 API documentation

org.eclipse.smila.connectivity.framework.agent.jobfile
Class JobFileAgent

java.lang.Object
  extended by org.eclipse.smila.connectivity.framework.AbstractAgent
      extended by org.eclipse.smila.connectivity.framework.agent.jobfile.JobFileAgent
All Implemented Interfaces:
java.lang.Runnable, Agent, JobFileHandler

public class JobFileAgent
extends AbstractAgent
implements JobFileHandler

Implementation of a Agent that reads xml job files with add jobs containing records and delete jobs containing ids.


Constructor Summary
JobFileAgent()
          Default Constructor.
 
Method Summary
 void add(Record record)
          Add the given record.
 void delete(Record record)
          Delete the given record.
protected  void initialize()
          Method to contain initialization of the agent.
 void run()
          
 
Methods inherited from class org.eclipse.smila.connectivity.framework.AbstractAgent
activate, deactivate, getAgentId, getAgentState, getAttachmentsByteLength, getConfig, getControllerCallback, getCounterHelper, getSessionId, initializePerformanceCounterHelper, isStopThread, start, stop, stopThread
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JobFileAgent

public JobFileAgent()
Default Constructor.

Method Detail

run

public void run()

Specified by:
run in interface java.lang.Runnable
See Also:
Runnable.run()

add

public void add(Record record)
         throws AgentCriticalException
Add the given record.

Specified by:
add in interface JobFileHandler
Parameters:
record - the record to add
Throws:
AgentCriticalException

delete

public void delete(Record record)
            throws AgentCriticalException
Delete the given record.

Specified by:
delete in interface JobFileHandler
Parameters:
record - the record to delete
Throws:
AgentCriticalException

initialize

protected void initialize()
                   throws AgentException
Method to contain initialization of the agent. Must be implemented by subclasses. This method is called just before the AgentThread is started.

Specified by:
initialize in class AbstractAgent
Throws:
AgentException - if any error occurs
See Also:
AbstractAgent.initialize()

SMILA 1.0 API documentation