public class NotificationTask extends Thread
Thread.State, Thread.UncaughtExceptionHandlerMAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description |
|---|
NotificationTask(NotificationManager notificationManager,
UserManager userManager,
long sendTime,
Map<String,String> someParams,
List<NotificationTask> siblings,
String autoNotify)
Constructor, initializes some information
|
| Modifier and Type | Method and Description |
|---|---|
Command[] |
getCommands()
getCommands
|
String |
getEmail()
getEmail
|
int |
getNotifyId()
Returns the unique id used to insert the row in the database for this
notification task.
|
long |
getSendTime()
getSendTime
|
String |
getTuiPin()
getTuiPin
|
User |
getUser()
getUser
|
boolean |
isStarted()
isStarted
|
void |
run()
run
|
void |
setAutoNotify(String autoNotify)
Sets the autoNotify info for the usersnotified table
|
void |
setCommands(Command[] commands)
This method will construct the command that will be issued to send the
actual page.
|
void |
setNoticeId(int anId)
Sets the group id that will be inserted into the row in notifications
table
|
void |
setUser(User aUser)
Sets the user that the page needs to be sent to.
|
void |
start()
start
|
String |
toString()
toString
|
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, stop, stop, suspend, yieldpublic NotificationTask(NotificationManager notificationManager, UserManager userManager, long sendTime, Map<String,String> someParams, List<NotificationTask> siblings, String autoNotify)
someParams - the parameters from
NotifynotificationManager - a NotificationManager object.userManager - a UserManager object.sendTime - a long.siblings - a List object.autoNotify - a String object.public String toString()
toString
public long getSendTime()
getSendTime
public int getNotifyId()
public void setUser(User aUser)
aUser - the user infopublic void setAutoNotify(String autoNotify)
autoNotify - a String object.public void setNoticeId(int anId)
anId - the group id to set for the rowpublic void setCommands(Command[] commands)
commands - the commands to call at the console.public String getEmail() throws IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
getEmail
String object.IOException - if any.org.exolab.castor.xml.MarshalException - if any.org.exolab.castor.xml.ValidationException - if any.public String getTuiPin() throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException, IOException
getTuiPin
String object.org.exolab.castor.xml.MarshalException - if any.org.exolab.castor.xml.ValidationException - if any.IOException - if any.public boolean isStarted()
isStarted
Copyright © 2017. All rights reserved.