|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectlive.dto.Thread
This DTO is NOT runnable, it just holds information about a thread. And actually, it holds information that is specific to a ThreadedUserAction, so it's not generically useful for any thread.
Nested Class Summary | |
static class |
Thread.ComparatorByDescription
This comparator orders threads by their descriptions |
static class |
Thread.ComparatorByResult
This comparator orders threads by their descriptions |
static class |
Thread.ComparatorByTimeEnded
This comparator orders threads by the ending value. |
static class |
Thread.ComparatorByTimeStarted
This comparator orders threads by the starting value |
static class |
Thread.ThreadComparator
This is a base class for the different comparator styles. |
Field Summary | |
private String |
description
|
private boolean |
finished
|
int |
ID
|
private boolean |
isContainer
|
private String |
result
|
private int |
status
|
private Date |
timeEnded
|
private Date |
timeStarted
|
Constructor Summary | |
Thread(int ID,
String description,
Date timeStarted,
Date timeEnded,
String result,
int status)
Makes a thread DTO with the specified attributes |
|
Thread(ThreadedUserAction action)
Same as Thread(int, String, Date, Date, String, int) , but it pulls
its parameters from a ThreadedUserAction |
Method Summary | |
Integer |
getBoxedID()
Returns the ID as an Integer instead of an int. |
String |
getDescription()
Returns the description |
int |
getID()
Returns the thread ID |
String |
getResult()
Returns the result string |
int |
getStatus()
Returns the thread's status |
Date |
getTimeEnded()
Returns the time the task ended |
Date |
getTimeStarted()
Returns the time the task started |
boolean |
isContainer()
Returns the whether it is a container |
boolean |
isFinished()
Returns whether the task is finished |
void |
setDescription(String description)
Sets the description |
void |
setResult(String result)
Sets the result string to a value |
void |
setStatus(int status)
Sets the thread's status |
void |
setTimeEnded(Date timeEnded)
Sets the time the task ended |
void |
setTimeStarted(Date timeStarted)
Sets the time the task started |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public int ID
private String description
private Date timeEnded
private Date timeStarted
private boolean finished
private String result
private int status
private boolean isContainer
Constructor Detail |
public Thread(int ID, String description, Date timeStarted, Date timeEnded, String result, int status)
ID
- The ID of the threaddescription
- User-friendly description of what the thread is doingtimeStarted
- timeEnded
- result
- User-friendly description of the thread's progresspublic Thread(ThreadedUserAction action)
Thread(int, String, Date, Date, String, int)
, but it pulls
its parameters from a ThreadedUserAction
action
- The action to get the thread's parameters fromMethod Detail |
public boolean isContainer()
public void setDescription(String description)
description
- The description to set.public String getDescription()
public void setTimeStarted(Date timeStarted)
timeStarted
- The timeStarted to set.public Date getTimeStarted()
public void setTimeEnded(Date timeEnded)
timeEnded
- The timeEnded to set.public Date getTimeEnded()
public boolean isFinished()
public void setResult(String result)
result
- The result to set.public String getResult()
public int getID()
public Integer getBoxedID()
public void setStatus(int status)
status
- The status to set.public int getStatus()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |