📄 allocpolicywithfailure.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 * * 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -