oemware.core
Class BaseSharedJob

java.lang.Object
  extended by oemware.core.BaseSharedJob
All Implemented Interfaces:
SharedJob
Direct Known Subclasses:
InstanceConf

public abstract class BaseSharedJob
extends java.lang.Object
implements SharedJob

The base shared job. This implements the base get/set methods.


Constructor Summary
BaseSharedJob()
           
 
Method Summary
 long getJobFrequency()
          Get the frequency (in ms).
 java.lang.String getJobName()
          Get the job name.
 long getLastRunTime()
          Returns the last time the job was run.
abstract  void runJob()
          You must implement this method in your class.
 void setJobFrequency(long pJobFrequency)
           
 void setJobName(java.lang.String pJobName)
           
 void setLastRunTime(long pLastRunTime)
          Set the last run time.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseSharedJob

public BaseSharedJob()
Method Detail

runJob

public abstract void runJob()
You must implement this method in your class.

Specified by:
runJob in interface SharedJob

getJobName

public final java.lang.String getJobName()
Description copied from interface: SharedJob
Get the job name.

Specified by:
getJobName in interface SharedJob
Returns:
The job name.

setJobName

public final void setJobName(java.lang.String pJobName)

getJobFrequency

public final long getJobFrequency()
Description copied from interface: SharedJob
Get the frequency (in ms).

Specified by:
getJobFrequency in interface SharedJob
Returns:
The frequency.

setJobFrequency

public final void setJobFrequency(long pJobFrequency)

getLastRunTime

public long getLastRunTime()
Description copied from interface: SharedJob
Returns the last time the job was run.

Specified by:
getLastRunTime in interface SharedJob
Returns:
The last time the job was run.

setLastRunTime

public void setLastRunTime(long pLastRunTime)
Description copied from interface: SharedJob
Set the last run time.

Specified by:
setLastRunTime in interface SharedJob
Parameters:
pLastRunTime - The last time the job was run.


Copyright © 2009 Deft Labs - Released under LGPL, Version 3.0