亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? node.java

?? 一個對等計算發生器
?? JAVA
字號:
/***************************************************************************
 *                                                                         *
 *                                Node.java                                *
 *                            -------------------                          *
 *   date                 : 16.08.2004                                     *
 *   copyright            : (C) 2004/2005 Distributed and                  *
 *								Mobile Systems Group                       *
 *                              Lehrstuhl fuer Praktische Informatik       *
 *                              Universitaet Bamberg                       *
 *                              http://www.lspi.wiai.uni-bamberg.de/       *
 *   email                : sven.kaffille@wiai.uni-bamberg.de              *
 *   						karsten.loesing@wiai.uni-bamberg.de            *
 *                                                                         *
 *                                                                         *
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 *   A copy of the license can be found in the license.txt file supplied   *
 *   with this software or at: http://www.gnu.org/copyleft/gpl.html        *
 *                                                                         *
 ***************************************************************************/
package de.uniba.wiai.lspi.chord.com;

import java.util.List;
import java.util.Set;

import de.uniba.wiai.lspi.chord.data.ID;
import de.uniba.wiai.lspi.chord.data.URL;

/**
 * Provides methods which remote nodes can invoke.
 * 
 * @author Sven Kaffille, Karsten Loesing
 * @version 1.0.1
 * 
 * 21.03.2006 changed by sven. Node needs not to be Serializable as 
 * no instances of it are supposed to being serialized. 
 */
public abstract class Node {

	public final boolean equals(Object arg0) {
		if (arg0 == null || !(arg0 instanceof Node)) {
			return false;
		}
		return ((Node) arg0).nodeID.equals(this.nodeID);
	}

	public final int hashCode() {
		return this.nodeID.hashCode();
	}

	public String toString() {
		return "Node of type " + this.getClass().getSimpleName() + ", id = "
				+ this.nodeID.toString();
	}

	/**
	 * This is the id of this node. It has to be set by every implementation of
	 * this class!
	 */
	public ID nodeID;

	/**
	 * This is the url of this node. It has to be set by every implementation of
	 * this class!
	 */
	public URL nodeURL;

	/**
	 * Returns the ID of a node. Is invoked by remote nodes which do not know
	 * the ID of this node, yet. After invocation, the nodeID is remembered by
	 * the remote node, s.t. future invocations of getNodeID are unnecessary.
	 * 
	 * @return ID of a node.
	 * @throws CommunicationException
	 *             If something goes wrong when contacting the node.
	 * @uml.property name="nodeID"
	 */
	public abstract ID getNodeID() throws CommunicationException;

	/**
	 * Returns the Chord node which is responsible for the given key.
	 * 
	 * @param key
	 *            Key for which the successor is searched for.
	 * @return Responsible node.
	 * @throws CommunicationException
	 *             Thrown if an unresolvable communication failure occurs.
	 */
	public abstract Node findSuccessor(ID key) throws CommunicationException;

	/**
	 * Requests this node's predecessor in result[0] and successor list in
	 * result[1..length-1]. This method is invoked by another node which thinks
	 * it is this node's predecessor.
	 * 
	 * @param potentialPredecessor
	 * @return A list containing the predecessor at first position of the list
	 *         and the successors in the rest of the list.
	 * @throws CommunicationException
	 *             Thrown if an unresolvable communication failure occurs.
	 */
	public abstract List<Node> notify(Node potentialPredecessor)
			throws CommunicationException;

	/**
	 * Requests this node's predecessor, successor list and entries.
	 * 
	 * @param potentialPredecessor
	 *            Remote node which invokes this method
	 * @return References to predecessor and successors and the entries this
	 *         node will be responsible for.
	 * @throws CommunicationException
	 */
	public abstract RefsAndEntries notifyAndCopyEntries(
			Node potentialPredecessor) throws CommunicationException;

	/**
	 * Requests a sign of live. This method is invoked by another node which
	 * thinks it is this node's successor.
	 * 
	 * @throws CommunicationException
	 *             Thrown if an unresolvable communication failure occurs.
	 */
	public abstract void ping() throws CommunicationException;

	/**
	 * Stores the given object under the given ID.
	 * 
	 * @param entryToInsert
	 * @throws CommunicationException
	 *             Thrown if an unresolvable communication failure occurs.
	 */
	public abstract void insertEntry(Entry entryToInsert)
			throws CommunicationException;

	/**
	 * Inserts replicates of the given entries.
	 * 
	 * @param entries
	 *            The entries that are replicated.
	 * @throws CommunicationException
	 *             Thrown if an unresolvable communication failure occurs.
	 * 
	 */
	public abstract void insertReplicas(Set<Entry> entries)
			throws CommunicationException;

	/**
	 * Removes the given object from the list stored under the given ID.
	 * 
	 * @param entryToRemove
	 *            The entry to remove from the dht.
	 * @throws CommunicationException
	 *             Thrown if an unresolvable communication failure occurs.
	 */
	public abstract void removeEntry(Entry entryToRemove)
			throws CommunicationException;

	/**
	 * Removes replicates of the given entries.
	 * 
	 * @param sendingNode
	 *            ID of sending node; if entriesToRemove is empty, all replicas
	 *            with ID smaller than the sending node's ID are removed
	 * @param replicasToRemove
	 *            Replicas to remove; if empty, all replicas with ID smaller
	 *            than the sending node's ID are removed
	 * 
	 * @throws CommunicationException
	 *             Thrown if an unresolvable communication failure occurs.
	 */
	public abstract void removeReplicas(ID sendingNode,
			Set<Entry> replicasToRemove) throws CommunicationException;

	/**
	 * Returns all entries stored under the given ID.
	 * 
	 * @param id
	 * @return A {@link Set} of entries associated with <code>id</code>.
	 * @throws CommunicationException
	 *             Thrown if an unresolvable communication failure occurs.
	 */
	public abstract Set<Entry> retrieveEntries(ID id)
			throws CommunicationException;

	/**
	 * Inform a node that its predecessor leaves the network.
	 * 
	 * @param predecessor
	 * @throws CommunicationException
	 *             Thrown if an unresolvable communication failure occurs.
	 */
	public abstract void leavesNetwork(Node predecessor)
			throws CommunicationException;

	/**
	 * Closes the connection to the node.
	 */
	public abstract void disconnect();
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产欧美在线观看一区| 老司机免费视频一区二区三区| 亚洲永久精品大片| 国产高清视频一区| 欧美精品三级在线观看| 国产精品久99| 国产乱妇无码大片在线观看| 欧美色图12p| 亚洲欧洲性图库| 国内精品久久久久影院一蜜桃| 在线观看一区二区视频| 亚洲国产高清aⅴ视频| 九九精品视频在线看| 欧美日韩在线播放三区| 亚洲丝袜自拍清纯另类| 国产成人一级电影| 精品久久久久久最新网址| 午夜激情综合网| 日本道精品一区二区三区| 国产精品国产三级国产有无不卡| 韩国v欧美v日本v亚洲v| 日韩欧美中文一区| 免费久久精品视频| 欧美一区二区免费| 天天色综合成人网| 欧美丰满少妇xxxbbb| 亚洲第一福利一区| 欧美日本精品一区二区三区| 一区二区日韩av| 在线欧美一区二区| 亚洲国产视频一区| 欧美精品精品一区| 日韩精品亚洲一区二区三区免费| 欧美日韩一二三| 日韩专区中文字幕一区二区| 欧美乱熟臀69xxxxxx| 免费一级欧美片在线观看| 日韩亚洲欧美在线| 久草精品在线观看| 精品国产乱码久久久久久夜甘婷婷| 蜜桃视频在线一区| 久久―日本道色综合久久| 91视频在线观看| 一区二区三区中文在线| 在线影院国内精品| 日本午夜一本久久久综合| 日韩欧美一卡二卡| 国产真实乱偷精品视频免| 欧美韩日一区二区三区| 色综合一区二区| 国产精品99久久久久久久女警| 26uuu久久综合| 成人短视频下载| 夜夜操天天操亚洲| 日韩免费观看2025年上映的电影| 国产在线精品一区二区不卡了| 中文子幕无线码一区tr| 91成人国产精品| 久久av资源网| 亚洲天天做日日做天天谢日日欢 | 日韩一区和二区| 国产乱人伦精品一区二区在线观看| 国产精品免费观看视频| 欧美撒尿777hd撒尿| 国产一区二区在线视频| 亚洲精品一卡二卡| 精品乱码亚洲一区二区不卡| 成人99免费视频| 免费看日韩精品| 亚洲色图清纯唯美| 精品国产免费人成在线观看| 在线精品视频免费播放| 国产在线观看一区二区 | 亚洲国产精品ⅴa在线观看| 欧美在线观看一区| 国产精品一区一区三区| 午夜视频在线观看一区二区| 欧美高清在线精品一区| 欧美一级在线观看| 色综合视频一区二区三区高清| 精品一二线国产| 亚洲国产综合在线| 国产精品美女久久久久久久久 | 久久97超碰色| 亚洲综合在线视频| 国产精品久久久久aaaa樱花| 日韩欧美在线综合网| 欧美制服丝袜第一页| 懂色av一区二区三区免费观看| 首页国产欧美久久| 亚洲精品菠萝久久久久久久| 国产欧美日韩卡一| 欧美成人video| 欧美日韩精品一区二区三区四区| 9色porny自拍视频一区二区| 国内精品久久久久影院一蜜桃| 成人中文字幕在线| 日韩av不卡在线观看| 亚洲国产视频在线| 一二三区精品福利视频| 亚洲人成精品久久久久久| 欧美激情自拍偷拍| 国产三级欧美三级日产三级99| 日韩精品一区二区三区视频| 欧美一级一区二区| 69精品人人人人| 4438x成人网最大色成网站| 欧美熟乱第一页| 欧洲精品一区二区三区在线观看| 91捆绑美女网站| 91在线丨porny丨国产| 95精品视频在线| 色婷婷国产精品久久包臀| 日本黄色一区二区| 91黄视频在线| 欧美日韩精品免费| 91精品国产综合久久蜜臀 | 91免费视频网址| 91丨九色丨蝌蚪丨老版| 99re在线视频这里只有精品| av一区二区久久| 91免费看视频| 欧美午夜精品免费| 欧美老年两性高潮| 日韩三级视频在线看| 日韩欧美一区中文| 久久久99久久| 自拍偷在线精品自拍偷无码专区 | 91捆绑美女网站| 欧美日韩一区二区三区在线| 中文字幕第一区| 亚洲精品视频一区二区| 天天操天天色综合| 极品少妇xxxx精品少妇| 成人综合在线网站| 欧美特级限制片免费在线观看| 制服丝袜一区二区三区| 久久久久国产免费免费| 日韩伦理免费电影| 日产国产欧美视频一区精品| 国产在线精品一区二区三区不卡| 99天天综合性| 在线电影国产精品| 国产精品欧美一区喷水| 亚洲国产一区二区三区| 国产一区二区三区免费播放| 9i看片成人免费高清| 91精品国产综合久久久久| 久久久久久久免费视频了| 一区二区三区毛片| 久久se精品一区精品二区| 99久久99精品久久久久久| 在线播放日韩导航| 中文字幕一区二区三| 麻豆国产一区二区| 色噜噜狠狠成人中文综合| 欧美不卡一区二区三区| 有坂深雪av一区二区精品| 激情六月婷婷综合| 欧美日韩你懂得| 国产精品美日韩| 激情小说亚洲一区| 欧美日韩一区视频| 亚洲欧美怡红院| 韩国女主播成人在线观看| 欧美精品久久久久久久多人混战| 中文字幕电影一区| 九色综合狠狠综合久久| 欧美性猛片xxxx免费看久爱| 国产精品丝袜久久久久久app| 日本视频在线一区| 欧美体内she精高潮| 国产精品久久久久影院亚瑟| 久久激五月天综合精品| 欧美日韩mp4| 亚洲在线视频一区| 北岛玲一区二区三区四区| 久久女同精品一区二区| 日韩和的一区二区| 欧美性受xxxx| 亚洲精品网站在线观看| av不卡免费电影| 中文字幕一区二区三区精华液 | 欧美性大战久久久| 国产精品不卡一区二区三区| 国产一区二区三区电影在线观看 | 在线播放日韩导航| 洋洋成人永久网站入口| 91啪亚洲精品| 国产精品国产三级国产aⅴ入口| 国产精品中文有码| 久久久欧美精品sm网站| 国产毛片精品一区| 精品欧美乱码久久久久久| 另类小说欧美激情| 精品国产髙清在线看国产毛片| 免费观看在线色综合| 日韩视频免费观看高清在线视频| 蜜臀av亚洲一区中文字幕| 日韩一区二区在线看片|