Java Doc for yacySeed.java in  » Search-Engine » yacy » de » anomic » yacy » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Search Engine » yacy » de.anomic.yacy 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   de.anomic.yacy.yacySeed

yacySeed
public class yacySeed (Code)


Field Summary
final public static  StringBDATE
    
final public static  StringCCOUNT
    
final public static  StringCRTCNT
    
final public static  StringCRWCNT
    
final public static  StringDFLT_NETWORK_GROUP
    
final public static  StringDFLT_NETWORK_UNIT
    
final public static  StringFLAGS
    
final public static  StringFLAGSZERO
    
final public static  StringHASH
    
final public static  StringICOUNT
    
final public static  StringINDEX_IN
    
final public static  StringINDEX_OUT
    
final public static  StringIP
    
final public static  StringIPTYPE
    
final public static  StringISPEED
    
final public static  StringLASTSEEN
    
final public static  StringLCOUNT
    
final public static  StringNAME
    
final public static  StringNCOUNT
    
final public static  StringPEERTAGS
    
final public static  StringPEERTYPE
    
final public static  StringPEERTYPE_JUNIOR
    
final public static  StringPEERTYPE_PRINCIPAL
    
final public static  StringPEERTYPE_SENIOR
    
final public static  StringPEERTYPE_VIRGIN
    
final public static  StringPORT
    
final public static  StringRCOUNT
    
final public static  StringRSPEED
    
final public static  StringSCOUNT
    
final public static  StringUPTIME
    
final public static  StringURL_IN
    
final public static  StringURL_OUT
    
final public static  StringUSPEED
    
final public static  StringUTC
    
final public static  StringVERSION
    
final public static  StringYOURTYPE
    
final public static  StringZERO
    
public  StringalternativeIP
    
public  intavailable
    
public  Stringhash
    
final public static  longmaxDHTDistance
    
final public static  intmaxsize
    
final public static  longminDHTNumber
    
public  intselectscore
    

Constructor Summary
public  yacySeed(String theHash, HashMap<String, String> theDna)
    
public  yacySeed(String theHash)
    

Method Summary
public static  Stringb256Hash2b64Hash(byte[] b256Hash)
    
public static  byte[]b64Hash2b256Hash(String b64Hash)
    
public static  Stringb64Hash2hexHash(String b64Hash)
    
public static  Stringb64Hash2octalHash(String b64Hash)
     12 * 6 bit = 72 bit = 24 characters octal-hash

Octal hashes are used for cache-dumps that are DHT-ready

Cause: the natural order of octal hashes are the same as the b64-order of b64Hashes.

final public  Objectclone()
    
final public static  doubledhtDistance(String from, String to)
    
public  doubledhtPosition()
    
public static  doubledhtPosition(String ahash)
    
public static  yacySeedgenLocalSeed(plasmaSwitchboard sb)
    
public static  yacySeedgenRemoteSeed(String seedStr, String key, boolean properTest)
    
final public  StringgenSeedStr(String key)
    
final public synchronized  StringgenSeedStr(char method, String key)
    
final public  Stringget(String key, String dflt)
     Get a value from the peer's DNA (its set of peer defining values, e.g.
final public  intgetAge()
    
final public  StringgetClusterAddress()
     If this seed is part of a cluster, the peer has probably the object set to a local IP.
final public  booleangetFlagAcceptCitationReference()
    
final public  booleangetFlagAcceptRemoteCrawl()
    
final public  booleangetFlagAcceptRemoteIndex()
    
final public  booleangetFlagDirectConnect()
    
final public  StringgetHexHash()
    
final public  StringgetIP()
    
final public  InetAddressgetInetAddress()
    
final public  StringgetLastSeenString()
    
final public  longgetLastSeenUTC()
    
final public  longgetLinkCount()
    
final public  longgetLong(String key, long dflt)
    
final public  HashMap<String, String>getMap()
    
final public  StringgetName()
    
public  intgetPPM()
    
public  Set<String>getPeerTags()
    
final public  StringgetPeerType()
    
final public  intgetPort()
    
final public  StringgetPublicAddress()
    
public  doublegetQPM()
    
final public  longgetUTCDiff()
     To synchronize peer pings the local time differential must be included in calculations.
final public  floatgetVersion()
     The returned version follows this pattern: MAJORVERSION .
public static  StringhexHash2b64Hash(String hexHash)
    
final public  voidincRI(int count)
    
final public  voidincRU(int count)
    
final public  voidincSI(int count)
    
final public  voidincSU(int count)
    
final public  booleanisActive()
    
public static  booleanisDefaultPeerName(String name)
    
final public  booleanisJunior()
    
final public  booleanisOnline()
    
final public  booleanisOnline(String type)
    
final public  booleanisPeerOK()
    
final public  booleanisPotential()
    
final public  booleanisPrincipal()
    
final public  StringisProper()
    
final public  booleanisSenior()
    
final public  booleanisVirgin()
    
public static  yacySeedload(File f)
    
public static  StringmakeDefaultPeerName()
    
public  booleanmatchPeerTags(Set<String> searchHashes)
    
final public  StringorJunior()
    
final public  StringorPrincipal()
    
final public  StringorSenior()
    
final public  StringorVirgin()
    
final public  voidput(String key, String value)
    
public static  StringrandomHash()
    
final public  voidsave(File f)
    
public  voidsetAlternativeAddress(String ipport)
    
final public  voidsetFlagAcceptCitationReference(boolean value)
    
final public  voidsetFlagAcceptRemoteCrawl(boolean value)
    
final public  voidsetFlagAcceptRemoteIndex(boolean value)
    
final public  voidsetFlagDirectConnect(boolean value)
    
final public  voidsetIP()
    
final public  voidsetIP(String ip)
    
final public  voidsetJunior()
    
final public  voidsetLastSeenUTC()
    
public  voidsetPeerTags(Set<String> keys)
    
final public  voidsetPort(String port)
    
final public  voidsetPrincipal()
    
final public  voidsetSenior()
    
final public  voidsetUnusedFlags()
    
final public  StringtoString()
    

Field Detail
BDATE
final public static String BDATE(Code)
Birthday - first startup



CCOUNT
final public static String CCOUNT(Code)
the number of clients that the peer connects (connects/hour as double)



CRTCNT
final public static String CRTCNT(Code)
Citation Rank (Other) - Count



CRWCNT
final public static String CRWCNT(Code)
Citation Rank (Own) - Count



DFLT_NETWORK_GROUP
final public static String DFLT_NETWORK_GROUP(Code)



DFLT_NETWORK_UNIT
final public static String DFLT_NETWORK_UNIT(Code)



FLAGS
final public static String FLAGS(Code)



FLAGSZERO
final public static String FLAGSZERO(Code)



HASH
final public static String HASH(Code)



ICOUNT
final public static String ICOUNT(Code)
the number of words the peer has indexed (as it says)



INDEX_IN
final public static String INDEX_IN(Code)
substance "rI" (received index/words)



INDEX_OUT
final public static String INDEX_OUT(Code)
substance "sI" (send index/words)



IP
final public static String IP(Code)



IPTYPE
final public static String IPTYPE(Code)
static/dynamic (if the IP changes often for any reason)



ISPEED
final public static String ISPEED(Code)
the speed of indexing (pages/minute) of the peer



LASTSEEN
final public static String LASTSEEN(Code)



LCOUNT
final public static String LCOUNT(Code)
the number of links that the peer has stored (LURL's)



NAME
final public static String NAME(Code)
the name of the peer (user-set)



NCOUNT
final public static String NCOUNT(Code)
the number of links that the peer has noticed, but not loaded (NURL's)



PEERTAGS
final public static String PEERTAGS(Code)



PEERTYPE
final public static String PEERTYPE(Code)
substance "PeerType"



PEERTYPE_JUNIOR
final public static String PEERTYPE_JUNIOR(Code)
substance "junior"



PEERTYPE_PRINCIPAL
final public static String PEERTYPE_PRINCIPAL(Code)
substance "principal"



PEERTYPE_SENIOR
final public static String PEERTYPE_SENIOR(Code)
substance "senior"



PEERTYPE_VIRGIN
final public static String PEERTYPE_VIRGIN(Code)
substance "virgin"



PORT
final public static String PORT(Code)



RCOUNT
final public static String RCOUNT(Code)
the number of links that the peer provides for remote crawls (ZURL's)



RSPEED
final public static String RSPEED(Code)
the speed of retrieval (queries/minute) of the peer



SCOUNT
final public static String SCOUNT(Code)
the number of seeds that the peer has stored



UPTIME
final public static String UPTIME(Code)
the number of minutes that the peer is up in minutes/day (moving average MA30)



URL_IN
final public static String URL_IN(Code)
substance "rU" (received URLs)



URL_OUT
final public static String URL_OUT(Code)
substance "sU" (send URLs)



USPEED
final public static String USPEED(Code)



UTC
final public static String UTC(Code)
UTC-Offset



VERSION
final public static String VERSION(Code)
the applications version



YOURTYPE
final public static String YOURTYPE(Code)



ZERO
final public static String ZERO(Code)
zero-value



alternativeIP
public String alternativeIP(Code)



available
public int available(Code)



hash
public String hash(Code)
the peer-hash



maxDHTDistance
final public static long maxDHTDistance(Code)



maxsize
final public static int maxsize(Code)



minDHTNumber
final public static long minDHTNumber(Code)



selectscore
public int selectscore(Code)




Constructor Detail
yacySeed
public yacySeed(String theHash, HashMap<String, String> theDna)(Code)



yacySeed
public yacySeed(String theHash)(Code)




Method Detail
b256Hash2b64Hash
public static String b256Hash2b64Hash(byte[] b256Hash)(Code)

Parameters:
  b256Hash - a base256 hash - normal byte number system the base64 representation of the given base256 hash



b64Hash2b256Hash
public static byte[] b64Hash2b256Hash(String b64Hash)(Code)
12 * 6 bit = 72 bit = 9 byte
Parameters:
  b64Hash - a base64 hash returns a base256 - a byte - representation of the given base64 hash



b64Hash2hexHash
public static String b64Hash2hexHash(String b64Hash)(Code)
12 * 6 bit = 72 bit = 18 characters hex-hash
Parameters:
  b64Hash - a base64 hash the hexadecimal representation of the given base64 hash



b64Hash2octalHash
public static String b64Hash2octalHash(String b64Hash)(Code)
12 * 6 bit = 72 bit = 24 characters octal-hash

Octal hashes are used for cache-dumps that are DHT-ready

Cause: the natural order of octal hashes are the same as the b64-order of b64Hashes. a hexhash cannot be used in such cases, and b64Hashes are not appropriate for file names


Parameters:
  b64Hash - a base64 hash the octal representation of the given base64 hash



clone
final public Object clone()(Code)



dhtDistance
final public static double dhtDistance(String from, String to)(Code)



dhtPosition
public double dhtPosition()(Code)



dhtPosition
public static double dhtPosition(String ahash)(Code)



genLocalSeed
public static yacySeed genLocalSeed(plasmaSwitchboard sb)(Code)



genRemoteSeed
public static yacySeed genRemoteSeed(String seedStr, String key, boolean properTest)(Code)



genSeedStr
final public String genSeedStr(String key)(Code)



genSeedStr
final public synchronized String genSeedStr(char method, String key)(Code)



get
final public String get(String key, String dflt)(Code)
Get a value from the peer's DNA (its set of peer defining values, e.g. IP, name, version, ...)
Parameters:
  key - the key for the value to fetch
Parameters:
  dflt - the default value



getAge
final public int getAge()(Code)
the age of the seed in number of days



getClusterAddress
final public String getClusterAddress()(Code)
If this seed is part of a cluster, the peer has probably the object set to a local IP. If this is present and the public IP of this peer is identical to the public IP of the own seed, construct an address using this IP; otherwise return the public address
See Also:   yacySeed.getPublicAddress() the alternative IP:port if present, else the public address



getFlagAcceptCitationReference
final public boolean getFlagAcceptCitationReference()(Code)



getFlagAcceptRemoteCrawl
final public boolean getFlagAcceptRemoteCrawl()(Code)



getFlagAcceptRemoteIndex
final public boolean getFlagAcceptRemoteIndex()(Code)



getFlagDirectConnect
final public boolean getFlagDirectConnect()(Code)



getHexHash
final public String getHexHash()(Code)



getIP
final public String getIP()(Code)
try to get the IP
the IP or null



getInetAddress
final public InetAddress getInetAddress()(Code)
the IP address of the peer represented by this yacySeed object as InetAddress



getLastSeenString
final public String getLastSeenString()(Code)

See Also:   yacySeed.getLastSeenUTC() the last seen value as string representation in the following format: YearMonthDayHoursMinutesSecondsor 20040101000000 if not present



getLastSeenUTC
final public long getLastSeenUTC()(Code)
the last seen time converted to UTC in milliseconds



getLinkCount
final public long getLinkCount()(Code)



getLong
final public long getLong(String key, long dflt)(Code)



getMap
final public HashMap<String, String> getMap()(Code)
the DNA-map of this peer



getName
final public String getName()(Code)



getPPM
public int getPPM()(Code)



getPeerTags
public Set<String> getPeerTags()(Code)



getPeerType
final public String getPeerType()(Code)
try to get the peertype
the peertype or null



getPort
final public int getPort()(Code)
the portnumber of this seed or -1 if not present



getPublicAddress
final public String getPublicAddress()(Code)
the public address of the peer as IP:port string or null if no valid values foreither the IP or the port could be retrieved from this yacySeed object



getQPM
public double getQPM()(Code)



getUTCDiff
final public long getUTCDiff()(Code)
To synchronize peer pings the local time differential must be included in calculations. the difference to UTC (universal time coordinated) in milliseconds of this yacySeed,the difference to +0130 if not present or 0 if an error occured during conversion



getVersion
final public float getVersion()(Code)
The returned version follows this pattern: MAJORVERSION . MINORVERSION 0 SVN REVISION the YaCy version of this peer as a float or 0 if no valid value could be retrievedfrom this yacySeed object



hexHash2b64Hash
public static String hexHash2b64Hash(String hexHash)(Code)

Parameters:
  hexHash - a hexadecimal hash the base64 representation of the given hex hash



incRI
final public void incRI(int count)(Code)



incRU
final public void incRU(int count)(Code)



incSI
final public void incSI(int count)(Code)



incSU
final public void incSU(int count)(Code)



isActive
final public boolean isActive()(Code)



isDefaultPeerName
public static boolean isDefaultPeerName(String name)(Code)
Checks for the static fragments of a generated default peer name, such as the string 'dpn'
See Also:   yacySeed.makeDefaultPeerName()
Parameters:
  name - the peer name to check for default peer name compliance whether the given peer name may be a default generated peer name



isJunior
final public boolean isJunior()(Code)



isOnline
final public boolean isOnline()(Code)



isOnline
final public boolean isOnline(String type)(Code)



isPeerOK
final public boolean isPeerOK()(Code)



isPotential
final public boolean isPotential()(Code)



isPrincipal
final public boolean isPrincipal()(Code)



isProper
final public String isProper()(Code)



isSenior
final public boolean isSenior()(Code)



isVirgin
final public boolean isVirgin()(Code)



load
public static yacySeed load(File f) throws IOException(Code)



makeDefaultPeerName
public static String makeDefaultPeerName()(Code)
Generate a default peer name assembled of the following fragments in order: a default peer name following the above pattern whereas dots, underscores and colons are replaced by minus signs



matchPeerTags
public boolean matchPeerTags(Set<String> searchHashes)(Code)



orJunior
final public String orJunior()(Code)
try to get the peertype
the peertype or "junior"



orPrincipal
final public String orPrincipal()(Code)
try to get the peertype
the peertype or "principal"



orSenior
final public String orSenior()(Code)
try to get the peertype
the peertype or "senior"



orVirgin
final public String orVirgin()(Code)
try to get the peertype
the peertype or "Virgin"



put
final public void put(String key, String value)(Code)



randomHash
public static String randomHash()(Code)



save
final public void save(File f) throws IOException(Code)



setAlternativeAddress
public void setAlternativeAddress(String ipport)(Code)
used when doing routing within a cluster; this can assign a ip and a port that is used instead the address stored in the seed DNA



setFlagAcceptCitationReference
final public void setFlagAcceptCitationReference(boolean value)(Code)



setFlagAcceptRemoteCrawl
final public void setFlagAcceptRemoteCrawl(boolean value)(Code)



setFlagAcceptRemoteIndex
final public void setFlagAcceptRemoteIndex(boolean value)(Code)



setFlagDirectConnect
final public void setFlagDirectConnect(boolean value)(Code)



setIP
final public void setIP()(Code)



setIP
final public void setIP(String ip)(Code)



setJunior
final public void setJunior()(Code)



setLastSeenUTC
final public void setLastSeenUTC()(Code)
puts the current time into the lastseen field and cares about the time differential to UTC



setPeerTags
public void setPeerTags(Set<String> keys)(Code)



setPort
final public void setPort(String port)(Code)



setPrincipal
final public void setPrincipal()(Code)



setSenior
final public void setSenior()(Code)



setUnusedFlags
final public void setUnusedFlags()(Code)



toString
final public String toString()(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.