个人博客网站设计外文文献及翻译及感应式ID卡办公门禁考勤一卡通管理系统方案计划书.docx

上传人:b****4 文档编号:5416995 上传时间:2023-05-08 格式:DOCX 页数:53 大小:912.66KB
下载 相关 举报
个人博客网站设计外文文献及翻译及感应式ID卡办公门禁考勤一卡通管理系统方案计划书.docx_第1页
第1页 / 共53页
个人博客网站设计外文文献及翻译及感应式ID卡办公门禁考勤一卡通管理系统方案计划书.docx_第2页
第2页 / 共53页
个人博客网站设计外文文献及翻译及感应式ID卡办公门禁考勤一卡通管理系统方案计划书.docx_第3页
第3页 / 共53页
个人博客网站设计外文文献及翻译及感应式ID卡办公门禁考勤一卡通管理系统方案计划书.docx_第4页
第4页 / 共53页
个人博客网站设计外文文献及翻译及感应式ID卡办公门禁考勤一卡通管理系统方案计划书.docx_第5页
第5页 / 共53页
个人博客网站设计外文文献及翻译及感应式ID卡办公门禁考勤一卡通管理系统方案计划书.docx_第6页
第6页 / 共53页
个人博客网站设计外文文献及翻译及感应式ID卡办公门禁考勤一卡通管理系统方案计划书.docx_第7页
第7页 / 共53页
个人博客网站设计外文文献及翻译及感应式ID卡办公门禁考勤一卡通管理系统方案计划书.docx_第8页
第8页 / 共53页
个人博客网站设计外文文献及翻译及感应式ID卡办公门禁考勤一卡通管理系统方案计划书.docx_第9页
第9页 / 共53页
个人博客网站设计外文文献及翻译及感应式ID卡办公门禁考勤一卡通管理系统方案计划书.docx_第10页
第10页 / 共53页
个人博客网站设计外文文献及翻译及感应式ID卡办公门禁考勤一卡通管理系统方案计划书.docx_第11页
第11页 / 共53页
个人博客网站设计外文文献及翻译及感应式ID卡办公门禁考勤一卡通管理系统方案计划书.docx_第12页
第12页 / 共53页
个人博客网站设计外文文献及翻译及感应式ID卡办公门禁考勤一卡通管理系统方案计划书.docx_第13页
第13页 / 共53页
个人博客网站设计外文文献及翻译及感应式ID卡办公门禁考勤一卡通管理系统方案计划书.docx_第14页
第14页 / 共53页
个人博客网站设计外文文献及翻译及感应式ID卡办公门禁考勤一卡通管理系统方案计划书.docx_第15页
第15页 / 共53页
个人博客网站设计外文文献及翻译及感应式ID卡办公门禁考勤一卡通管理系统方案计划书.docx_第16页
第16页 / 共53页
个人博客网站设计外文文献及翻译及感应式ID卡办公门禁考勤一卡通管理系统方案计划书.docx_第17页
第17页 / 共53页
个人博客网站设计外文文献及翻译及感应式ID卡办公门禁考勤一卡通管理系统方案计划书.docx_第18页
第18页 / 共53页
个人博客网站设计外文文献及翻译及感应式ID卡办公门禁考勤一卡通管理系统方案计划书.docx_第19页
第19页 / 共53页
个人博客网站设计外文文献及翻译及感应式ID卡办公门禁考勤一卡通管理系统方案计划书.docx_第20页
第20页 / 共53页
亲,该文档总共53页,到这儿已超出免费预览范围,如果喜欢就下载吧!
下载资源
资源描述

个人博客网站设计外文文献及翻译及感应式ID卡办公门禁考勤一卡通管理系统方案计划书.docx

《个人博客网站设计外文文献及翻译及感应式ID卡办公门禁考勤一卡通管理系统方案计划书.docx》由会员分享,可在线阅读,更多相关《个人博客网站设计外文文献及翻译及感应式ID卡办公门禁考勤一卡通管理系统方案计划书.docx(53页珍藏版)》请在冰点文库上搜索。

个人博客网站设计外文文献及翻译及感应式ID卡办公门禁考勤一卡通管理系统方案计划书.docx

个人博客网站设计外文文献及翻译及感应式ID卡办公门禁考勤一卡通管理系统方案计划书

外文文献资料

收集:

应用技术学院计算机科学与技术

(外文文件名:

JSPSplittingforImprovingExecutionPerformance)

Abstract

SplittingaJSP(JavaServerPages)pageintofragmentscanimprovetheexecutionperformanceofJSPpageswhentheWebapplicationservercanseparatelycachetheWebpagefragmentsobtainedbyexecutingtheJSPfragments.IfaJSPpageissplitintofragmentsaccordingtotheupdatefrequencyofeachportionoftheWebpageobtainedbyexecutingtheJSPpage,allofthesplitJSPfragmentsdonotneedtobeexecutedagainwhenonlyasinglecachedpartofaWebpageexpires.Inaddition,thefragmentsofaJSPpagecanbereusedbyotherJSPpages.Inbothcases,theexecutionresultsofalloftheJSPfragmentssplitfromtheJSPpagemustbethesameasfromtheJSPpagebeforeitwassplit.Inthispaper,weproposeJSPsplitting,whichisamethodofsplittingaJSPpageintofragmentsmaintainingthedataandcontroldependencesexistingintheoriginalJSPpage.JSPsplittingautomaticallydetectstheportionsneededtomaintainthedataandcontroldependencesofaJSPpagefortheportionsthatdeveloperswanttosplitfromtheJSPpage.WeimplementedJSPsplittingwithaGUItool,andconfirmedthatthesplitJSPfragmentswereexecutedinthesameasthewayastheJSPpagebeforethesplit.ExperimentalresultsshowthattheresponsetimetoaccessaWebpagecanbereducedbysplittingaJSPpageintofragmentsandsettingdifferentcachingperiodsfortheWebpagefragmentsobtainedbyexecutingtheJSPfragments.

1.Introduction

SplittingaJSP(JavaServerPages)pageintofragmentscanimprovetheexecutionperformanceofsomeJSPpageswhentheWebapplicationservercanseparatelycachetheWebpagefragmentsobtainedbyexecutingthefragmentsoftheJSPpage.TheperiodofcachingdynamicWebpagesgeneratedbyaJSPengineislimitedduetothedynamicnatureofthecontent.WhenthecachedcontentofaWebpagegeneratedbyaJSPengineisupdated,theentireJSPpagemustbeexecutedagainontheapplicationserver,eventhoughthechangeoftheWebpagemightbesmall.SincefrequentupdatesofcachedWebpagesincreasetheloadonanapplicationserver,itisreasonabletosplitaJSPpageintofragmentsandsetdifferentcachingperiodsfortheWebpagefragmentsobtainedbyexecutingtheJSPfragments.Ofcourse,theWebpagefragmentsmustbemergedintoafinalWebpagecorrectly.TheDynacachetechnologyofIBMWebSphereApplicationServerallowsWebpagefragmentstohavedifferentcachingperiods.CachetaglibrariesprovidedbytheApacheJakartaProjectalsosupportdifferentcachingperiodsfortheJSPfragments.Inaddition,ESI(EdgeSideIncludes)technologyprovidesamechanismtocacheWebpagefragmentswithdifferentcachingperiods,andtomergethemintoafinalWebpageonanedgeserver.

TheapplicationoffloadtechnologyofIBMWebSphereEdgeServerisanotherapproachtoimprovetheexecutionperformanceofJSPpages.ThistechnologyallowsoneormoreJSPfragmentstobecachedandexecutedonedgeservers.TheremainingJSPfragmentsaredeployedontheapplicationserverandarecalledbytheJSPfragmentsexecutedontheedgeserver.Thus,someoftheexecutionofaJSPpageisoffloadedtotheedgeserver.

SplittingaJSPpagefacilitatesthereuseofJSPfragments.WhenaWebapplicationconsistsofmanyJSPpages,thesameportionstendtoexistinmanyJSPpages.Examplesaretheframes,thebanners,theheaders,andetc.

WhenaJSPpageissplitintofragments,thetotalexecutionresultofallofthefragmentsmustbethesameastheJSPpagebeforeitwassplit.Inaddition,whenthefragmentsofaJSPpageareexecutedindifferentservers,eachfragmentneedstobeexecutedwithouttheotherfragments.Inordertosatisfytheseconditions,weproposeJSPsplitting,whichisthemethodofsplittingaJSPpageintofragmentsdescribedinthispaper.SinceitisverydifficulttoautomaticallyfindthebestwaytosplitaJSPpageintofragmentsforsomeparticularpurpose,weassumethatthedeveloperswillselecttheportionsthattheywanttosplitintofragments.InordertoexecuteallofthedividedJSPpagescorrectly,JSPsplittingautomaticallydetectsanyportionsthatmustbemovedorcopiedintoafragmentwiththeselectedportions.ThedetectionisdonebasedontheanalysisofthedataandcontroldependencesexistinginaJSPpage.JSPsplittingissimilartotheprogramslicingtechniquethatslicesaprogrambasedonthedataandthecontroldependences.However,theprogramslicingtechniquedoesnottakeintoaccountthattheslicedprogramsareexecutedindependentlyandthatthetotalexecutionresultoftheslicedprogramsmustbethesameastheprogrambeforethedivision.Inaddition,sincedataispassedtotheJSPengineduringtheexecutionofJSPpages,thesourceprogramoftheJSPengine,suchasApacheTomcat,isrequiredinordertoanalyzethedatadependencescorrectly.Thisisimpractical,becausethesourceprogramoftheJSPengineisverylargeandcomplex.JSPsplittingavoidstheanalysisoftheJSPenginebyutilizingthecharacteristicsofJSP.

Therestofthepaperisorganizedasfollows.Section2explainsthedifficultyofsplittingaJSPpageintofragments.Section3givesdetailsofthealgorithmtosplitaJSPpage.Section4describestheJSPsplittingtoolthatisanimplementationofJSPsplittinganddemonstrateshowasampleJSPpageissplitbythetool.Section5showstheexperimentalresultsobtainedbyexecutingthesplitJSPfragmentswithdifferentcachingperiodsontheIBMWebSphereApplicationServer.Section6discussespreviousworkinrelationtoourcontributions.Ourconclusionsformthefinalsection.

2.DifficultyofSplittingaJSPPage

Inthispaper,splittingaJSPpagemeansthatsomeportionsoftheJSPpagearecutfromtheJSPpageandsavedasnewJSPpages.SuchnewlycreatedJSPpagesareincludedintheoriginalJSPpagebyusingsomemechanismsuchasthejsp:

includetag.WecalltheincludedJSPpagetheJSPfragment,andcalltheJSPpagethatinvokestheJSPfragmentsthemasterJSPpage.AmasterJSPpageinvokesJSPfragmentsandreceivesWebpagefragmentsobtainedbyexecutingthem.ThenthemasterJSPpagemergesitsownWebpagefragmentwiththeWebpagefragmentsreceivedfromtheJSPfragments,andcreatesafinalWebpage.

JSPfragmentsarenotalwaysexecutedinthesameserveroratthesametime.TheapplicationoffloadtechnologyallowsamasterJSPpageandJSPfragmentstobeexecutedindifferentservers.WhentheESImechanismisused,esi:

includetagsareputintoaWebpagefragmentobtainedbyexecutingamasterJSPpageandinterpretedinanedgeserverthatsupportstheESImechanism.Inthiscase,theedgeservercheckswhetherornottheWebpagefragmentsspecifiedbyesi:

includetagsexistinitscache.IfthecontentsofWebpagefragmentsarenotcachedorhaveexpired,theJSPfragmentsareinvokedfromtheedgeserver,andexecutedinoneormoreapplicationservers.IfdifferentcachingperiodscanbegiventotheWebpagefragmentsobtainedbyexecutingtheJSPfragments,eachJSPfragmentisexecutedonlywhenthecachedcontenthasexpired.TheDynacachetechnology,theESImechanism,andthecachetaglibrariescansupportdifferentcachingperiodsforWebpagefragments.

WhenaJSPpageissplitintofragments,thefollowingtwoconditionsmustbesatisfiedevenifthemasterJSPpageandtheJSPfragmentsarenotexecutedinthesameserveroratthesametime.

Cond.1-1ThetotalexecutionresultofamasterJSPpageandtheJSPfragmentsisthesameastheJSPpagebeforeitwassplit.

Cond.1-2EachJSPpage,whichiseitheramasterJSPpageoraJSPfragment,maybeexecutedwithoutotherJSPpages.

TheseconditionsaresatisfiedbymaintainingthedataandcontroldependencesexistinginaJSPpageaftertheJSPpagehasbeensplitintofragments.However,itishardworkfordeveloperstodetectdataandcontroldependentportionsinaJSPpage,becausethedataandcontrolflowofaJSPpagecanbedividedamongtheJSPpage,theJSPenginethatexecutestheJSPpage,anyJavabeansusedintheJSPpage,andetc..Thus,anaturalsolutioncallsforautomaticallydetectingdata-dependentandcontrol-dependentportionslinkedtotheportionsthatdeveloperswanttosplit.

TheprogramslicingtechniquedetectsasetofprogramstatementsthataffectaprogramstatementSbyanalyzingthedataandcontroldependencesexistingintheprogram.OneprogramsliceconsistsofthedetectedsetofprogramstatementsandthestatementS.Thistechniqueisusefulwhendebuggingormaintaininglargeprograms.SinceJSPpagesarecompiledintoservletprogramsbyusingaJSPcompilersuchastheApacheJaspercompiler[4],JSPslicescanbeobtainedbyapplyingprogramslicingtechniquetoaservletprogramcompiledfromaJSPpage.However,theprogramslicingtechniqueisnotsufficienttosplitaJSPpageintofragments,becausethetechniquedoesnottakeintoaccountthatprogramslicesareexecutedindependently.

Figure1showsapartofasampleJSPpageandasampleservletprogramcompiledfromtheJSPpage.Figure2(a)showsthedatadependencegraphobtainedfromtheservletprogram.Inaprogram,whenastatementS1assignsavaluetoavariableandastatementS2followingS1usesthatvalue,atruedatadependenceexistsbetweenS1andS2.SuchadatadependenceisdenotedasS1S2.InFigure2(a),duetothedatadependences,theprogramsliceforthestatementS10consistsofS1,S9,andS10.Iftheprogramsliceiscutfromtheservletprogram,theremainingprogramstatementshaveerrorsbecausethedatadependencesS1S2,S11,andS12andS9

展开阅读全文
相关资源
猜你喜欢
相关搜索
资源标签

当前位置:首页 > 党团工作 > 入党转正申请

copyright@ 2008-2023 冰点文库 网站版权所有

经营许可证编号:鄂ICP备19020893号-2