regionalrc.java

来自「中間件開發详细说明:清华大学J2EE教程讲义(ppt)-Tsinghua Uni」· Java 代码 · 共 52 行

JAVA
52
字号
/* * 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 + =
减小字号Ctrl + -
显示快捷键?