vraptor dashboard by gui

3997
    


来源:
Licence:
联系:
分类:
平台:
环境:
大小:
更新:
标签:
联系方式 :
免费下载 ×

下载APP,支持永久资源免费下载

限免产品服务请联系qq:1585269081

下载APP
免费下载 ×

下载APP,支持永久资源免费下载

下载APP 免费下载
下载 ×

下载APP,资源永久免费


如果出现不能下载的情况,请联系站长,联系方式在下方。

免费下载 ×

下载论文助手APP,资源永久免费

免费获取

如果你已经登录仍然出现不能下载的情况,请【点击刷新】本页面或者联系站长



vraptor-dash A dashboard with several tools for your vraptor project. installing Its possible to download its jar from mavens repository (see mvnrepository.com) or any other compatible tool such as maven (gradle, ivy and so on): br.com.caelum.vraptor vraptor-dash 1.0.0 compile Configuring Add the entity to your hibernate.cfg.xml: br.com.caelum.vraptor.dash.statement.Statement br.com.caelum.vraptor.dash.uristats.Stat Create a component that implements StatementAwareUser: @Component public class StatementCheck implements StatementAwareUser, IdeableUser { private final User user; public StatementCheck(User user) { this.user = user; } public Serializable getId() { return user.getId(); } public boolean canCreateStatements() { return true; // this is the admin user who is capable of seeing all statements and creating new ones. this is "GOD" } } Accessing Go to /dash/statements Do queries as: select count(id), uri from DashUriStat group by uri select count(id), userId from DashUriStat group by userId Auditing access to specific methods If you want to log who access some methods, register: AuditLogInterceptor And annotate your method with the parameters to be logged: @Audit("client") public void edit(Client client) { ... } Remember that you need the logged in user to implement the interface IdeableUser Optimizing cache strategies Add the following filter to your web.xml and remember to configure DashUriStat: vraptor-dash-cache br.com.caelum.vraptor.dash.cache.CacheCheckFilter vraptor-dash-cache /* Now the Stat object has the fields size , etag . If hasEtag = false, the etag is automatically generated (but not returned to the client). So now its possible to check how much kbytes and seconds one could save from using cache in not-yet-cached pages: select uri, verb, etag, size*(count(uri)-1)/1024, time*(count(uri)-1)/1000 from DashUriStat where hasEtag=false and (cache is null or cache=="") group by uri, verb, etag Per method, which shows how important it is to improve one method: select resource, method, (sum(size)- (select sum(avg(d.size)) from DashUriStat as d where d.resource=resource and d.method=method group by etag, sum(avg(d.size))) )/1024 as ssss,(sum(time)-avg(time))/1000 as tttt from DashUriStat where cache = and hadEtag = false and verb=GET group by resource, method order by resource, method Analyze where you can gain the most and optimize it. Help Get help at VRaptors mailing list


免费下载 ×

下载APP,支持永久资源免费下载

下载APP 免费下载
温馨提示
请用电脑打开本网页,即可以免费获取你想要的了。
扫描加我微信 ×

演示

×
登录 ×


下载 ×
论文助手网
论文助手,最开放的学术期刊平台
				暂无来源信息			 
回复
来来来,吐槽点啥吧

作者联系方式

×

向作者索要->