org.rhq.enterprise.server.plugins.alertIrc
Class IrcAlertComponent

java.lang.Object
  extended by org.rhq.enterprise.server.plugins.alertIrc.IrcAlertComponent
All Implemented Interfaces:
ServerPluginComponent

public class IrcAlertComponent
extends java.lang.Object
implements ServerPluginComponent

Persistent component used to send alert notifications via IRC. This component is responsible for establishing and maintaining the IRC session as well as sending messages.

Author:
Justin Harris

Constructor Summary
IrcAlertComponent()
           
 
Method Summary
 void initialize(ServerPluginContext context)
           
 void sendIrcMessage(java.lang.String channel, java.lang.String message)
          Sends a message to the specified channel, or all currently joined channels if the channel is not supplied.
 void shutdown()
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IrcAlertComponent

public IrcAlertComponent()
Method Detail

initialize

public void initialize(ServerPluginContext context)
                throws java.lang.Exception
Specified by:
initialize in interface ServerPluginComponent
Throws:
java.lang.Exception

start

public void start()
Specified by:
start in interface ServerPluginComponent

stop

public void stop()
Specified by:
stop in interface ServerPluginComponent

shutdown

public void shutdown()
Specified by:
shutdown in interface ServerPluginComponent

sendIrcMessage

public void sendIrcMessage(java.lang.String channel,
                           java.lang.String message)
Sends a message to the specified channel, or all currently joined channels if the channel is not supplied.

Parameters:
channel - the channel to send the message to, or null if the message should be sent to all currently joined channels
message -


Copyright © 2008-2009 Red Hat, Inc.. All Rights Reserved.