org.rhq.plugins.irc
Class IRCServerComponent
java.lang.Object
org.rhq.plugins.irc.IRCServerComponent
- All Implemented Interfaces:
- AvailabilityFacet, ResourceComponent, OperationFacet
public class IRCServerComponent
- extends Object
- implements ResourceComponent, OperationFacet
- Author:
- Greg Hinkle
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IRCServerComponent
public IRCServerComponent()
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.