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

📄 datagridtags.java

📁 中間件開發详细说明:清华大学J2EE教程讲义(ppt)-Tsinghua University J2EE tutorial lectures (ppt) [上载源码成为会员下载此源码] [成为VIP会
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
    //////////// REPLICA CATALOGUE TAGS    //***********************User<-->RC******************************//    /** Denotes the request for a location of a replica file.<br>     * The format of this request is     * Object[2] = {String lfn, Integer senderID}.<br>     * The reply tag name is {@link #CTLG_REPLICA_DELIVERY}.<br>     * NOTE: This request only ask for one location only not all.     */    public static final int CTLG_GET_REPLICA = CTLG_BASE + 1;    /** Sends the result for a location of a replica file back to sender.<br>     * The format of the reply is     * Object[2] = {String lfn, Integer resourceID}.<br>     * NOTE: The resourceID could be <tt>-1</tt> if not found.     */    public static final int CTLG_REPLICA_DELIVERY = CTLG_BASE + 2;    /** Denotes the request for all locations of a replica file.<br>     * The format of this request is     * Object[2] = {String lfn, Integer senderID}.<br>     * The reply tag name is {@link #CTLG_REPLICA_LIST_DELIVERY}.     */    public static final int CTLG_GET_REPLICA_LIST = CTLG_BASE + 3;    /** Sends the result for all locations of a replica file back to sender.<br>     * The format of the reply is     * Object[2] = {String lfn, List locationList}.<br>     * NOTE: The locationList could be <tt>null</tt> if not found.     */    public static final int CTLG_REPLICA_LIST_DELIVERY = CTLG_BASE + 4;    /** Denotes the request to get the attribute of a file.<br>     * The format of this request is     * Object[2] = {String lfn, Integer senderID}.<br>     * The reply tag name is {@link #CTLG_FILE_ATTR_DELIVERY}.     */    public static final int CTLG_GET_FILE_ATTR = CTLG_BASE + 5;    /** Sends the result for a file attribute back to sender.<br>     * The format of the reply is {FileAttribute fileAttr}.<br>     * NOTE: The fileAttr could be <tt>null</tt> if not found.     */    public static final int CTLG_FILE_ATTR_DELIVERY = CTLG_BASE + 6;    /** Denotes the request to get a list of file attributes based on     * the given filter.<br>     * The format of this request is     * Object[2] = {Filter filter, Integer senderID}.<br>     * The reply tag name is {@link #CTLG_FILTER_DELIVERY}.     */    public static final int CTLG_FILTER = CTLG_BASE + 7;    /** Sends the result for a list of file attributes back to sender.<br>     * The format of the reply is {List attrList}.<br>     * NOTE: The attrList could be <tt>null</tt> if not found.     */    public static final int CTLG_FILTER_DELIVERY = CTLG_BASE + 8;    //***********************RM<-->RC******************************//    /** Denotes the request to register / add a master file to the Replica     * Catalogue.<br>     * The format of this request is     * Object[3] = {String filename, FileAttribute attr, Integer resID}.<br>     * The reply tag name is {@link #CTLG_ADD_MASTER_RESULT}.     */    public static final int CTLG_ADD_MASTER = CTLG_BASE + 10;    /** Sends the result of registering a master file back to sender.<br>     * The format of the reply is     * Object[3] = {String filename, Integer uniqueID, Integer resultID}.<br>     * NOTE: The result id is in the form of CTLG_ADD_MASTER_XXXX where     *       XXXX means the error/success message     */    public static final int CTLG_ADD_MASTER_RESULT = CTLG_BASE + 11;    /** Denotes that master file addition is successful */    public static final int CTLG_ADD_MASTER_SUCCESSFUL = CTLG_BASE + 12;    /** Denotes that master file addition is failed due to an unknown error */    public static final int CTLG_ADD_MASTER_ERROR = CTLG_BASE + 13;    /** Denotes that master file addition is failed due to the catalogue     * is full     */    public static final int CTLG_ADD_MASTER_ERROR_FULL = CTLG_BASE + 14;    ///////////////////////////////////////////////////////////////////////    /** Denotes the request to de-register / delete a master file from the     * Replica Catalogue.<br>     * The format of this request is     * Object[2] = {String lfn, Integer resourceID}.<br>     * The reply tag name is {@link #CTLG_DELETE_MASTER_RESULT}.     */    public static final int CTLG_DELETE_MASTER = CTLG_BASE + 20;    /** Sends the result of de-registering a master file back to sender.<br>     * The format of the reply is     * Object[2] = {String lfn, Integer resultID}.<br>     * NOTE: The result id is in the form of CTLG_DELETE_MASTER_XXXX where     *       XXXX means the error/success message     */    public static final int CTLG_DELETE_MASTER_RESULT = CTLG_BASE + 21;    /** Denotes that master file deletion is successful */    public static final int CTLG_DELETE_MASTER_SUCCESSFUL = CTLG_BASE + 22;    /** Denotes that master file deletion is failed due to an unknown error */    public static final int CTLG_DELETE_MASTER_ERROR = CTLG_BASE + 23;    /** Denotes that master file deletion is failed because the file     * does not exist in the catalogue     */    public static final int CTLG_DELETE_MASTER_DOESNT_EXIST = CTLG_BASE + 24;    /** Denotes that master file deletion is failed because replica files     * are still in the catalogue. All replicas need to be deleted first.     */    public static final int CTLG_DELETE_MASTER_REPLICAS_EXIST = CTLG_BASE + 25;    ///////////////////////////////////////////////////////////////////////    /** Denotes the request to register / add a replica file to the Replica     * Catalogue.<br>     * The format of this request is     * Object[2] = {String lfn, Integer resourceID}.<br>     * The reply tag name is {@link #CTLG_ADD_REPLICA_RESULT}.     */    public static final int CTLG_ADD_REPLICA = CTLG_BASE + 30;    /** Sends the result of registering a replica file back to sender.<br>     * The format of the reply is     * Object[2] = {String lfn, Integer resultID}.<br>     * NOTE: The result id is in the form of CTLG_ADD_REPLICA_XXXX where     *       XXXX means the error/success message     */    public static final int CTLG_ADD_REPLICA_RESULT = CTLG_BASE + 31;    /** Denotes that replica file addition is successful */    public static final int CTLG_ADD_REPLICA_SUCCESSFUL = CTLG_BASE + 32;    /** Denotes that replica file addition is failed due to an unknown error */    public static final int CTLG_ADD_REPLICA_ERROR = CTLG_BASE + 33;    /** Denotes that replica file addition is failed because the given     * file name does not exist in the catalogue     */    public static final int CTLG_ADD_REPLICA_ERROR_DOESNT_EXIST = CTLG_BASE +34;    /** Denotes that replica file addition is failed due to the catalogue     * is full     */    public static final int CTLG_ADD_REPLICA_ERROR_FULL = CTLG_BASE + 35;    ///////////////////////////////////////////////////////////////////////    /** Denotes the request to de-register / delete a replica file from the     * Replica Catalogue.<br>     * The format of this request is     * Object[2] = {String lfn, Integer resourceID}.<br>     * The reply tag name is {@link #CTLG_DELETE_REPLICA_RESULT}.     */    public static final int CTLG_DELETE_REPLICA = CTLG_BASE + 40;    /** Sends the result of de-registering a replica file back to sender.<br>     * The format of the reply is     * Object[2] = {String lfn, Integer resultID}.<br>     * NOTE: The result id is in the form of CTLG_DELETE_REPLICA_XXXX where     *       XXXX means the error/success message     */    public static final int CTLG_DELETE_REPLICA_RESULT = CTLG_BASE + 41;    /** Denotes that replica file deletion is successful */    public static final int CTLG_DELETE_REPLICA_SUCCESSFUL = CTLG_BASE + 42;    /** Denotes that replica file deletion is failed due to an unknown error */    public static final int CTLG_DELETE_REPLICA_ERROR = CTLG_BASE + 43;    /** Denotes that replica file deletion is failed because the file     * does not exist in the catalogue     */    public static final int CTLG_DELETE_REPLICA_ERROR_DOESNT_EXIST=CTLG_BASE+44;    ///////////////////////////////////////////////////////////////////////    /** Denotes the request to modify an existing master file information     * stored in the Replica Catalogue.<br>     * The format of this request is     * Object[3] = {String filename, FileAttribute attr, Integer resID}.<br>     * The reply tag name is {@link #CTLG_MODIFY_MASTER_RESULT}.     */    public static final int CTLG_MODIFY_MASTER = CTLG_BASE + 50;    /** Sends the result of modifying a master file back to sender.<br>     * The format of the reply is     * Object[2] = {String lfn, Integer resultID}.<br>     * NOTE: The result id is in the form of CTLG_MODIFY_MASTER_XXXX where     *       XXXX means the error/success message     */    public static final int CTLG_MODIFY_MASTER_RESULT = CTLG_BASE + 51;    /** Denotes that master file deletion is successful */    public static final int CTLG_MODIFY_MASTER_SUCCESSFUL = CTLG_BASE + 52;    /** Denotes that master file modification is failed due to an     * unknown error     */    public static final int CTLG_MODIFY_MASTER_ERROR = CTLG_BASE + 53;    /** Denotes that master file modification is failed because the file     * does not exist in the catalogue     */    public static final int CTLG_MODIFY_MASTER_ERROR_DOESNT_EXIST= CTLG_BASE+54;    /** Denotes that master file modification is failed because the file     * attribute is set to a read-only     */    public static final int CTLG_MODIFY_MASTER_ERROR_READ_ONLY = CTLG_BASE+55;    ///////////////////////////////////////////////////////////////////////    /** Private Constructor */    private DataGridTags() {        // empty    }} // end class

⌨️ 快捷键说明

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