public final class PSThreadStatus extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
PSThreadStatus.Status
List of possible status.
|
Constructor and Description |
---|
PSThreadStatus(String threadid) |
Modifier and Type | Method and Description |
---|---|
void |
addMessage(String msg) |
Long |
getGroupID() |
String |
getLastMessage() |
List<String> |
getMessages() |
PSThreadStatus.Status |
getStatus() |
String |
getThreadID() |
String |
getThreadName() |
String |
getUsername() |
boolean |
hasFailed() |
boolean |
isCompleted() |
void |
setGroupID(Long groupid) |
void |
setName(String n) |
void |
setStatus(PSThreadStatus.Status thestatus) |
void |
setStatus(String thestatus) |
void |
setUsername(String uname) |
public PSThreadStatus(String threadid)
threadid
- the ID of the process threadpublic void setGroupID(Long groupid)
groupid
- the context group IDpublic void setName(String n)
n
- the thread namepublic void setUsername(String uname)
uname
- The author's usernamepublic void setStatus(String thestatus)
thestatus
- the thread statuspublic void setStatus(PSThreadStatus.Status thestatus)
thestatus
- the thread statuspublic void addMessage(String msg)
msg
- a new message to addpublic String getThreadID()
public Long getGroupID()
public String getThreadName()
public String getUsername()
public PSThreadStatus.Status getStatus()
public boolean isCompleted()
true
if the thread is finished (success, failed or cancelled)public boolean hasFailed()
true
if the thread has failedpublic String getLastMessage()
null
otherwiseCopyright © 2016 Allette Systems. All rights reserved.