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

? 歡迎來(lái)到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? chordretrievalfutureimpl.java

?? Chord package into p2psim
?? JAVA
字號(hào):
/***************************************************************************
 *                                                                         *
 *                      ChordRetrievalFutureImpl.java                      *
 *                            -------------------                          *
 *   date                 : 15.10.2005                                     *
 *   copyright            : (C) 2004-2008 Distributed and                  *
 *                              Mobile Systems Group                       *
 *                              Lehrstuhl fuer Praktische Informatik       *
 *                              Universitaet Bamberg                       *
 *                              http://www.uni-bamberg.de/pi/              *
 *   email                : sven.kaffille@uni-bamberg.de                   *
 *   			    		karsten.loesing@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.service.impl;

import java.io.Serializable;
import java.util.Set;
import java.util.concurrent.Executor;

import de.uniba.wiai.lspi.chord.service.Chord;
import de.uniba.wiai.lspi.chord.service.ChordRetrievalFuture;
import de.uniba.wiai.lspi.chord.service.Key;
import de.uniba.wiai.lspi.chord.service.ServiceException;

/**
 * Implementation of {@link ChordRetrievalFuture}.
 * 
 * @author sven
 * @version 1.0.5
 * 
 */
class ChordRetrievalFutureImpl extends ChordFutureImpl implements
		ChordRetrievalFuture {

	/**
	 * The result of the retrieval request associated with this.
	 */
	private Set<Serializable> result;

	/**
	 * The chord instance used for the operation that is associated with this. 
	 */
	private Chord chord = null;

	/**
	 * The key to retrieve the associated entries for. 
	 */
	private Key key = null;

	/**
	 * 
	 * @param c
	 * @param k
	 */
	private ChordRetrievalFutureImpl(Chord c, Key k) {
		super();
		this.chord = c;
		this.key = k;
	}

	/**
	 * 
	 * @param r
	 */
	final void setResult(Set<Serializable> r) {
		this.result = r;
	}

	/**
	 * @see ChordRetrievalFuture
	 */
	public final Set<Serializable> getResult() throws ServiceException,
			InterruptedException {
		synchronized (this) {
			while (!this.isDone()) {
				this.wait();
			}
		}
		Throwable t = this.getThrowable();
		if (t != null) {
			throw new ServiceException(t.getMessage(), t);
		}
		return this.result;
	}

	/**
	 * 
	 * @return Runnable that performs the retrieve operation. 
	 */
	private Runnable getTask() {
		return new RetrievalTask(this.chord, this.key);
	}

	/**
	 * Factory method to create an instance of this class. This method also
	 * prepares execution of the retrieval with help of the provided
	 * {@link Executor} <code>exec</code>.
	 * 
	 * @param exec
	 *            The executor that should asynchronously execute the retrieval
	 *            of entries with key <code>k</code>.
	 * @param c
	 *            The {@link Chord} instance to be used for retrieval.
	 * @param k
	 *            The {@link Key} for which the entries should be retrieved.
	 * @return An instance of this.
	 */
	final static ChordRetrievalFutureImpl create(Executor exec, Chord c, Key k) {
		if (c == null) {
			throw new IllegalArgumentException(
					"ChordRetrievalFuture: chord instance must not be null!");
		}
		if (k == null) {
			throw new IllegalArgumentException(
					"ChordRetrievalFuture: key must not be null!");
		}

		ChordRetrievalFutureImpl future = new ChordRetrievalFutureImpl(c, k);
		exec.execute(future.getTask());
		return future;
	}

	/**
	 * Runnable to execute the retrieval of entries associated with key from
	 * chord.
	 * 
	 * @author sven
	 * @version 1.0
	 */
	private class RetrievalTask implements Runnable {

		/**
		 * The chord instance used for the operation that is associated with this. 
		 */
		private Chord chord = null;

		/**
		 * The key to retrieve the associated entries for. 
		 */
		private Key key = null;
		
		/**
		 * @param chord
		 * @param key
		 */
		private RetrievalTask(Chord chord, Key key) {
			this.chord = chord; 
			this.key = key; 
		}

		public void run() {
			try {
				setResult(this.chord.retrieve(this.key));
			} catch (Throwable t) {
				setThrowable(t);
			}
			setIsDone();
		}
	}

}

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩精品色哟哟| 精品噜噜噜噜久久久久久久久试看| 日韩—二三区免费观看av| 亚洲精品中文在线| 一区二区三区不卡视频在线观看| 中文字幕在线不卡国产视频| 亚洲国产精品av| 综合久久久久久| 亚洲男同1069视频| 亚洲国产美女搞黄色| 亚洲成在线观看| 日韩av不卡一区二区| 久久精品国产久精国产爱| 久久国产精品99精品国产| 国产一区二区在线免费观看| 国产成人久久精品77777最新版本| 国产成人日日夜夜| 91久久奴性调教| 欧美妇女性影城| 国产午夜精品理论片a级大结局| 欧美国产精品劲爆| 亚洲一区二区三区自拍| 另类成人小视频在线| 成人一区在线观看| 91电影在线观看| 欧美网站一区二区| 久久这里都是精品| 国产欧美日韩三区| 日韩毛片高清在线播放| 亚洲不卡av一区二区三区| 免费人成在线不卡| 91亚洲精品久久久蜜桃网站| 欧美一区二区二区| 亚洲免费观看高清完整版在线观看熊| 日韩电影在线观看一区| 国产成人99久久亚洲综合精品| 91久久精品一区二区二区| 日韩免费成人网| 亚洲人精品一区| 国产一区二区三区在线观看精品| 91国偷自产一区二区开放时间 | 97久久精品人人澡人人爽| 欧美日韩一区二区欧美激情| 337p粉嫩大胆色噜噜噜噜亚洲 | 国产精品自产自拍| 欧美性淫爽ww久久久久无| 久久亚洲综合色| 午夜精品一区在线观看| 99r国产精品| 久久久蜜桃精品| 欧美aⅴ一区二区三区视频| 91理论电影在线观看| 国产亚洲精久久久久久| 亚洲妇熟xx妇色黄| 色哟哟欧美精品| 久久只精品国产| 久久精品久久精品| 欧美一区二区三区四区高清| 亚洲精品成人天堂一二三| 国产91精品欧美| 久久精品亚洲一区二区三区浴池| 国产成人综合精品三级| 精品少妇一区二区三区视频免付费| 一区二区三区av电影| 91亚洲精品久久久蜜桃网站| 欧美高清在线一区| 国产69精品久久777的优势| 久久综合999| 国产一区二区三区av电影| 欧美不卡123| 蜜桃精品视频在线| 日韩欧美aaaaaa| 激情综合五月婷婷| 久久久久久99久久久精品网站| 久久av资源网| 精品国产一区二区三区四区四 | 欧美激情一区二区在线| 国内一区二区在线| 国产亚洲欧美色| 国产成人福利片| 国产精品视频一区二区三区不卡| 国产精品综合在线视频| 日本一区二区三区在线观看| 国产99久久久国产精品潘金| 国产精品每日更新在线播放网址| 成人污视频在线观看| 综合分类小说区另类春色亚洲小说欧美| 风间由美一区二区av101| 欧美国产激情一区二区三区蜜月| 成人av电影在线网| 亚洲日本va午夜在线电影| 欧美主播一区二区三区美女| 午夜视频一区在线观看| 欧美一区二区成人6969| 国产资源在线一区| 亚洲男人的天堂在线观看| 欧美日韩一区二区在线观看视频 | 亚洲精品网站在线观看| 精品视频全国免费看| 国产在线视频精品一区| 中文av字幕一区| 欧美日高清视频| 精品无人区卡一卡二卡三乱码免费卡| 国产午夜精品一区二区| 欧美四级电影网| 国产精品一区二区三区99| 一区二区三区蜜桃| 欧美xxxxx牲另类人与| 不卡av在线免费观看| 日韩在线一区二区三区| 国产清纯白嫩初高生在线观看91| 91福利国产成人精品照片| 国产一区二区福利视频| 亚洲午夜久久久久久久久电影网 | 成人av在线观| 午夜精品久久久久久久蜜桃app| 国产网站一区二区| 欧美挠脚心视频网站| 懂色av一区二区三区免费观看 | 99精品1区2区| 久久精品国产精品青草| 亚洲激情五月婷婷| 久久天天做天天爱综合色| 欧美三级中文字| 97精品国产露脸对白| 国产麻豆日韩欧美久久| 日韩 欧美一区二区三区| 亚洲精品乱码久久久久久久久| 久久九九久久九九| 日韩女优电影在线观看| 色国产综合视频| 93久久精品日日躁夜夜躁欧美| 国产乱一区二区| 麻豆视频观看网址久久| 丝袜美腿成人在线| 亚洲午夜一区二区三区| 亚洲人成小说网站色在线| 中文子幕无线码一区tr| 久久品道一品道久久精品| 日韩精品在线一区二区| 欧美一区二区视频在线观看| 欧美视频一区二区| 欧美日韩一区二区三区在线| 91麻豆.com| 91极品美女在线| 日本韩国欧美一区| 一本色道久久综合亚洲精品按摩 | 欧美精品色综合| 欧美视频一区二区三区四区| 欧洲一区二区三区在线| 色网站国产精品| 91成人免费在线视频| 欧洲av在线精品| 欧美美女直播网站| 欧美疯狂做受xxxx富婆| 欧美一区二区三区四区五区 | 7777精品伊人久久久大香线蕉完整版| 成人美女视频在线观看18| 韩国v欧美v亚洲v日本v| 黄一区二区三区| 国产精品原创巨作av| 国产**成人网毛片九色| av亚洲精华国产精华精| 在线视频你懂得一区二区三区| 欧美日韩国产大片| 日韩精品专区在线| 国产日韩欧美精品在线| 中文字幕一区视频| 亚洲综合色自拍一区| 日韩国产欧美在线观看| 极品尤物av久久免费看| 成人av免费在线播放| 欧美天堂一区二区三区| 欧美成人艳星乳罩| 中文字幕久久午夜不卡| 亚洲一区中文日韩| 麻豆91小视频| 91在线你懂得| 欧美另类久久久品| 久久久久国产精品厨房| 一区二区三区视频在线看| 日本成人在线电影网| 成人毛片视频在线观看| 欧美日韩国产成人在线免费| 国产亚洲欧美激情| 亚洲国产欧美日韩另类综合 | 欧美日韩午夜在线视频| 精品少妇一区二区三区在线视频| 国产精品丝袜久久久久久app| 亚洲一区二区视频在线| 国产剧情一区在线| 欧美性xxxxxxxx| 欧美国产禁国产网站cc| 石原莉奈一区二区三区在线观看| 国产成人精品免费视频网站| 9191成人精品久久| 亚洲视频免费看| 国产麻豆精品theporn| 欧美三级日韩三级国产三级| 欧美国产一区视频在线观看|