|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmapping.TimeOutAnnouncer
public class TimeOutAnnouncer
Nested Class Summary | |
---|---|
static class |
TimeOutAnnouncer.TimeNode
This class stores the time when a job should be completed. |
Constructor Summary | |
---|---|
TimeOutAnnouncer(Mapper mapper)
A default constructor. |
Method Summary | |
---|---|
void |
add(double AfterInTU,
long jobID)
This method is used to add nodes. |
long |
getCurrentSleepTime()
|
Mapper |
getMapper()
|
Logger |
getTimeOutLogger()
|
boolean |
isAlive()
|
void |
print()
|
void |
run()
This thread has a list of nodes. |
void |
setAlive(boolean alive)
|
void |
setCurrentSleepTime(long currentSleepTime)
|
void |
setMapper(Mapper mapper)
|
void |
setTimeOutLogger(Logger timeOutLogger)
|
void |
startThread()
This method starts this thread. |
void |
stopThread()
This method stops this thread. |
void |
upDateCurrentSleepTime()
This method is used to calculate the time for this thread to sleep. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TimeOutAnnouncer(Mapper mapper)
mapper
- To set the mapper field.Method Detail |
---|
public long getCurrentSleepTime()
public void setCurrentSleepTime(long currentSleepTime)
public boolean isAlive()
public void setAlive(boolean alive)
public Mapper getMapper()
public void setMapper(Mapper mapper)
public Logger getTimeOutLogger()
public void setTimeOutLogger(Logger timeOutLogger)
public void add(double AfterInTU, long jobID)
AfterInTU
- After how many units the job should be completed.jobID
- The ID of the job in subject.public void startThread()
public void stopThread()
public void print()
public void run()
run
in interface java.lang.Runnable
public void upDateCurrentSleepTime()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |