2006-07-15
分类:未分类
阅读(828) 评论(0)

设置持久化影射实现
这个api用来存储xpdl、应用和tool agent中的影射信息。shark与dods一起完成持久化实现。
你可以提供你自己的应用持久化影射api,并且替换当前的实现。默认的实现是dods实现。
#====================================================================
# default application map persistence manager is dods
#
#——————————————————————–
#
# dods application map persistent manager defaults
#
applicationmappersistencemanagerclassname=org.enhydra.shark.appmappersistence.dodsapplicationmappingmgr
# if set to true, the debug information on application mapping transaction will be
# written to console
#dodsapplicationmappingmgr.debug=false
注意:如果你注释了上面的行,shark将在没有持久化api实现的情况下工作。
设置委派管理器实现类
如果你想要创建你自己的assignment 管理器类,这将决定哪个委派被活动创建,他能通过assignmentmanager接口,实现他自己的assignment管理器。
我们可以通过以下语句配置shark:
assignmentmanagerclassname=org.enhydra.shark.assignment.standardassignmentmanager
在这个接口上,shark有以下三种不同的实现:
l 标准实现:通过一个参数返回用户列表,或者列表中没有用户的话,它将返回创建相关进程的用户。
l 历史关系:如果在一些xpdl的活动定义中有一些外部属性被定义,这个实现将通过检查委派历史来作出对委派创建的判断
l xpdl直接参与者影射:他为在xpdl中和活动参与者具有相同id值得用户创建委派。
注意:如果你不设置任何实现的话(你简单地注释掉上面提及的行),shark将使用默认的过程。在活动中,委派的标准实现api不是非常有用的。它基本上只能返回第一个有用的选项。
设置authentication manager实现类
shark提供了两个authentication和usergroupapi的实现类。第一个是基于数据库的。(使用数据库来存取组织结构的信息),另一个是基于ldap的(使用ldap服务器得到组织结构)
下面是这段的配置方法:
#====================================================================
# default authenticationmanager is dods
#
# warning: this and user/group manager must comply.
#——————————————————————–
#
#authenticationmanagerclassname=org.enhydra.shark.authentication.ldapauthenticationmanager
authenticationmanagerclassname=org.enhydra.shark.authentication.dodsauthenticationmanager
# the database used for authentication when using dods implementation
#dodsauthenticationmanager.databasename=sharkdb
一个重要的情况被提及,如果你使用authenticationapi的ldap实现,那么你也必须使用usergroupapi的ldap实现。
在默认情况下,shark使用基于dods的数据库实现,并且可以转换到ldap实现,你可以简单地注释掉配置文件中关于dods的行,然后解除ldap行上的注释并且编辑它的设置来转换二者。
设置chacheing实现
shark通过cache实现的lru来管理进程和资源对象。在默认情况下,shark被配置成使用如下的cache实现。这个时间在客户端上能够高速地被使用。
下面是配置该属性的配置文件片断:
#====================================================================
# default cache is lru
#
#——————————————————————–
# cache defaults
#
cachemanagerclassname=org.enhydra.shark.caching.lrucachemgr
# default lru cache sizes (lru implementation default is 100 for each cache)
#lruprocesscache.size=100
#lruresourcecache.size=100
注意:如果你不设置任何实现(你可以简单地注释点上述行),shark将在没有任何缓存的条件下工作。

版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com 特别注意:本站所有转载文章言论不代表本站观点! 本站所提供的图片等素材,版权归原作者所有,如需使用,请与原作者联系。未经允许不得转载:
IDC资讯中心 »
shark工作流文档翻译活动–shark(5)-JSP教程,资料/其它