Package net.yacy.peers

Examples of net.yacy.peers.Seed


                        });
                score = 5 + timeFactor(record.created());
            }

            if (record.category().equals(NewsPool.CATEGORY_WIKI_UPDATE)) {
                Seed seed = sb.peers.getConnected(record.originator());
                if (seed == null) seed = sb.peers.getDisconnected(record.originator());
                if (seed != null) {
                    url = "http://" + seed.getPublicAddress() + "/Wiki.html?page=" + record.attribute("page", "");
                    entry = rowdef.newEntry(new byte[][]{
                                UTF8.getBytes(url),
                                UTF8.getBytes(record.attribute("author", "Anonymous") + ": " + record.attribute("page", "")),
                                UTF8.getBytes("Wiki Update: " + record.attribute("description", "")),
                                UTF8.getBytes(record.id())
                        });
                    score = 4 + timeFactor(record.created());
                }
            }

            if (record.category().equals(NewsPool.CATEGORY_BLOG_ADD)) {
                Seed seed = sb.peers.getConnected(record.originator());
                if (seed == null) seed = sb.peers.getDisconnected(record.originator());
                if (seed != null) {
                    url = "http://" + seed.getPublicAddress() + "/Blog.html?page=" + record.attribute("page", "");
                    entry = rowdef.newEntry(new byte[][]{
                            UTF8.getBytes(url),
                            UTF8.getBytes(record.attribute("author", "Anonymous") + ": " + record.attribute("page", "")),
                            UTF8.getBytes("Blog Entry: " + record.attribute("subject", "")),
                            UTF8.getBytes(record.id())
View Full Code Here

TOP

Related Classes of net.yacy.peers.Seed

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.