| |
|
| java.lang.Object de.anomic.yacy.yacySeed
yacySeed | public class yacySeed (Code) | | |
Method Summary | |
public static String | b256Hash2b64Hash(byte[] b256Hash) | public static byte[] | b64Hash2b256Hash(String b64Hash) | public static String | b64Hash2hexHash(String b64Hash) | public static String | b64Hash2octalHash(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 Object | clone() | final public static double | dhtDistance(String from, String to) | public double | dhtPosition() | public static double | dhtPosition(String ahash) | public static yacySeed | genLocalSeed(plasmaSwitchboard sb) | public static yacySeed | genRemoteSeed(String seedStr, String key, boolean properTest) | final public String | genSeedStr(String key) | final public synchronized String | genSeedStr(char method, String key) | final public String | get(String key, String dflt) Get a value from the peer's DNA (its set of peer defining values, e.g. | final public int | getAge() | final public String | getClusterAddress() If this seed is part of a cluster, the peer has probably the
object set to
a local IP. | final public boolean | getFlagAcceptCitationReference() | final public boolean | getFlagAcceptRemoteCrawl() | final public boolean | getFlagAcceptRemoteIndex() | final public boolean | getFlagDirectConnect() | final public String | getHexHash() | final public String | getIP() | final public InetAddress | getInetAddress() | final public String | getLastSeenString() | final public long | getLastSeenUTC() | final public long | getLinkCount() | final public long | getLong(String key, long dflt) | final public HashMap<String, String> | getMap() | final public String | getName() | public int | getPPM() | public Set<String> | getPeerTags() | final public String | getPeerType() | final public int | getPort() | final public String | getPublicAddress() | public double | getQPM() | final public long | getUTCDiff() To synchronize peer pings the local time differential must be included in calculations. | final public float | getVersion() The returned version follows this pattern: MAJORVERSION . | public static String | hexHash2b64Hash(String hexHash) | final public void | incRI(int count) | final public void | incRU(int count) | final public void | incSI(int count) | final public void | incSU(int count) | final public boolean | isActive() | public static boolean | isDefaultPeerName(String name) | final public boolean | isJunior() | final public boolean | isOnline() | final public boolean | isOnline(String type) | final public boolean | isPeerOK() | final public boolean | isPotential() | final public boolean | isPrincipal() | final public String | isProper() | final public boolean | isSenior() | final public boolean | isVirgin() | public static yacySeed | load(File f) | public static String | makeDefaultPeerName() | public boolean | matchPeerTags(Set<String> searchHashes) | final public String | orJunior() | final public String | orPrincipal() | final public String | orSenior() | final public String | orVirgin() | final public void | put(String key, String value) | public static String | randomHash() | final public void | save(File f) | public void | setAlternativeAddress(String ipport) | final public void | setFlagAcceptCitationReference(boolean value) | final public void | setFlagAcceptRemoteCrawl(boolean value) | final public void | setFlagAcceptRemoteIndex(boolean value) | final public void | setFlagDirectConnect(boolean value) | final public void | setIP() | final public void | setIP(String ip) | final public void | setJunior() | final public void | setLastSeenUTC() | public void | setPeerTags(Set<String> keys) | final public void | setPort(String port) | final public void | setPrincipal() | final public void | setSenior() | final public void | setUnusedFlags() | final public String | toString() |
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) | | |
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)
|
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
|
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)
|
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"
|
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)
|
VERSION | final public static String VERSION(Code) | | the applications version
|
available | public int available(Code) | | |
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) | | |
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 |
dhtPosition | public double dhtPosition()(Code) | | |
dhtPosition | public static double dhtPosition(String ahash)(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) | | |
getIP | final public String getIP()(Code) | | try to get the IP
the IP or null |
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) | | |
getPPM | public int getPPM()(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) | | |
isPeerOK | final public boolean isPeerOK()(Code) | | |
isPotential | final public boolean isPotential()(Code) | | |
isPrincipal | final public boolean isPrincipal()(Code) | | |
isSenior | final public boolean isSenior()(Code) | | |
isVirgin | final public boolean isVirgin()(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 |
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" |
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) | | |
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
|
setPrincipal | final public void setPrincipal()(Code) | | |
setSenior | final public void setSenior()(Code) | | |
setUnusedFlags | final public void setUnusedFlags()(Code) | | |
|
|
|