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

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

?? workload.java

?? 中間件開發詳細說明:清華大學J2EE教程講義(ppt)-Tsinghua University J2EE tutorial lectures (ppt) [上載源碼成為會員下載此源碼] [成為VIP會
?? JAVA
?? 第 1 頁 / 共 3 頁
字號:
                continue;            }            // if not, then put into the array            else            {                fieldArray_[index] = sp[i];                index++;            }        }        if (index == MAX_FIELD) {            extractField(fieldArray_, lineNum);        }    }    /**     * Extracts relevant information from a given array     * @param array  an array of String     * @param line   a line number     * @pre array != null     * @pre line > 0     */    private void extractField(String[] array, int line)    {        try        {            Integer obj = null;            // get the job number            int id = 0;            if (JOB_NUM == IRRELEVANT) {                id = gridletID_;            }            else            {                obj = new Integer( array[JOB_NUM].trim() );                id = obj.intValue();            }            // get the submit time            Long l = new Long( array[SUBMIT_TIME].trim() );            long submitTime = l.intValue();            // get the run time            obj = new Integer( array[REQ_RUN_TIME].trim() );            int runTime = obj.intValue();            // if the required run time field is ignored, then use            // the actual run time            if (runTime == IRRELEVANT)            {                obj = new Integer( array[RUN_TIME].trim() );                runTime = obj.intValue();            }            // according to the SWF manual, runtime of 0 is possible due            // to rounding down. E.g. runtime is 0.4 seconds -> runtime = 0            if (runTime == 0) {                runTime = 1;    // change to 1 second            }            // get the number of allocated processors            obj = new Integer( array[REQ_NUM_PROC].trim() );            int numProc = obj.intValue();            // if the required num of allocated processors field is ignored            // or zero, then use the actual field            if (numProc == IRRELEVANT || numProc == 0)            {                obj = new Integer( array[NUM_PROC].trim() );                numProc = obj.intValue();            }            // finally, check if the num of PEs required is valid or not            if (numProc <= 0)            {                System.out.println(super.get_name() + ": Warning - job #"                        + id + " at line " + line + " requires " + numProc                        + " CPU. Change to 1 CPU.");                numProc = 1;            }            // submit a Gridlet            submitGridlet(id, submitTime, runTime, numProc);        }        catch (Exception e)        {            System.out.println(super.get_name() +                    ": Exception in reading file at line #" + line);            e.printStackTrace();        }    }    /**     * Creates a Gridlet with the given information, then submit it to a     * resource     * @param id  a Gridlet ID     * @param submitTime  Gridlet's submit time     * @param runTime     Gridlet's run time     * @param numProc     number of processors     * @pre id >= 0     * @pre submitTime >= 0     * @pre runTime >= 0     * @pre numProc > 0     * @post $none     */    private void submitGridlet(int id, long submitTime, int runTime, int numProc)    {        // create the gridlet        int len = runTime * rating_;      // calculate a job length for each PE        Gridlet gl = new Gridlet(id, len, size_, size_);        gl.setUserID( super.get_id() );   // set the owner ID        gl.setNumPE(numProc);             // set the requested num of proc        // printing to inform user        if (gridletID_ == 1 || gridletID_ % INTERVAL == 0)        {            System.out.println(super.get_name() + ": Submitting Gridlets to " +                    resName_ + " ...");        }        // check the submit time        if (submitTime < 0) {            submitTime = 0;        }        gridletID_++;   // increment the counter        // submit a gridlet to resource        super.send(super.output, submitTime, GridSimTags.GRIDLET_SUBMIT,                new IO_data(gl, gl.getGridletFileSize(), resID_) );    }    /**     * Reads a text file one line at the time     * @param fileName   a file name     * @return <tt>true</tt> if reading a file is successful, <tt>false</tt>     *         otherwise.     * @pre fileName != null     * @post $none     */    private boolean readFile(String fileName)    {        boolean success = false;        BufferedReader reader = null;        try        {            FileInputStream file = new FileInputStream(fileName);            InputStreamReader input = new InputStreamReader(file);            reader = new BufferedReader(input);            // read one line at the time            int line = 1;            while ( reader.ready() )            {                parseValue(reader.readLine(), line);                line++;            }            reader.close();    // close the file            success = true;        }        catch (FileNotFoundException f)        {            System.out.println(super.get_name() +                    ": Error - the file was not found: " + f.getMessage());        }        catch (IOException e)        {            System.out.println(super.get_name() +                    ": Error - an IOException occurred: " + e.getMessage());        }        finally        {            if (reader != null)            {                try {                    reader.close();    // close the file                }                catch (IOException e)                {                    System.out.println(super.get_name() +                        ": Error - an IOException occurred: " + e.getMessage());                }            }        }        return success;    }    /**     * Reads a gzip file one line at the time     * @param fileName   a gzip file name     * @return <tt>true</tt> if reading a file is successful, <tt>false</tt>     *         otherwise.     * @pre fileName != null     * @post $none     */    private boolean readGZIPFile(String fileName)    {        boolean success = false;        BufferedReader reader = null;        try        {            FileInputStream file = new FileInputStream(fileName);            GZIPInputStream gz =  new GZIPInputStream(file);            InputStreamReader input = new InputStreamReader(gz);            reader = new BufferedReader(input);            // read one line at the time            int line = 1;            while ( reader.ready() )            {                parseValue(reader.readLine(), line);                line++;            }            reader.close();   // close the file            success = true;        }        catch (FileNotFoundException f)        {            System.out.println(super.get_name() +                    ": Error - the file was not found: " + f.getMessage());        }        catch (IOException e)        {            System.out.println(super.get_name() +                    ": Error - an IOException occurred: " + e.getMessage());        }        finally        {            if (reader != null)            {                try {                    reader.close();    // close the file                }                catch (IOException e)                {                    System.out.println(super.get_name() +                        ": Error - an IOException occurred: " + e.getMessage());                }            }        }        return success;    }    /**     * Reads a Zip file. Iterating through each entry and reading it one line     * at the time.     * @param fileName   a zip file name     * @return <tt>true</tt> if reading a file is successful, <tt>false</tt>     *         otherwise.     * @pre fileName != null     * @post $none     */    private boolean readZipFile(String fileName)    {        boolean success = false;        ZipFile zipFile = null;        try        {            InputStreamReader input = null;            BufferedReader reader = null;            // ZipFile offers an Enumeration of all the files in the Zip file            zipFile = new ZipFile(fileName);            for (Enumeration e = zipFile.entries(); e.hasMoreElements();)            {                success = false;    // reset the value again                ZipEntry zipEntry = (ZipEntry) e.nextElement();                input = new InputStreamReader(zipFile.getInputStream(zipEntry));                reader = new BufferedReader(input);                // read one line at the time                int line = 1;                while ( reader.ready() )                {                    parseValue(reader.readLine(), line);                    line++;                }                reader.close();   // close the file                success = true;            }        }        catch (IOException e)        {            System.out.println(super.get_name() +                    ": Error - an IOException occurred: " + e.getMessage());        }        finally        {            if (zipFile != null)            {                try {                    zipFile.close();    // close the file                }                catch (IOException e)                {                    System.out.println(super.get_name() +                        ": Error - an IOException occurred: " + e.getMessage());                }            }        }        return success;    }} // end class

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩电影在线一区二区三区| 麻豆专区一区二区三区四区五区| 欧美精品一区二区三区蜜臀| 欧美一区二区网站| 欧美精品色综合| 欧美一区二区视频在线观看2022| 欧美日韩国产综合一区二区| 欧美日韩久久一区二区| 日韩欧美亚洲国产另类| 日韩精品一区二区三区视频播放 | 精品福利在线导航| 韩国av一区二区三区四区| 狠狠色综合日日| 色综合久久久久综合99| 欧美日韩精品一区二区天天拍小说| 色素色在线综合| 精品日韩成人av| 国产精品久久久一区麻豆最新章节| 中文字幕在线观看一区二区| 午夜天堂影视香蕉久久| 国产一区久久久| 欧美亚洲尤物久久| 欧美精品一区二区三区视频| 亚洲国产成人高清精品| 国产成人午夜片在线观看高清观看| 懂色av一区二区夜夜嗨| 欧美一区二区啪啪| 亚洲国产毛片aaaaa无费看| 国产成人综合精品三级| 91麻豆精品国产91久久久久久| 成人av资源在线观看| 91精品国产综合久久精品app| 国产精品免费视频观看| 国产成人午夜视频| 国产亚洲成aⅴ人片在线观看| 日一区二区三区| 91精品国产色综合久久不卡电影 | 国产在线精品免费av| 欧美日本在线播放| 亚洲成av人片在线观看| 91啦中文在线观看| 亚洲综合色视频| 欧美日韩中文国产| 日本三级亚洲精品| 欧美精品黑人性xxxx| 日韩专区欧美专区| 欧美精品一二三四| 91在线免费看| 日韩综合小视频| **性色生活片久久毛片| 一个色妞综合视频在线观看| 国内精品免费在线观看| 欧美综合天天夜夜久久| 午夜精品在线视频一区| 欧美制服丝袜第一页| 国内精品伊人久久久久影院对白| 555夜色666亚洲国产免| 精品一区二区日韩| 国产精品久久久久久户外露出| 成人激情开心网| 亚洲亚洲人成综合网络| 欧美老人xxxx18| 国产精品亚洲成人| 亚洲乱码精品一二三四区日韩在线| 日韩精品一级中文字幕精品视频免费观看 | 亚洲自拍欧美精品| 一区二区三区不卡在线观看 | 亚洲国产精品久久不卡毛片| 欧美亚男人的天堂| 久久精品久久综合| 一区二区欧美国产| 国产三级一区二区| 欧美欧美欧美欧美首页| 99视频超级精品| 经典三级视频一区| 亚洲一二三四在线| 亚洲女人的天堂| 国产日韩欧美综合一区| 欧美一区二区三区不卡| 欧美偷拍一区二区| 99re这里只有精品6| 日韩影院精彩在线| 亚洲国产成人精品视频| 一卡二卡欧美日韩| 欧美亚洲尤物久久| 欧美日韩成人综合天天影院 | 欧美成人高清电影在线| 欧美色区777第一页| 色婷婷综合久久久中文一区二区 | 91精品国产综合久久精品图片| 91麻豆国产自产在线观看| 国产精品亚洲а∨天堂免在线| 久久精品国产成人一区二区三区| 午夜精品一区二区三区免费视频 | 欧美少妇xxx| 欧美丰满少妇xxxbbb| 日韩一级二级三级精品视频| 日韩欧美中文字幕一区| 26uuu欧美| 56国语精品自产拍在线观看| 91在线无精精品入口| 欧美日韩一区久久| 日韩三级伦理片妻子的秘密按摩| 日韩美女在线视频| 国产欧美一区二区在线观看| 亚洲视频一二区| 日本欧美加勒比视频| 国产91高潮流白浆在线麻豆| 91网站在线观看视频| 日韩欧美一区二区在线视频| 精品欧美乱码久久久久久1区2区| 亚洲精品一线二线三线无人区| 国产精品国产三级国产aⅴ原创 | 色噜噜偷拍精品综合在线| 欧美一区二区免费观在线| 国产精品国产三级国产aⅴ中文| 亚洲一级二级在线| 91国偷自产一区二区开放时间| 精品亚洲成a人在线观看| 日本丶国产丶欧美色综合| 久久影院午夜论| 久久99国产精品成人| 欧美日韩精品一区二区三区蜜桃 | 91极品视觉盛宴| 欧美激情综合五月色丁香小说| 亚洲乱码中文字幕综合| 岛国一区二区三区| 欧美成人综合网站| 一区二区三区四区不卡在线| 成人午夜又粗又硬又大| 久久久不卡网国产精品二区| 久久99国产精品尤物| 欧美一区二区黄色| 久久成人麻豆午夜电影| 日韩一区二区三区视频在线观看| 色香蕉成人二区免费| 日韩欧美一级在线播放| 九九**精品视频免费播放| 欧美中文一区二区三区| 日韩影院在线观看| 久久久国产一区二区三区四区小说 | 天天综合网天天综合色| 69p69国产精品| 风间由美一区二区三区在线观看| 国产偷v国产偷v亚洲高清| 国产一区二区三区国产| 亚洲欧美中日韩| 91麻豆精品国产91久久久久| 韩国三级中文字幕hd久久精品| 亚洲国产岛国毛片在线| 久久精品视频在线看| 日韩视频不卡中文| 久久99精品国产麻豆婷婷| 国产午夜精品一区二区| 成人精品视频.| 亚洲va国产天堂va久久en| 手机精品视频在线观看| 国产精品欧美久久久久无广告 | 精品久久国产老人久久综合| 樱桃国产成人精品视频| 欧美日韩成人在线| 国产麻豆91精品| 婷婷久久综合九色综合绿巨人| 精品免费国产二区三区| 国产精品白丝jk白祙喷水网站| 亚洲黄色尤物视频| 国产精品免费aⅴ片在线观看| 精品免费国产二区三区| 欧美综合欧美视频| 99re成人在线| 91免费视频大全| 成人av在线播放网址| 全国精品久久少妇| 男女男精品网站| 无码av免费一区二区三区试看 | 精品在线播放免费| 夜夜精品视频一区二区| 欧美少妇bbb| 欧美三级三级三级| 欧美亚洲日本国产| 欧美日韩一二三区| 欧美久久久久免费| 欧美日韩国产欧美日美国产精品| 成a人片国产精品| 91麻豆产精品久久久久久| av男人天堂一区| 91亚洲国产成人精品一区二区三| 97精品视频在线观看自产线路二| 成人久久18免费网站麻豆| 高清免费成人av| 东方aⅴ免费观看久久av| 91啪亚洲精品| 欧美日本在线看| 亚洲国产精品ⅴa在线观看| 国产精品成人在线观看| 亚洲成人av中文| 国产精品一区三区| 99re这里只有精品视频首页| 欧美一区二区三级| 亚洲欧美日韩一区|