allocpolicywithfailure.java
来自「中間件開發详细说明:清华大学J2EE教程讲义(ppt)-Tsinghua Uni」· Java 代码 · 共 38 行
JAVA
38 行
/* * 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 * * Author: Agustin Caminero * Organization: Universidad de Castilla La Mancha (UCLM), Spain. * Created on: Nov 2006. */package gridsim.resFailure;/** * The structure of an allocation policy supporting resource failure. * Use this class in addition to {@link gridsim.AllocPolicy} class. * @author Agustin Caminero * @since GridSim Toolkit 4.1 * @see gridsim.AllocPolicy */public interface AllocPolicyWithFailure{ /** * Sets the status of all Gridlets in this resource to <tt>FAILED</tt>. * Then sends them back to users, and clean up the relevant lists. */ public abstract void setGridletsFailed(); /** * Sets the status of all Gridlets in this machine to <tt>FAILED</tt>. * Then sends them back to users, and clean up the relevant lists. * @param failedMachID the id of the failed machine */ public abstract void setGridletsFailed(int failedMachID);} // end class
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?