com.sun.enterprise.config.serverbeans
Interface ClusterRef

All Superinterfaces:
org.jvnet.hk2.config.ConfigBeanProxy, org.jvnet.hk2.component.Injectable, Ref

public interface ClusterRef
extends org.jvnet.hk2.config.ConfigBeanProxy, org.jvnet.hk2.component.Injectable, Ref

Element relating a reference to a cluster to be load balanced to an (optional) health-checker


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jvnet.hk2.config.ConfigBeanProxy
org.jvnet.hk2.config.ConfigBeanProxy.Duck
 
Method Summary
 HealthChecker getHealthChecker()
          Gets the value of the healthChecker property.
 java.lang.String getLbPolicy()
          Gets the value of the lbPolicy property.
 java.lang.String getLbPolicyModule()
          Gets the value of the lbPolicyModule property.
 java.lang.String getRef()
          Gets the value of the ref property.
 void setHealthChecker(HealthChecker value)
          Sets the value of the healthChecker property.
 void setLbPolicy(java.lang.String value)
          Sets the value of the lbPolicy property.
 void setLbPolicyModule(java.lang.String value)
          Sets the value of the lbPolicyModule property.
 void setRef(java.lang.String value)
          Sets the value of the ref property.
 
Methods inherited from interface org.jvnet.hk2.component.Injectable
injectedInto
 
Methods inherited from interface org.jvnet.hk2.config.ConfigBeanProxy
createChild, deepCopy, getParent, getParent
 

Method Detail

getRef

@NotNull
@Pattern(regexp="[A-Za-z0-9_][A-Za-z0-9\\-_\\.;]*")
java.lang.String getRef()
Gets the value of the ref property.

Specified by:
getRef in interface Ref
Returns:
possible object is String

setRef

void setRef(java.lang.String value)
            throws java.beans.PropertyVetoException
Sets the value of the ref property.

Specified by:
setRef in interface Ref
Parameters:
value - allowed object is String
Throws:
java.beans.PropertyVetoException

getLbPolicy

java.lang.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

void setLbPolicy(java.lang.String value)
                 throws java.beans.PropertyVetoException
Sets the value of the lbPolicy property.

Parameters:
value - allowed object is String
Throws:
java.beans.PropertyVetoException

getLbPolicyModule

java.lang.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

void setLbPolicyModule(java.lang.String value)
                       throws java.beans.PropertyVetoException
Sets the value of the lbPolicyModule property.

Parameters:
value - allowed object is String
Throws:
java.beans.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

void setHealthChecker(HealthChecker value)
                      throws java.beans.PropertyVetoException
Sets the value of the healthChecker property.

Parameters:
value - allowed object is HealthChecker
Throws:
java.beans.PropertyVetoException


Copyright © 2012 GlassFish Community. All Rights Reserved.