也就是说,当您调用某个选择器时,它使用选择条件和日期范围条目来选择目标。
That is, when a selector is invoked, it selects a destination using the selection criteria and date range entries.
换句话说,与选择器本身相比,您选择的目标不能具有不同操作名称、输入或输出的接口。
In other words, you may not select a destination that has an interface with a different operation name, input, or output than the selector itself.
请记住,选择器的接口操作必须完全匹配目标的接口操作。
Remember, the interface operations of your selector must match exactly the interface operations of the destinations.
通常,您可以根据选择器分派给的目标选择接口。
Often, you choose the interface based on the destinations that the selector dispatches to.
路由采用与服务选择器相同的方式确定,而路由后应用到服务请求的转换将确定目标服务和接口。
Routing is determined in the same way as for the service selector pattern and transformation is applied to a service request after routing has determined the target service and interface.
为了实现这个RESTful服务,要实现一个函数选择器类,它根据HTTP方法返回目标函数名,这与第一种方法相同。
To implement this RESTful service, a function selector class will be implemented to return the target function name according to the HTTP methods, which is the same as Approach 1.
选择器的基本用途是进行简单的分派,这意味着您可以将服务调用的目标从一个组件或导入动态地重新路由到或导入另一个组件。
A basic use of a selector is for simple dispatch, which means you can dynamically reroute the destination of a service call from one component or import to another.
在练习1中,您将创建一个具有一个缺省目标和两个日期范围目标的选择器。
In exercise 1, you will create a selector that has one default destination and two date range destinations.
您可以在运行时更新或修改选择器及其对应的日期范围的目标,而无需重新部署初始应用程序。
You can update or modify the destinations of a selector and their corresponding date ranges at runtime without redeploying the original application.
选择器的目标可以是相同模块的组装关系图中的组件,或另一个模块的导出。
The destination of a selector can be a component inside the assembly diagram of the same module or an export of another module.
与规则组一样,选择器拥有日期范围条目、选择条件和缺省目标。
Like a rule group, a selector has date range entries, selection criteria, and a default destination.
然后,将使用管理控制台更新选择器的目标。
Then you will update the destination of the selector using the administrative console.
在练习2中,您将使用管理控制台更改选择器的缺省目标。
In exercise 2, you use the administrative console to alter the default destination of the selector.
如果选择当前日期,那么当前日期位于目标的起始日期到终止日期范围中时,选择器会选择一个目标。
If you choose the current date criteria, then the selector selects a destination when the current date falls within the start date and end date of the destination.
您在选择器中选择的目标与为规则组中选择的相同。
You select a destination in a selector the same as your would for a rule group.
为协调每个接口之间的差异,选择器将对应的接口映射设置为目标,而不是将导入设置为目标。
To reconcile the differences between each interface, the selector sets the corresponding interface maps as destinations, rather than setting the imports as destinations.
请记住,选择器的接口操作必须匹配目标的所有接口操作。
Keep in mind that the interface operations of the selector must match all of the interface operations of the destinations.
选择器允许您提供两个目标,并指示新的目标在1月1日生效。
A selector allows you to provide two destinations and indicate that the new one takes effect on January 1.
在下一部分中,您将了解如何使用选择器,将服务调用的目标从公司A更改到另一家成本更低、又可以提供全天候服务的公司。
In the next section, you will see how using selectors can let you change the destination of the service call from company a to another company's service which costs more, but is available 24x7.
在下一部分中,您将了解如何使用选择器,将服务调用的目标从公司A更改到另一家成本更低、又可以提供全天候服务的公司。
In the next section, you will see how using selectors can let you change the destination of the service call from company a to another company's service which costs more, but is available 24x7.
应用推荐