org.rhq.plugins.irc
Class IRCChannelComponent

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

public class IRCChannelComponent
extends Object
implements ResourceComponent<IRCServerComponent>, MeasurementFacet, OperationFacet

Author:
Greg Hinkle

Constructor Summary
IRCChannelComponent()
           
 
Method Summary
 void acceptMessage(String sender, String login, String hostname, String message)
           
 AvailabilityType getAvailability()
          Return availability of this resource
 String getChannel()
           
 void getValues(MeasurementReport report, Set<MeasurementScheduleRequest> metrics)
          Gather measurement data
 OperationResult invokeOperation(String name, Configuration params)
          Invokes the passed operation on the managed resource
 void start(ResourceContext<IRCServerComponent> context)
          Start the resource connection
 void stop()
          Tear down the rescource connection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IRCChannelComponent

public IRCChannelComponent()
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<IRCServerComponent> context)
           throws InvalidPluginConfigurationException,
                  Exception
Start the resource connection

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

stop

public void stop()
Tear down the rescource connection

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

getValues

public void getValues(MeasurementReport report,
                      Set<MeasurementScheduleRequest> metrics)
               throws Exception
Gather measurement data

Specified by:
getValues in interface MeasurementFacet
Throws:
Exception
See Also:
MeasurementFacet.getValues(org.rhq.core.domain.measurement.MeasurementReport, java.util.Set)

invokeOperation

public OperationResult invokeOperation(String name,
                                       Configuration params)
                                throws Exception
Invokes the passed operation on the managed resource

Specified by:
invokeOperation in interface OperationFacet
Parameters:
name - Name of the operation
params - The method parameters
Returns:
An operation result
Throws:
Exception
See Also:
OperationFacet

getChannel

public String getChannel()

acceptMessage

public void acceptMessage(String sender,
                          String login,
                          String hostname,
                          String message)


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