接口 DestinationRuleOuterClass.DestinationRuleOrBuilder
-
- 所有超级接口:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- 所有已知实现类:
DestinationRuleOuterClass.DestinationRule,DestinationRuleOuterClass.DestinationRule.Builder
public static interface DestinationRuleOuterClass.DestinationRuleOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 java.lang.StringgetExportTo(int index)A list of namespaces to which this destination rule is exported.com.google.protobuf.ByteStringgetExportToBytes(int index)A list of namespaces to which this destination rule is exported.intgetExportToCount()A list of namespaces to which this destination rule is exported.java.util.List<java.lang.String>getExportToList()A list of namespaces to which this destination rule is exported.java.lang.StringgetHost()The name of a service from the service registry.com.google.protobuf.ByteStringgetHostBytes()The name of a service from the service registry.DestinationRuleOuterClass.SubsetgetSubsets(int index)One or more named sets that represent individual versions of a service.intgetSubsetsCount()One or more named sets that represent individual versions of a service.java.util.List<DestinationRuleOuterClass.Subset>getSubsetsList()One or more named sets that represent individual versions of a service.DestinationRuleOuterClass.SubsetOrBuildergetSubsetsOrBuilder(int index)One or more named sets that represent individual versions of a service.java.util.List<? extends DestinationRuleOuterClass.SubsetOrBuilder>getSubsetsOrBuilderList()One or more named sets that represent individual versions of a service.DestinationRuleOuterClass.TrafficPolicygetTrafficPolicy()Traffic policies to apply (load balancing policy, connection pool sizes, outlier detection).DestinationRuleOuterClass.TrafficPolicyOrBuildergetTrafficPolicyOrBuilder()Traffic policies to apply (load balancing policy, connection pool sizes, outlier detection).booleanhasTrafficPolicy()Traffic policies to apply (load balancing policy, connection pool sizes, outlier detection).
-
-
-
方法详细资料
-
getHost
java.lang.String getHost()
The name of a service from the service registry. Service names are looked up from the platform's service registry (e.g., Kubernetes services, Consul services, etc.) and from the hosts declared by [ServiceEntries](https://istio.io/docs/reference/config/networking/service-entry/#ServiceEntry). Rules defined for services that do not exist in the service registry will be ignored. *Note for Kubernetes users*: When short names are used (e.g. "reviews" instead of "reviews.default.svc.cluster.local"), Istio will interpret the short name based on the namespace of the rule, not the service. A rule in the "default" namespace containing a host "reviews" will be interpreted as "reviews.default.svc.cluster.local", irrespective of the actual namespace associated with the reviews service. _To avoid potential misconfigurations, it is recommended to always use fully qualified domain names over short names._ Note that the host field applies to both HTTP and TCP services.
string host = 1 [(.google.api.field_behavior) = REQUIRED];- 返回:
- The host.
-
getHostBytes
com.google.protobuf.ByteString getHostBytes()
The name of a service from the service registry. Service names are looked up from the platform's service registry (e.g., Kubernetes services, Consul services, etc.) and from the hosts declared by [ServiceEntries](https://istio.io/docs/reference/config/networking/service-entry/#ServiceEntry). Rules defined for services that do not exist in the service registry will be ignored. *Note for Kubernetes users*: When short names are used (e.g. "reviews" instead of "reviews.default.svc.cluster.local"), Istio will interpret the short name based on the namespace of the rule, not the service. A rule in the "default" namespace containing a host "reviews" will be interpreted as "reviews.default.svc.cluster.local", irrespective of the actual namespace associated with the reviews service. _To avoid potential misconfigurations, it is recommended to always use fully qualified domain names over short names._ Note that the host field applies to both HTTP and TCP services.
string host = 1 [(.google.api.field_behavior) = REQUIRED];- 返回:
- The bytes for host.
-
hasTrafficPolicy
boolean hasTrafficPolicy()
Traffic policies to apply (load balancing policy, connection pool sizes, outlier detection).
.istio.networking.v1alpha3.TrafficPolicy traffic_policy = 2;- 返回:
- Whether the trafficPolicy field is set.
-
getTrafficPolicy
DestinationRuleOuterClass.TrafficPolicy getTrafficPolicy()
Traffic policies to apply (load balancing policy, connection pool sizes, outlier detection).
.istio.networking.v1alpha3.TrafficPolicy traffic_policy = 2;- 返回:
- The trafficPolicy.
-
getTrafficPolicyOrBuilder
DestinationRuleOuterClass.TrafficPolicyOrBuilder getTrafficPolicyOrBuilder()
Traffic policies to apply (load balancing policy, connection pool sizes, outlier detection).
.istio.networking.v1alpha3.TrafficPolicy traffic_policy = 2;
-
getSubsetsList
java.util.List<DestinationRuleOuterClass.Subset> getSubsetsList()
One or more named sets that represent individual versions of a service. Traffic policies can be overridden at subset level.
repeated .istio.networking.v1alpha3.Subset subsets = 3;
-
getSubsets
DestinationRuleOuterClass.Subset getSubsets(int index)
One or more named sets that represent individual versions of a service. Traffic policies can be overridden at subset level.
repeated .istio.networking.v1alpha3.Subset subsets = 3;
-
getSubsetsCount
int getSubsetsCount()
One or more named sets that represent individual versions of a service. Traffic policies can be overridden at subset level.
repeated .istio.networking.v1alpha3.Subset subsets = 3;
-
getSubsetsOrBuilderList
java.util.List<? extends DestinationRuleOuterClass.SubsetOrBuilder> getSubsetsOrBuilderList()
One or more named sets that represent individual versions of a service. Traffic policies can be overridden at subset level.
repeated .istio.networking.v1alpha3.Subset subsets = 3;
-
getSubsetsOrBuilder
DestinationRuleOuterClass.SubsetOrBuilder getSubsetsOrBuilder(int index)
One or more named sets that represent individual versions of a service. Traffic policies can be overridden at subset level.
repeated .istio.networking.v1alpha3.Subset subsets = 3;
-
getExportToList
java.util.List<java.lang.String> getExportToList()
A list of namespaces to which this destination rule is exported. The resolution of a destination rule to apply to a service occurs in the context of a hierarchy of namespaces. Exporting a destination rule allows it to be included in the resolution hierarchy for services in other namespaces. This feature provides a mechanism for service owners and mesh administrators to control the visibility of destination rules across namespace boundaries. If no namespaces are specified then the destination rule is exported to all namespaces by default. The value "." is reserved and defines an export to the same namespace that the destination rule is declared in. Similarly, the value "*" is reserved and defines an export to all namespaces. NOTE: in the current release, the `exportTo` value is restricted to "." or "*" (i.e., the current namespace or all namespaces).
repeated string export_to = 4;- 返回:
- A list containing the exportTo.
-
getExportToCount
int getExportToCount()
A list of namespaces to which this destination rule is exported. The resolution of a destination rule to apply to a service occurs in the context of a hierarchy of namespaces. Exporting a destination rule allows it to be included in the resolution hierarchy for services in other namespaces. This feature provides a mechanism for service owners and mesh administrators to control the visibility of destination rules across namespace boundaries. If no namespaces are specified then the destination rule is exported to all namespaces by default. The value "." is reserved and defines an export to the same namespace that the destination rule is declared in. Similarly, the value "*" is reserved and defines an export to all namespaces. NOTE: in the current release, the `exportTo` value is restricted to "." or "*" (i.e., the current namespace or all namespaces).
repeated string export_to = 4;- 返回:
- The count of exportTo.
-
getExportTo
java.lang.String getExportTo(int index)
A list of namespaces to which this destination rule is exported. The resolution of a destination rule to apply to a service occurs in the context of a hierarchy of namespaces. Exporting a destination rule allows it to be included in the resolution hierarchy for services in other namespaces. This feature provides a mechanism for service owners and mesh administrators to control the visibility of destination rules across namespace boundaries. If no namespaces are specified then the destination rule is exported to all namespaces by default. The value "." is reserved and defines an export to the same namespace that the destination rule is declared in. Similarly, the value "*" is reserved and defines an export to all namespaces. NOTE: in the current release, the `exportTo` value is restricted to "." or "*" (i.e., the current namespace or all namespaces).
repeated string export_to = 4;- 参数:
index- The index of the element to return.- 返回:
- The exportTo at the given index.
-
getExportToBytes
com.google.protobuf.ByteString getExportToBytes(int index)
A list of namespaces to which this destination rule is exported. The resolution of a destination rule to apply to a service occurs in the context of a hierarchy of namespaces. Exporting a destination rule allows it to be included in the resolution hierarchy for services in other namespaces. This feature provides a mechanism for service owners and mesh administrators to control the visibility of destination rules across namespace boundaries. If no namespaces are specified then the destination rule is exported to all namespaces by default. The value "." is reserved and defines an export to the same namespace that the destination rule is declared in. Similarly, the value "*" is reserved and defines an export to all namespaces. NOTE: in the current release, the `exportTo` value is restricted to "." or "*" (i.e., the current namespace or all namespaces).
repeated string export_to = 4;- 参数:
index- The index of the value to return.- 返回:
- The bytes of the exportTo at the given index.
-
-