com.norconex.jef
Class AbstractJob

java.lang.Object
  extended by com.norconex.jef.AbstractJob
All Implemented Interfaces:
IJob

public abstract class AbstractJob
extends Object
implements IJob

Convenient base class for implementing jobs. Provides a default implementation of getId() passed at construction time.

Since:
1.1
Author:
Pascal Essiembre

Constructor Summary
AbstractJob(String id)
          Creates a new job.
 
Method Summary
 String getId()
          Gets the job unique identifier.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.norconex.jef.IJob
createJobContext, execute, stop
 

Constructor Detail

AbstractJob

public AbstractJob(String id)
Creates a new job.

Parameters:
id - unique job identifier
Method Detail

getId

public final String getId()
Description copied from interface: IJob
Gets the job unique identifier.

Specified by:
getId in interface IJob
Returns:
job unique identifier


Copyright © 2007-2013 Norconex Inc.. All Rights Reserved.