Interface ClusterRef
- All Superinterfaces:
org.jvnet.hk2.config.ConfigBeanProxy,jakarta.validation.Payload,Ref
@ReferenceConstraint(skipDuringCreation=true,
payload=ClusterRef.class)
public interface ClusterRef
extends org.jvnet.hk2.config.ConfigBeanProxy, Ref, jakarta.validation.Payload
Element relating a reference to a cluster to be load balanced to an (optional) health-checker
-
Method Summary
Modifier and TypeMethodDescriptionGets the value of the healthChecker property.Gets the value of the lbPolicy property.Gets the value of the lbPolicyModule property.@NotNull @Pattern(regexp="[A-Za-z0-9_][A-Za-z0-9\\-_\\.;]*",message="{config.invalid.name}") StringgetRef()Gets the value of the ref property.voidsetHealthChecker(HealthChecker value) Sets the value of the healthChecker property.voidsetLbPolicy(String value) Sets the value of the lbPolicy property.voidsetLbPolicyModule(String value) Sets the value of the lbPolicyModule property.voidSets the value of the ref property.Methods inherited from interface org.jvnet.hk2.config.ConfigBeanProxy
createChild, deepCopy, getParent, getParent
-
Method Details
-
getRef
@NotNull @Pattern(regexp="[A-Za-z0-9_][A-Za-z0-9\\-_\\.;]*", message="{config.invalid.name}") @RemoteKey(message="{resourceref.invalid.cluster-ref}", type=Cluster.class) @NotNull @Pattern(regexp="[A-Za-z0-9_][A-Za-z0-9\\-_\\.;]*",message="{config.invalid.name}") String getRef()Gets the value of the ref property. -
setRef
Sets the value of the ref property.- Specified by:
setRefin interfaceRef- Parameters:
value- allowed object isString- Throws:
PropertyVetoException
-
getLbPolicy
String getLbPolicy()Gets the value of the lbPolicy property. load balancing policy to be used for this cluster. Possible values are round-robin , weighted-round-robin or user-defined. round-robin is the default. For weighted-round-robin, the weights of the instance are considered while load balancing. For user-defined, the policy is implemented by a shared library which is loaded by the load balancer and the instance selected is delegated to the loaded module.- Returns:
- possible object is
String
-
setLbPolicy
Sets the value of the lbPolicy property.- Parameters:
value- allowed object isString- Throws:
PropertyVetoException
-
getLbPolicyModule
String getLbPolicyModule()Gets the value of the lbPolicyModule property. Specifies the absolute path to the shared library implementing the user-defined policy. This should be specified only when the lb-policy is user-defined. The shared library should exist and be readable in the machine where load balancer is running.- Returns:
- possible object is
String
-
setLbPolicyModule
Sets the value of the lbPolicyModule property.- Parameters:
value- allowed object isString- Throws:
PropertyVetoException
-
getHealthChecker
HealthChecker getHealthChecker()Gets the value of the healthChecker property. Each cluster would be configured for a ping based health check mechanism.- Returns:
- possible object is
HealthChecker
-
setHealthChecker
Sets the value of the healthChecker property.- Parameters:
value- allowed object isHealthChecker- Throws:
PropertyVetoException
-