Sun Java System Directory Server Enterprise Edition 6.1 管理指南

Procedure配置数据视图的相似性

将连接分配给某个连接处理程序时,连接上的请求对于为该连接处理程序配置的数据视图列表是公开的,或者对于所有已配置的数据视图是公开的。该连接上的后续请求只对用于第一个请求的数据视图公开。

您可以使用 DSCC 执行此任务。有关信息,请参见目录服务控制中心界面和 DSCC 联机帮助。

  1. 启用数据视图的相似性。


    $ dpconf set-connection-handler-prop -h host -p port connection-handler-name \
     enable-data-view-affinity:true
  2. (可选的)将连接处理程序配置为将请求路由到数据视图的自定义列表。


    $ dpconf set-connection-handler-prop -h host -p port connection-handler-name data-view-routing-policy:custom
  3. (可选的)配置数据视图列表。


    $ dpconf set-connection-handler-prop -h host -p port connection-handler-name \
     data-view-routing-custom-list:view-name [data-view-routing-custom-list:view-name ...]

    要在现有数据视图列表中添加数据视图,请使用以下命令:


    $ dpconf set-connection-handler-prop -h host -p port connection-handler-name \
     data-view-routing-custom-list+:view-name
    

    要从现有数据视图列表中删除数据视图,请使用以下命令:


    $ dpconf set-connection-handler-prop -h host -p port connection-handler-name \
     data-view-routing-custom-list-:view-name