com.japisoft.framework.job
Class HeavyJobProxy

java.lang.Object
  extended bycom.japisoft.framework.job.HeavyJobProxy
All Implemented Interfaces:
HeavyJob, Job, KnownJob, java.lang.Runnable

public class HeavyJobProxy
extends java.lang.Object
implements HeavyJob

Version:
1.0
Author:
(c) 2004 JAPISoft / http://www.japisoft.com

Constructor Summary
HeavyJobProxy(HeavyJob job)
           
 
Method Summary
 void dispose()
          Free inner resource
 java.lang.String getErrorMessage()
           
 java.lang.String getName()
           
 java.lang.Object getSource()
           
 boolean isAlone()
           
 void run()
           
 void stopIt()
          Stop the current job
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HeavyJobProxy

public HeavyJobProxy(HeavyJob job)
Method Detail

getName

public java.lang.String getName()
Specified by:
getName in interface KnownJob

isAlone

public boolean isAlone()
Specified by:
isAlone in interface Job
Returns:
true if the job must be alone. Meaning all queued Job for the same type will be killed

getErrorMessage

public java.lang.String getErrorMessage()
Specified by:
getErrorMessage in interface KnownJob

stopIt

public void stopIt()
Description copied from interface: Job
Stop the current job

Specified by:
stopIt in interface Job

getSource

public java.lang.Object getSource()
Specified by:
getSource in interface Job
Returns:
the invoker reference

dispose

public void dispose()
Description copied from interface: Job
Free inner resource

Specified by:
dispose in interface Job

run

public void run()
Specified by:
run in interface java.lang.Runnable