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

📄 gridsimtags.java

📁 一个非常著名的网格模拟器,能够运行网格调度算法!
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
    public static final int AR_CANCEL_FAIL_INVALID_BOOKING_ID = ARBASE + 21;    /**     * Cancellation of a reservation fails due to finished Gridlets.     * This tag is sent by a resource or allocation policy to     * AdvanceReservation entity.     */    public static final int AR_CANCEL_FAIL_GRIDLET_FINISHED = ARBASE + 22;    /**     * Cancellation of a reservation is successful. It could also means     * a reservation has expired or completed.     * This tag is sent by a resource or allocation policy to     * AdvanceReservation entity.     */    public static final int AR_CANCEL_SUCCESS = ARBASE + 23;    /**     * Cancellation of a reservation fails since a resource can not     * support Advance Reservation functionalities.     * This tag is sent by a resource or allocation policy to     * AdvanceReservation entity.     */    public static final int AR_CANCEL_ERROR_RESOURCE_CANT_SUPPORT = ARBASE + 24;    /**     * Cancellation of a reservation fails due to unknown error.     * This tag is sent by a resource or allocation policy to     * AdvanceReservation entity.     */    public static final int AR_CANCEL_ERROR = ARBASE + 25;    ///////////////////////////////////////////////////////////////    // The below tags are used in reply to    // AdvanceReservation.commitReservation() method.    // These tags are sent by a resource or allocation policy.    /**     * Committing a reservation is successful.     * This tag is sent by a resource or allocation policy to     * AdvanceReservation entity.     */    public static final int AR_COMMIT_SUCCESS = ARBASE + 30;    /**     * Committing a reservation is failed.     * This tag is sent by a resource or allocation policy to     * AdvanceReservation entity.     */    public static final int AR_COMMIT_FAIL = ARBASE + 31;    /**     * Committing a reservation is failed due to expiry.     * This tag is sent by a resource or allocation policy to     * AdvanceReservation entity.     */    public static final int AR_COMMIT_FAIL_EXPIRED = ARBASE + 32;    /**     * Committing a reservation is failed due to invalid booking ID.     * This tag is sent by a resource or allocation policy to     * AdvanceReservation entity.     */    public static final int AR_COMMIT_FAIL_INVALID_BOOKING_ID = ARBASE + 33;    /**     * Committing a reservation is failed due to a resource does not support     * Advance Reservation functionalities.     * This tag is sent by a resource or allocation policy to     * AdvanceReservation entity.     */    public static final int AR_COMMIT_ERROR_RESOURCE_CANT_SUPPORT = ARBASE + 34;    /**     * Committing a reservation is failed due to unknown error.     * This tag is sent by a resource or allocation policy to     * AdvanceReservation entity.     */    public static final int AR_COMMIT_ERROR = ARBASE + 35;    ///////////////////////////////////////////////////////////////    // The below tags are used in reply to    // AdvanceReservation.modifyReservation() method.    // These tags are sent by a resource or allocation policy.    /**     * Modification of a reservation fails due to invalid booking ID.     * This tag is sent by a resource or allocation policy to     * AdvanceReservation entity.     */    public static final int AR_MODIFY_FAIL_INVALID_BOOKING_ID = ARBASE + 40;    /**     * Modification of a reservation fails since it is in active state.     * This tag is sent by a resource or allocation policy to     * AdvanceReservation entity.     */    public static final int AR_MODIFY_FAIL_RESERVATION_ACTIVE = ARBASE + 41;    /**     * Modification of a reservation fails due to invalid start time.     * This tag is sent by a resource or allocation policy to     * AdvanceReservation entity.     */    public static final int AR_MODIFY_FAIL_INVALID_START_TIME = ARBASE + 42;    /**     * Modification of a reservation fails due to invalid end time.     * This tag is sent by a resource or allocation policy to     * AdvanceReservation entity.     */    public static final int AR_MODIFY_FAIL_INVALID_END_TIME = ARBASE + 43;    /**     * Modification of a reservation fails due to invalid number of PEs     * requested.     * This tag is sent by a resource or allocation policy to     * AdvanceReservation entity.     */    public static final int AR_MODIFY_FAIL_INVALID_NUM_PE = ARBASE + 44;    /**     * Modification of a reservation fails due to unknown error.     * This tag is sent by a resource or allocation policy to     * AdvanceReservation entity.     */    public static final int AR_MODIFY_ERROR = ARBASE + 45;    /**     * Modification of a reservation is successfull.     * This tag is sent by a resource or allocation policy to     * AdvanceReservation entity.     */    public static final int AR_MODIFY_SUCCESS = ARBASE + 46;    /**     * Modification of a reservation fails due to a resource that can not     * support Advance Reservation functionalities.     * This tag is sent by a resource or allocation policy to     * AdvanceReservation entity.     */    public static final int AR_MODIFY_FAIL_RESOURCE_CANT_SUPPORT = ARBASE + 47;    ///////////////////////////////////////////////////////////////    /** Denotes a return tag from GridResource to User entity     * for sending the result of committing a reservation back.     */    public static final int RETURN_AR_COMMIT = ARBASE + 50;    /** Denotes a return tag from GridResource to User entity     * for sending the result of query free or busy time of a reservation     */    public static final int RETURN_AR_QUERY_TIME = ARBASE + 51;    /** Denotes a return tag from GridResource to User entity     * for sending the result of a reservation status     */    public static final int RETURN_AR_QUERY_STATUS = ARBASE + 52;    /** Denotes a return tag from GridResource to User entity     * for sending the result of cancelling a reservation     */    public static final int RETURN_AR_CANCEL = ARBASE + 53;    /** Denotes a return tag from GridResource to User entity     * for sending the result of requesting or creating a new reservation     */    public static final int RETURN_AR_CREATE = ARBASE + 54;    /** Denotes a return tag from GridResource to User entity     * for sending the result of modifying a reservation     */    public static final int RETURN_AR_MODIFY = ARBASE + 55;    ///////////////////////////////////////////////////////////////    // The below tags are used in reply to    // AdvanceReservation.createReservation() method.    // These tags are sent by a resource or allocation policy.    // These tags have negative numbers as not to confuse with a generated    // reservation ID done by a resource.    /**     * New request of a reservation fails due to invalid start time.     * This tag is sent by a resource or allocation policy to     * AdvanceReservation entity.     */    public static final int AR_CREATE_ERROR_INVALID_START_TIME = -1;    /**     * New request of a reservation fails due to invalid end time.     * This tag is sent by a resource or allocation policy to     * AdvanceReservation entity.     */    public static final int AR_CREATE_ERROR_INVALID_END_TIME = -2;    /**     * New request of a reservation fails due to invalid duration time.     * This tag is sent by a resource or allocation policy to     * AdvanceReservation entity.     */    public static final int AR_CREATE_ERROR_INVALID_DURATION_TIME = -3;    /**     * New request of a reservation fails due to invalid number of PEs     * requested.     * This tag is sent by a resource or allocation policy to     * AdvanceReservation entity.     */    public static final int AR_CREATE_ERROR_INVALID_NUM_PE = -4;    /**     * New request of a reservation fails due to invalid resource ID.     * This tag is sent by a resource or allocation policy to     * AdvanceReservation entity.     */    public static final int AR_CREATE_ERROR_INVALID_RESOURCE_ID = -5;    /**     * New request of a reservation fails due to invalid resource name.     * This tag is sent by a resource or allocation policy to     * AdvanceReservation entity.     */    public static final int AR_CREATE_ERROR_INVALID_RESOURCE_NAME = -6;    /**     * New request of a reservation fails due to unknown error.     * This tag is sent by a resource or allocation policy to     * AdvanceReservation entity.     */    public static final int AR_CREATE_ERROR = -7;    /**     * New request of a reservation fails due to a resource that can not     * support Advance Reservation functionalities.     * This tag is sent by a resource or allocation policy to     * AdvanceReservation entity.     */    public static final int AR_CREATE_FAIL_RESOURCE_CANT_SUPPORT = -8;    /**     * New request of a reservation fails due to not enough PEs.     * This tag is sent by a resource or allocation policy to     * AdvanceReservation entity.     */    public static final int AR_CREATE_FAIL_RESOURCE_NOT_ENOUGH_PE = -9;    /**     * New request of a reservation fails since trying to request more than     * the max. number allowed by a resource.     * This tag is sent by a resource or allocation policy to     * AdvanceReservation entity.     */    // TODO: not sure at the moment. Probably for future tag    //public static final int AR_CREATE_FAIL_OVERLIMIT_MAX_PE = -10;    /**     * New request of a reservation fails due to a resource full in 1 second.     * This tag is sent by a resource or allocation policy to     * AdvanceReservation entity.     */    public static final int AR_CREATE_FAIL_RESOURCE_FULL_IN_1_SEC = -11;    /**     * New request of a reservation fails due to a resource full in 5 seconds.     * This tag is sent by a resource or allocation policy to     * AdvanceReservation entity.     */    public static final int AR_CREATE_FAIL_RESOURCE_FULL_IN_5_SECS = -12;    /**     * New request of a reservation fails due to full in 10 seconds.     * This tag is sent by a resource or allocation policy to     * AdvanceReservation entity.     */    public static final int AR_CREATE_FAIL_RESOURCE_FULL_IN_10_SECS = -13;    /**     * New request of a reservation fails due to a resource full in 15 seconds.     * This tag is sent by a resource or allocation policy to     * AdvanceReservation entity.     */    public static final int AR_CREATE_FAIL_RESOURCE_FULL_IN_15_SECS = -14;    /**     * New request of a reservation fails due to a resource full in 30 seconds.     * This tag is sent by a resource or allocation policy to     * AdvanceReservation entity.     */    public static final int AR_CREATE_FAIL_RESOURCE_FULL_IN_30_SECS = -15;    /**     * New request of a reservation fails due to a resource full in 45 seconds.     * This tag is sent by a resource or allocation policy to     * AdvanceReservation entity.     */    public static final int AR_CREATE_FAIL_RESOURCE_FULL_IN_45_SECS = -16;    /**     * New request of a reservation fails due to a resource full in 1 minute.     * This tag is sent by a resource or allocation policy to     * AdvanceReservation entity.     */    public static final int AR_CREATE_FAIL_RESOURCE_FULL_IN_1_MIN = -17;    /**     * New request of a reservation fails due to a resource full in 5 minutes.     * This tag is sent by a resource or allocation policy to     * AdvanceReservation entity.     */    public static final int AR_CREATE_FAIL_RESOURCE_FULL_IN_5_MINS = -18;    /**     * New request of a reservation fails due to full in 10 hours.     * This tag is sent by a resource or allocation policy to     * AdvanceReservation entity.     */    public static final int AR_CREATE_FAIL_RESOURCE_FULL_IN_10_MINS = -19;    /**     * New request of a reservation fails due to a resource full in 15 minutes.     * This tag is sent by a resource or allocation policy to     * AdvanceReservation entity.     */    public static final int AR_CREATE_FAIL_RESOURCE_FULL_IN_15_MINS = -20;    /**     * New request of a reservation fails due to a resource full in 30 minutes.     * This tag is sent by a resource or allocation policy to     * AdvanceReservation entity.     */    public static final int AR_CREATE_FAIL_RESOURCE_FULL_IN_30_MINS = -21;    /**     * New request of a reservation fails due to a resource full in 45 minutes.     * This tag is sent by a resource or allocation policy to     * AdvanceReservation entity.     */    public static final int AR_CREATE_FAIL_RESOURCE_FULL_IN_45_MINS = -22;    /**     * New request of a reservation fails due to full in 1 hour.     * This tag is sent by a resource or allocation policy to     * AdvanceReservation entity.     */    public static final int AR_CREATE_FAIL_RESOURCE_FULL_IN_1_HOUR = -23;    /**     * New request of a reservation fails due to full in 5 hours.     * This tag is sent by a resource or allocation policy to     * AdvanceReservation entity.     */    public static final int AR_CREATE_FAIL_RESOURCE_FULL_IN_5_HOURS = -24;    /**     * New request of a reservation fails due to full in 10 hours.     * This tag is sent by a resource or allocation policy to     * AdvanceReservation entity.     */    public static final int AR_CREATE_FAIL_RESOURCE_FULL_IN_10_HOURS = -25;    /**     * New request of a reservation fails due to full in 15 hours.     * This tag is sent by a resource or allocation policy to     * AdvanceReservation entity.     */    public static final int AR_CREATE_FAIL_RESOURCE_FULL_IN_15_HOURS = -26;    /**     * New request of a reservation fails due to full in 30 hours.     * This tag is sent by a resource or allocation policy to     * AdvanceReservation entity.     */    public static final int AR_CREATE_FAIL_RESOURCE_FULL_IN_30_HOURS = -27;    /**     * New request of a reservation fails due to full in 45 hours onwards.     * This tag is sent by a resource or allocation policy to     * AdvanceReservation entity.     */    public static final int AR_CREATE_FAIL_RESOURCE_FULL_IN_45_HOURS = -28;    ///////////////////////////////////////////////////////////////    /** Private Constructor */    private GridSimTags() {        // empty    }} // end class

⌨️ 快捷键说明

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