⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 regionalrc.java

📁 中間件開發详细说明:清华大学J2EE教程讲义(ppt)-Tsinghua University J2EE tutorial lectures (ppt) [上载源码成为会员下载此源码] [成为VIP会
💻 JAVA
字号:
/* * Title:        GridSim Toolkit * Description:  GridSim (Grid Simulation) Toolkit for Modeling and Simulation *               of Parallel and Distributed Systems such as Clusters and Grids * Licence:      GPL - http://www.gnu.org/copyleft/gpl.html */package gridsim.datagrid.index;import java.util.*;import eduni.simjava.*;import gridsim.datagrid.*;import gridsim.net.Link;import gridsim.*;import gridsim.datagrid.filter.Filter;/** * This class acts as a local RC and/or a leaf RC in a hierarchical model. * It is responsible for processing queries from users and resources.<br> * NOTE: Generating a unique ID for each file name is done by the *       {@link gridsim.datagrid.index.TopRegionalRC} entity only. * * @author  Uros Cibej and Anthony Sulistio * @since   GridSim Toolkit 4.0 * @see gridsim.datagrid.index.TopRegionalRC */public class RegionalRC extends AbstractRC{    private Hashtable catalogueHash_; // Stores information about file locations    private Hashtable attrHash_;      // Stores the attributes of files    private int higherRC_;            // id of the higher level RC    private Integer senderID_;        // id of the sender: this ID or res ID    // List of requests that are still waiting for confirmation from higher    // level RC    private ArrayList waitingMasterRegistration_;   // for registration    private ArrayList waitingMasterDeletes_;        // for de-registration    private ArrayList waitingReplicaAddAck_;    private ArrayList waitingReplicaDeleteAck_;    private ArrayList waitingReplicaRequest_;    // -----------------INITIALIZATION--------------------------------    /**     * Creates a new <b>local</b> Replica Catalogue (RC) entity.     * This constructor should be used if you want this RC entity to be inside     * a resource's domain, hence known as <i>a Local RC</i>.     * As a consequence, this entity uses the resource ID and I/O port for     * indentification.     * <br>     * The Local RC is responsible for indexing available files on the     * resource only. It also handles users

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -