|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ofbiz.service.job.JobInvoker
public class JobInvoker
JobInvoker
Field Summary | |
---|---|
static java.lang.String |
module
|
static long |
THREAD_TTL
|
static int |
WAIT_TIME
|
Constructor Summary | |
---|---|
protected |
JobInvoker()
|
|
JobInvoker(JobPoller jp)
|
|
JobInvoker(JobPoller jp,
int wait)
|
Method Summary | |
---|---|
long |
getCurrentRuntime()
Gets the total time the current job has been running or 0 when sleeping. |
int |
getCurrentStatus()
Gets the status code for this thread (0 = sleeping, 1 = running job) |
java.lang.String |
getJobId()
Get the current running job's ID. |
java.lang.String |
getJobName()
Get the current running job's name. |
java.lang.String |
getName()
Gets the name of this JobInvoker. |
java.lang.String |
getServiceName()
Returns the name of the service being run. |
java.lang.Long |
getThreadId()
|
long |
getTime()
Gets the time when this thread was created. |
long |
getTimeRemaining()
Gets the remaining time this thread has before it is killed |
int |
getUsage()
Gets the number of times this thread was used. |
void |
kill()
Kill this invoker thread.s |
void |
run()
|
void |
stop()
Tells the thread to stop after the next job. |
void |
wakeUp()
Wakes up this thread. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String module
public static final long THREAD_TTL
public static final int WAIT_TIME
Constructor Detail |
---|
public JobInvoker(JobPoller jp)
public JobInvoker(JobPoller jp, int wait)
protected JobInvoker()
Method Detail |
---|
public void stop()
public void wakeUp()
public int getUsage()
public long getTimeRemaining()
public long getTime()
public java.lang.String getName()
public int getCurrentStatus()
public long getCurrentRuntime()
public java.lang.Long getThreadId()
public java.lang.String getJobId()
public java.lang.String getJobName()
public java.lang.String getServiceName()
public void kill()
public void run()
run
in interface java.lang.Runnable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |