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

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