|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Thread
org.opennms.netmgt.notifd.NotificationTask
public class NotificationTask
This class holds all the data and logic for sending out a notification Each notification that is sent will be accompanied by a row in the notifications table. All notifications in a group will be identified with a common groupId number.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
Thread.State, Thread.UncaughtExceptionHandler |
| Field Summary |
|---|
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
NotificationTask(NotificationManager notificationManager,
UserManager userManager,
long sendTime,
Map<String,String> someParams,
List<NotificationTask> siblings,
String autoNotify)
Constructor, initializes some information |
|
| Method Summary | |
|---|---|
Command[] |
getCommands()
|
String |
getEmail()
|
int |
getNotifyId()
Returns the unique id used to insert the row in the database for this notification task. |
long |
getSendTime()
|
String |
getTuiPin()
|
User |
getUser()
|
boolean |
isStarted()
|
void |
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()
|
String |
toString()
|
| Methods inherited from class java.lang.Thread |
|---|
activeCount, checkAccess, 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, yield |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public NotificationTask(NotificationManager notificationManager,
UserManager userManager,
long sendTime,
Map<String,String> someParams,
List<NotificationTask> siblings,
String autoNotify)
someParams - the parameters from
Notify| Method Detail |
|---|
public String toString()
toString in class Threadpublic long getSendTime()
public int getNotifyId()
public void setUser(User aUser)
aUser - the user infopublic User getUser()
public void setAutoNotify(String autoNotify)
String - autoNotifypublic 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 Command[] getCommands()
public void run()
run in interface Runnablerun in class Thread
public String getEmail()
throws IOException,
org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
IOException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
public String getTuiPin()
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException,
IOException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
IOExceptionpublic void start()
start in class Threadpublic boolean isStarted()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||