|
![]() |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
uk.org.iscream.cms.server.client.AlerterSkeleton
uk.org.iscream.cms.server.client.alerters.IRC__Alerter
This Alert sends an IRC message. Clean shutdown could be achieved by stopping the run() method in the IRCBot inner class.
Nested Class Summary | |
(package private) class |
IRC__Alerter.IRCBot
|
Field Summary | |
private boolean |
_active
Are we "active" |
private int |
_alertCount
Number of alerts sent |
private int |
_ignoredCount
Number of alerts ignored when in "stopped" mode |
private IRC__Alerter.IRCBot |
_ircbot
A reference to the IRCBot |
private String |
_lastAlert
The last alert that was sent |
private long |
_lastAlertTime
The time of the last alert |
protected Logger |
_logger
This holds a reference to the system logger that is being used. |
private String |
_name
This is the friendly identifier of the component this class is running in. |
private long |
_startTime
Time of IRCBot startup |
String |
DESC
A description of this alerter |
String |
REVISION
The current CVS revision of this class |
Fields inherited from class uk.org.iscream.cms.server.client.AlerterSkeleton |
_cp, _qID, _running, DEFAULT_LEVEL, NOT_CONFIGURED |
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
IRC__Alerter()
|
Method Summary | |
String |
getDescription()
Return the String representation of what the alerter does |
protected String |
getFName()
Returns the "friendly" name of this class. |
void |
sendAlert(Alert alert)
Implements the abstract method from the skeleton class. |
String |
toString()
Overrides the Object.toString()
method to provide clean logging (every class should have this). |
Methods inherited from class uk.org.iscream.cms.server.client.AlerterSkeleton |
getQueue, getQueueId, processAlertMessage, run |
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, yield |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public final String REVISION
public final String DESC
private IRC__Alerter.IRCBot _ircbot
private boolean _active
private String _lastAlert
private long _lastAlertTime
private int _alertCount
private int _ignoredCount
private long _startTime
protected Logger _logger
private String _name
Constructor Detail |
public IRC__Alerter()
Method Detail |
public void sendAlert(Alert alert)
sendAlert
in class AlerterSkeleton
alert
- the alert to sendpublic String toString()
Object.toString()
method to provide clean logging (every class should have this).
This uses the uk.org.iscream.cms.util.NameFormat class
to format the toString()
public String getDescription()
getDescription
in interface PluginAlerter
getDescription
in class AlerterSkeleton
protected String getFName()
getFName
in class AlerterSkeleton
|
![]() |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |