Package org.sonews.feed
Klasse PullFeeder
java.lang.Object
org.sonews.daemon.DaemonRunner
org.sonews.feed.PullFeeder
- Alle implementierten Schnittstellen:
Runnable,DaemonRunnable
The PullFeeder class regularily checks another Newsserver for new messages.
- Seit:
- sonews/0.5.0
- Autor:
- Christian Lins
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibungprivate final Map<Subscription, Integer> private BufferedReaderprivate final org.slf4j.Loggerprivate PrintWriterprivate Socketprivate final Set<Subscription> Von Klasse geerbte Felder org.sonews.daemon.DaemonRunner
daemon -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprivate voidprivate intchangeGroup(String groupName) Changes to the given group and returns its high mark.private voidprivate voidprivate voidgetAndRepostArticle(Storage storage, Subscription sub, String messageID) over(int start, int end) Uses the OVER or XOVER command to get a list of message overviews that may be unknown to this feeder and are about to be peered.protected voidpull(Subscription sub) voidrun()Von Klasse geerbte Methoden org.sonews.daemon.DaemonRunner
setDaemonVon Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitVon Schnittstelle geerbte Methoden org.sonews.daemon.DaemonRunnable
dispose
-
Felddetails
-
highMarks
-
in
-
out
-
socket
-
subscriptions
-
log
private final org.slf4j.Logger log
-
-
Konstruktordetails
-
PullFeeder
PullFeeder()
-
-
Methodendetails
-
addSubscription
-
changeGroup
Changes to the given group and returns its high mark.- Parameter:
groupName-- Gibt zurück:
- Löst aus:
IOException
-
connectTo
- Löst aus:
IOExceptionUnknownHostException
-
disconnect
- Löst aus:
IOException
-
getAndRepostArticle
-
over
Uses the OVER or XOVER command to get a list of message overviews that may be unknown to this feeder and are about to be peered.- Parameter:
start-end-- Gibt zurück:
- A list of message ids with potentially interesting messages.
- Löst aus:
IOException
-
pull
-
run
public void run()
-