org.rhq.plugins.twitter
Class TwitterEventPoller

java.lang.Object
  extended by org.rhq.plugins.twitter.TwitterEventPoller
All Implemented Interfaces:
EventPoller

public class TwitterEventPoller
extends Object
implements EventPoller

Poller class to feed Twitter Status information into the Event subsystem.

Author:
Heiko W. Rupp

Constructor Summary
TwitterEventPoller(String eventType)
           
 
Method Summary
 void addStatuses(List<twitter4j.Status> statuses)
          Add statuses to the list of events to return
 void addTweets(List<twitter4j.Tweet> tweets)
          Add tweets to the list of events to return
 String getEventType()
          Return the type of events we handle
 Set<Event> poll()
          Return collected events
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TwitterEventPoller

public TwitterEventPoller(String eventType)
Method Detail

getEventType

public String getEventType()
Return the type of events we handle

Specified by:
getEventType in interface EventPoller
See Also:
EventPoller.getEventType()

poll

public Set<Event> poll()
Return collected events

Specified by:
poll in interface EventPoller
See Also:
EventPoller.poll()

addStatuses

public void addStatuses(List<twitter4j.Status> statuses)
Add statuses to the list of events to return

Parameters:
statuses -

addTweets

public void addTweets(List<twitter4j.Tweet> tweets)
Add tweets to the list of events to return

Parameters:
tweets -


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