FileDocCategorySizeDatePackage
LoadBalancer.javaAPI DocGlassfish v2 API3993Fri May 04 22:30:50 BST 2007com.sun.appserv.management.ext.lb

LoadBalancer

public interface LoadBalancer implements com.sun.appserv.management.base.AMX
Runtime counterpart for the config MBean {@link com.sun.appserv.management.config.LoadBalancerConfig} representing the load-balancer element.

Fields Summary
public static final String
J2EE_TYPE
The j2eeType as returned by {@link com.sun.appserv.management.base.AMX#getJ2EEType}.
Constructors Summary
Methods Summary
public voidapplyLBChanges()
Applies changes in the corresponding configuration to this LB

public java.util.DategetLastApplied()
Returns the timestamp of the most recent application of corresponding LBConfig

public java.util.DategetLastExported()
Returns the timestamp of the most recent export of corresponding LBConfig

public java.util.DategetLastResetTime()
Returns the timestamp of the last time the stats on this loadbalancer were reset

public java.lang.StringgetLoadBalancerXML()
Exports the corresponding LBConfig information and returns the contents as a string.

see
com.sun.appserv.management.config.LBConfig

public java.lang.StringgetStatus(java.lang.String instanceName)
Returns the uhealthy/healthy/quiesced status for an insatnce load balanced by this load balancer.

public booleanisApplyChangeRequired()

return
true if there are pending changes for this LB

public voidresetStats()
Reset the monitoring stats on this loadbalancer.

public booleantestConnection()
Reset the monitoring stats on this loadbalancer.