亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? resourcemanager.java

?? 分布式數據庫原形代碼 可以支持個用戶同時登陸到數據庫中查詢需要的資源
?? JAVA
字號:
package transaction;import java.rmi.*;/**  * Interface for a simple Resource Manager for the Distributed Travel * Reservation System. * <p> * Failure reporting is done using two pieces, exceptions and boolean * return values.  Exceptions are used for systemy things - like * transactions that were forced to abort, or don't exist.  Return * values are used for operations that would affect the consistency of * the database, like the deletion of more cars than the database * knows about. * <p> * If there is a boolean return value and you're not sure how it would * be used in your implementation, ignore it.  We used boolean return * values in the interface generously to allow flexibility in * implementation.  But don't forget to return true when the operation * has succeeded. * <p> * All methods in the interface are declared to throw RemoteException. * This exception is thrown by the RMI system during a remote method * call to indicate that either a communication failure or a protocol * error has occurred. Your RM code will never have to directly throw * this exception, but any client code that you write must catch the * exception and take the appropriate action. */public interface ResourceManager extends Remote {    //////////    // TRANSACTION INTERFACE    //////////    /**     * Start a new transaction, and return its transaction id.     *     * @return A unique transaction ID > 0.     *     * @throws RemoteException on communications failure.     */    public int start() 	throws RemoteException;     /**     * Commit transaction.     *     * @param xid id of transaction to be committed.     * @return true on success, false on failure.     *     * @throws RemoteException on communications failure.     * @throws TransactionAbortedException if transaction was aborted.     * @throws InvalidTransactionException if transaction id is invalid.     */    public boolean commit(int xid) 	throws RemoteException, 	       TransactionAbortedException,	       InvalidTransactionException;     /**     * Abort transaction.     *     * @param xid id of transaction to be aborted.     *     * @throws RemoteException on communications failure.     * @throws InvalidTransactionException if transaction id is invalid.     */    public void abort(int xid) 	throws RemoteException, 	       InvalidTransactionException;         //////////    // ADMINISTRATIVE INTERFACE    //////////    /**     * Add seats to a flight.  In general this will be used to create     * a new flight, but it should be possible to add seats to an     * existing flight.  Adding to an existing flight should overwrite     * the current price of the available seats.     *     * @param xid id of transaction.     * @param flightNum flight number, cannot be null.     * @param numSeats number of seats to be added to the flight.     * @param price price of each seat. If price < 0,     *                    don't overwrite the current price.     * @return true on success, false on failure.     *     * @throws RemoteException on communications failure.     * @throws TransactionAbortedException if transaction was aborted.     * @throws InvalidTransactionException if transaction id is invalid.     */    public boolean addFlight(int xid, String flightNum, int numSeats, int price) 	throws RemoteException, 	       TransactionAbortedException,	       InvalidTransactionException;     /**     * Delete an entire flight.     * Implies whole deletion of the flight: all seats, all reservations.     * Should fail if a customer has a reservation on this flight.     *     * @param xid id of transaction.     * @param flightNum flight number, cannot be null.     * @return true on success, false on failure.     *     * @throws RemoteException on communications failure.     * @throws TransactionAbortedException if transaction was aborted.     * @throws InvalidTransactionException if transaction id is invalid.     */    public boolean deleteFlight(int xid, String flightNum) 	throws RemoteException, 	       TransactionAbortedException,	       InvalidTransactionException;         /**     * Add rooms to a location.       * This should look a lot like addFlight, only keyed on a location     * instead of a flight number.     *     * @return true on success, false on failure.     *     * @throws RemoteException on communications failure.     * @throws TransactionAbortedException if transaction was aborted.     * @throws InvalidTransactionException if transaction id is invalid.     *     * @see #addFlight     */    public boolean addRooms(int xid, String location, int numRooms, int price) 	throws RemoteException, 	       TransactionAbortedException,	       InvalidTransactionException;    /**     * Delete rooms from a location.     * This subtracts from the available room count (rooms not allocated     * to a customer).  It should fail if it would make the count of     * available rooms negative.     *     * @return true on success, false on failure.     *     * @throws RemoteException on communications failure.     * @throws TransactionAbortedException if transaction was aborted.     * @throws InvalidTransactionException if transaction id is invalid.     *     * @see #deleteFlight     */    public boolean deleteRooms(int xid, String location, int numRooms) 	throws RemoteException, 	       TransactionAbortedException,	       InvalidTransactionException;         /**      * Add cars to a location.     * Cars have the same semantics as hotels (see addRooms).     *      * @return true on success, false on failure.     *     * @throws RemoteException on communications failure.     * @throws TransactionAbortedException if transaction was aborted.     * @throws InvalidTransactionException if transaction id is invalid.     *     * @see #addRooms     * @see #addFlight     */    public boolean addCars(int xid, String location, int numCars, int price) 	throws RemoteException, 	       TransactionAbortedException,	       InvalidTransactionException;     /**     * Delete cars from a location.     * Cars have the same semantics as hotels.     *     * @return true on success, false on failure.     *     * @throws RemoteException on communications failure.     * @throws TransactionAbortedException if transaction was aborted.     * @throws InvalidTransactionException if transaction id is invalid.     *     * @see #deleteRooms     * @see #deleteFlight     */    public boolean deleteCars(int xid, String location, int numCars) 	throws RemoteException, 	       TransactionAbortedException,	       InvalidTransactionException;         /**      * Add a new customer to database.  Should return success if     * customer already exists.     *      * @param xid id of transaction.     * @param custName name of customer.     * @return true on success, false on failure.     *     * @throws RemoteException on communications failure.     * @throws TransactionAbortedException if transaction was aborted.     * @throws InvalidTransactionException if transaction id is invalid.     */    public boolean newCustomer(int xid, String custName) 	throws RemoteException,	       TransactionAbortedException,	       InvalidTransactionException;     /**     * Delete this customer and associated reservations.     *     * @param xid id of transaction.     * @param custName name of customer.     * @return true on success, false on failure.     *     * @throws RemoteException on communications failure.     * @throws TransactionAbortedException if transaction was aborted.     * @throws InvalidTransactionException if transaction id is invalid.     */    public boolean deleteCustomer(int xid, String custName) 	throws RemoteException,	       TransactionAbortedException,	       InvalidTransactionException;     //////////    // QUERY INTERFACE    //////////    /**     * Return the number of empty seats on a flight.     *     * @param xid id of transaction.     * @param flightNum flight number.     * @return # empty seats on the flight.     *     * @throws RemoteException on communications failure.     * @throws TransactionAbortedException if transaction was aborted.     * @throws InvalidTransactionException if transaction id is invalid.     */    public int queryFlight(int xid, String flightNum) 	throws RemoteException, 	       TransactionAbortedException,	       InvalidTransactionException;     /** Return the price of a seat on this flight. */    public int queryFlightPrice(int xid, String flightNum) 	throws RemoteException, 	       TransactionAbortedException,	       InvalidTransactionException;     /** Return the number of rooms available at a location. */    public int queryRooms(int xid, String location)	throws RemoteException,	       TransactionAbortedException,	       InvalidTransactionException;    /** Return the price of rooms at this location. */    public int queryRoomsPrice(int xid, String location) 	throws RemoteException, 	       TransactionAbortedException,	       InvalidTransactionException;     /** Return the number of cars available at a location. */    public int queryCars(int xid, String location) 	throws RemoteException, 	       TransactionAbortedException,	       InvalidTransactionException;     /** Return the price of rental cars at this location. */    public int queryCarsPrice(int xid, String location) 	throws RemoteException, 	       TransactionAbortedException,	       InvalidTransactionException;     /* Return the total price of all reservations held for a customer. */    public int queryCustomerBill(int xid, String custName)	    throws RemoteException,		   TransactionAbortedException,		   InvalidTransactionException;        //////////    // RESERVATION INTERFACE    //////////    /**     * Reserve a flight on behalf of this customer.     *     * @param xid id of transaction.     * @param custName name of customer.     * @param flightNum flight number.     * @return true on success, false on failure.     *     * @throws RemoteException on communications failure.     * @throws TransactionAbortedException if transaction was aborted.     * @throws InvalidTransactionException if transaction id is invalid.     */    public boolean reserveFlight(int xid, String custName, String flightNum) 	throws RemoteException,	       TransactionAbortedException,	       InvalidTransactionException;    /** Reserve a car for this customer at the specified location. */    public boolean reserveCar(int xid, String custName, String location) 	throws RemoteException, 	       TransactionAbortedException,	       InvalidTransactionException;     /** Reserve a room for this customer at the specified location. */    public boolean reserveRoom(int xid, String custName, String location) 	throws RemoteException,	       TransactionAbortedException,	       InvalidTransactionException;    //////////    // TECHNICAL/TESTING INTERFACE    //////////    /**      * Shutdown gracefully. Stop accepting new transactions, wait for     * running transactions to terminate, and clean up disk state.     * When this RM restarts, it should not attempt to recover its     * state if the client called shutdown to terminate it.     *     * @return true on success, false on failure.     * @throws RemoteException on communications failure.     */    public boolean shutdown() 	throws RemoteException;    /**      * Call exit immediately.  Used to simulate a system failure such     * as a power outage.     * <p>     * This method is used for testing and is not part of a transaction.     *     * @return true on success, false on failure.     */    public boolean dieNow() 	throws RemoteException;    /**      * Sets a flag so that the RM fails in the middle of the next     * commit operation.  Specifically, using shadow paging, you     * should call System.exit() after the updated tables have been     * written to disk, but just BEFORE you switch the on-disk pointer     * to point to this new copy.  (Convince yourself that the     * transaction is effectively aborted.)     * <p>     * This method is used for testing and is not part of a transaction.     *     * @return true on success, false on failure.     */    public boolean dieBeforePointerSwitch() 	throws RemoteException;    /**      * Sets a flag so that the RM fails in the middle of the next     * commit operation.  Unlike the above, however, the RM exits     * AFTER the on-disk pointer is updated, but before the commit     * call could return to the caller.  Make sure that, when the RM     * recovers, the transaction is seen as committed.     * <p>     * This method is used for testing and is not part of a transaction.     *     * @return true on success, false on failure.     */    public boolean dieAfterPointerSwitch() 	throws RemoteException;    /** The default RMI name a ResourceManager uses to bind. */    public final String DefaultRMIName = "RM";}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品国产三级国产专播品爱网| 男人的j进女人的j一区| 成人小视频在线| 欧美日韩极品在线观看一区| 久久久久亚洲综合| 日韩综合一区二区| 99精品桃花视频在线观看| 精品入口麻豆88视频| 一区二区三区免费看视频| 粉嫩一区二区三区性色av| 欧美一区二区三区影视| 一区二区在线观看视频在线观看| 国产呦萝稀缺另类资源| 日韩午夜电影在线观看| 亚洲成人免费影院| 日本伦理一区二区| 亚洲欧洲日产国码二区| 国产一区在线观看麻豆| 日韩精品资源二区在线| 日产国产欧美视频一区精品| 欧美图片一区二区三区| 亚洲视频一区二区免费在线观看 | 在线免费观看不卡av| 国产精品久久久久久一区二区三区| 老司机午夜精品| 91精品国产综合久久婷婷香蕉| 亚洲第一福利视频在线| 91国模大尺度私拍在线视频| 丝袜美腿成人在线| 欧美精品v国产精品v日韩精品 | 日本欧洲一区二区| 欧美精品18+| 日韩成人一级大片| 欧美一区二区三区啪啪| 毛片一区二区三区| 2欧美一区二区三区在线观看视频 337p粉嫩大胆噜噜噜噜噜91av | 蜜桃av一区二区在线观看| 欧美精品色一区二区三区| 日韩国产欧美在线播放| 欧美精品在线视频| 美女在线视频一区| 久久久www免费人成精品| 国产精品一二三区在线| 国产精品久久综合| 日本高清视频一区二区| 亚洲成人资源网| 91精品国产综合久久婷婷香蕉| 性做久久久久久免费观看欧美| 欧美日韩国产三级| 久草中文综合在线| 国产精品久久久久久户外露出| aaa欧美日韩| 五月婷婷综合网| 精品国内二区三区| 不卡一卡二卡三乱码免费网站| 一区二区在线观看视频在线观看| 7777精品伊人久久久大香线蕉经典版下载 | 日韩精品1区2区3区| 日韩欧美国产综合在线一区二区三区| 黄一区二区三区| 1024成人网色www| 欧美精品在线一区二区三区| 国内久久婷婷综合| 一区二区三区四区视频精品免费| 91精品国产综合久久精品app| 韩国av一区二区三区四区| 国产精品视频在线看| 欧美性大战xxxxx久久久| 另类小说一区二区三区| 最新热久久免费视频| 欧美日本视频在线| 国产91精品露脸国语对白| 亚洲观看高清完整版在线观看 | 色88888久久久久久影院按摩 | 国产曰批免费观看久久久| 亚洲精品视频一区二区| 精品国产乱码久久久久久牛牛| 91在线porny国产在线看| 日本不卡一区二区三区高清视频| 国产日韩v精品一区二区| 欧美日韩一区久久| 成人一级黄色片| 日韩高清在线一区| 亚洲色图视频网站| 亚洲精品一区二区三区在线观看| 在线中文字幕一区二区| 国内欧美视频一区二区| 天涯成人国产亚洲精品一区av| 中文字幕欧美国产| 欧美一级搡bbbb搡bbbb| 91福利资源站| 成人精品免费网站| 国产一区不卡在线| 日本不卡在线视频| 亚洲gay无套男同| 亚洲欧美日韩久久精品| 国产三级欧美三级日产三级99 | 婷婷综合在线观看| 亚洲欧美日韩国产另类专区| 久久人人97超碰com| 欧美一区二区女人| 欧美日韩国产区一| 欧美偷拍一区二区| 在线观看免费亚洲| 色综合亚洲欧洲| 成人激情动漫在线观看| 国产精品99久| 国产精品主播直播| 国产一区二区三区黄视频 | 国产一区二区三区香蕉| 捆绑调教美女网站视频一区| 婷婷丁香激情综合| 日本午夜精品视频在线观看| 午夜av一区二区三区| 亚洲福利视频一区二区| 亚洲va天堂va国产va久| 一区二区三区日韩欧美精品 | 欧美亚洲图片小说| 欧美性生活久久| 欧美精品乱码久久久久久按摩 | 99国产精品久| 色老综合老女人久久久| 欧美在线观看一区二区| 欧美日本视频在线| 欧美白人最猛性xxxxx69交| 日韩美女天天操| 久久精品视频免费观看| 欧美激情资源网| 中文字幕综合网| 夜夜精品视频一区二区| 日本中文字幕一区二区视频| 美国毛片一区二区| 顶级嫩模精品视频在线看| 白白色 亚洲乱淫| 欧美体内she精高潮| 日韩欧美亚洲国产另类 | 国产一区 二区 三区一级| 国产99久久久精品| 一本一道综合狠狠老| 欧美午夜电影一区| 精品日韩一区二区三区免费视频| 久久久影院官网| 亚洲美女视频一区| 日本中文字幕一区二区视频 | 亚洲精品国产无天堂网2021 | 欧美精品乱码久久久久久按摩| 日韩欧美国产一区在线观看| 国产精品嫩草影院com| 一区二区三区日韩欧美精品| 久久精品国产一区二区三 | 最新国产の精品合集bt伙计| 五月激情六月综合| 国产91精品一区二区| 欧美日本国产视频| 国产精品久久久久永久免费观看 | 91精品一区二区三区在线观看| 久久久久久99精品| 亚洲大片精品永久免费| 国产传媒久久文化传媒| 欧美日本一区二区在线观看| 久久久久久久久久久99999| 亚洲无人区一区| 国产成人亚洲综合a∨猫咪| 欧美日韩精品电影| 亚洲视频免费看| 激情欧美一区二区| 欧美电影一区二区| 亚洲图片另类小说| 国产精品中文欧美| 91精品国产欧美日韩| 亚洲激情自拍视频| 国产成人精品一区二| 日韩一级视频免费观看在线| 亚洲美女屁股眼交3| 国产激情一区二区三区四区| 91精品国产品国语在线不卡| 亚洲蜜桃精久久久久久久| 国产一区二区中文字幕| 91精品国产乱码久久蜜臀| 一级中文字幕一区二区| av男人天堂一区| 久久久www成人免费无遮挡大片| 日韩不卡一区二区| 欧美日韩一区成人| 亚洲自拍都市欧美小说| 92国产精品观看| 日韩一区在线播放| 99久久精品情趣| 中文字幕一区日韩精品欧美| 高清成人在线观看| 久久综合九色综合欧美98| 色哟哟国产精品免费观看| 欧美极品另类videosde| 国产成人鲁色资源国产91色综| 精品国产精品网麻豆系列 | 午夜精品成人在线| 欧美日韩一区二区在线观看 | 国产在线视频精品一区| 日韩欧美www| 国产综合色精品一区二区三区|