Java EE 5 SDK

com.sun.appserv.management.ext.lb
Interface LoadBalancer

All Superinterfaces:
AMX, AMXMBeanLogging, NotificationBroadcaster, NotificationEmitter

public interface LoadBalancer
extends AMX

Runtime counterpart for the config MBean LoadBalancerConfig representing the load-balancer element.


Field Summary
static String J2EE_TYPE
          The j2eeType as returned by AMX.getJ2EEType().
 
Fields inherited from interface com.sun.appserv.management.base.AMX
FULL_TYPE_DELIM, GROUP_CONFIGURATION, GROUP_JSR77, GROUP_MONITORING, GROUP_OTHER, GROUP_UTILITY, J2EE_TYPE_KEY, JMX_DOMAIN, NAME_KEY, NO_NAME, NOTIFICATION_PREFIX, NULL_NAME
 
Method Summary
 void applyLBChanges()
          Applies changes in the corresponding configuration to this LB
 Date getLastApplied()
          Returns the timestamp of the most recent application of corresponding LBConfig
 Date getLastExported()
          Returns the timestamp of the most recent export of corresponding LBConfig
 Date getLastResetTime()
          Returns the timestamp of the last time the stats on this loadbalancer were reset
 String getLoadBalancerXML()
          Exports the corresponding LBConfig information and returns the contents as a string.
 String getStatus(String instanceName)
          Returns the uhealthy/healthy/quiesced status for an insatnce load balanced by this load balancer.
 boolean isApplyChangeRequired()
           
 void resetStats()
          Reset the monitoring stats on this loadbalancer.
 boolean testConnection()
          Reset the monitoring stats on this loadbalancer.
 
Methods inherited from interface com.sun.appserv.management.base.AMX
getContainer, getDomainRoot, getFullType, getGroup, getJ2EEType, getName, isDAS
 
Methods inherited from interface javax.management.NotificationEmitter
removeNotificationListener
 
Methods inherited from interface javax.management.NotificationBroadcaster
addNotificationListener, getNotificationInfo, removeNotificationListener
 
Methods inherited from interface com.sun.appserv.management.base.AMXMBeanLogging
getMBeanLoggerName, getMBeanLogLevel, setMBeanLogLevel
 

Field Detail

J2EE_TYPE

static final String J2EE_TYPE
The j2eeType as returned by AMX.getJ2EEType().

See Also:
Constant Field Values
Method Detail

applyLBChanges

void applyLBChanges()
Applies changes in the corresponding configuration to this LB


isApplyChangeRequired

boolean isApplyChangeRequired()
Returns:
true if there are pending changes for this LB

getLoadBalancerXML

String getLoadBalancerXML()
Exports the corresponding LBConfig information and returns the contents as a string.

See Also:
LBConfig

getLastExported

Date getLastExported()
Returns the timestamp of the most recent export of corresponding LBConfig


getLastApplied

Date getLastApplied()
Returns the timestamp of the most recent application of corresponding LBConfig


getLastResetTime

Date getLastResetTime()
Returns the timestamp of the last time the stats on this loadbalancer were reset


resetStats

void resetStats()
Reset the monitoring stats on this loadbalancer.


testConnection

boolean testConnection()
Reset the monitoring stats on this loadbalancer.


getStatus

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


Java EE 5 SDK

Submit a bug or feature

Copyright 2006 Sun Microsystems, Inc. All rights reserved.