All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.logicbus.backend.ServiceAccessController Maven / Gradle / Ivy

There is a newer version: 1.6.16
Show newest version
package com.logicbus.backend;

import com.logicbus.models.catalog.Path;
import com.logicbus.models.servant.ServiceDescription;

/**
 * 基于服务的访问控制器
 * 
 * 

* 本AccessController实现表达了这样的场景:
* - 限定每个服务的访问并发数,通过client.maxThead环境变量控制,缺省为10;
* - 限定每个服务在一分钟内的访问次数,通过client.maxTimesPerMin环境变量控制,缺省值为1000.
* * @author duanyy * * @version 1.0.1 [20140402 duanyy]
* - {@link com.logicbus.backend.AccessController AccessController}有更新 * @version 1.6.4.35 [20160315 duanyy]
* - 实现XMLConfigurable和Configurable接口
*/ public class ServiceAccessController extends IpAndServiceAccessController { @Override public String createSessionId(Path serviceId, ServiceDescription servant, Context ctx){ return serviceId.getPath(); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy