org.rhq.plugins.irc
Class IRCServerComponent

java.lang.Object
  extended by org.rhq.plugins.irc.IRCServerComponent
All Implemented Interfaces:
AvailabilityFacet, ResourceComponent, OperationFacet

public class IRCServerComponent
extends Object
implements ResourceComponent, OperationFacet

Author:
Greg Hinkle

Nested Class Summary
 class IRCServerComponent.Bot
           
static class IRCServerComponent.ChannelInfo
           
 
Constructor Summary
IRCServerComponent()
           
 
Method Summary
 AvailabilityType getAvailability()
          Return availability of this resource
 int getUserCount(String channel)
           
 OperationResult invokeOperation(String name, Configuration parameters)
           
 boolean isInChannel(String channel)
           
 void registerChannel(IRCChannelComponent channelComponent)
           
 void sendMessage(String channel, String message)
           
 void start(ResourceContext context)
          Start the resource connection
 void stop()
          Tear down the rescource connection
 void unregisterChannel(IRCChannelComponent channelComponent)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IRCServerComponent

public IRCServerComponent()
Method Detail

getAvailability

public AvailabilityType getAvailability()
Return availability of this resource

Specified by:
getAvailability in interface AvailabilityFacet
See Also:
AvailabilityFacet.getAvailability()

start

public void start(ResourceContext context)
           throws InvalidPluginConfigurationException,
                  Exception
Start the resource connection

Specified by:
start in interface ResourceComponent
Throws:
InvalidPluginConfigurationException
Exception
See Also:
ResourceComponent.start(org.rhq.core.pluginapi.inventory.ResourceContext)

registerChannel

public void registerChannel(IRCChannelComponent channelComponent)

unregisterChannel

public void unregisterChannel(IRCChannelComponent channelComponent)

isInChannel

public boolean isInChannel(String channel)

sendMessage

public void sendMessage(String channel,
                        String message)

invokeOperation

public OperationResult invokeOperation(String name,
                                       Configuration parameters)
                                throws InterruptedException,
                                       Exception
Specified by:
invokeOperation in interface OperationFacet
Throws:
InterruptedException
Exception

getUserCount

public int getUserCount(String channel)

stop

public void stop()
Tear down the rescource connection

Specified by:
stop in interface ResourceComponent
See Also:
ResourceComponent.stop()


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