org.objectweb.cjdbc.common.jmx.mbeans
Interface AbstractLoadBalancerMBean

All Known Implementing Classes:
AbstractLoadBalancer

public interface AbstractLoadBalancerMBean

This class defines a AbstractLoadBalancerMBean

Version:
1.0
Author:
Nicolas Modrzyk

Method Summary
 java.lang.String getInformation()
          Return generic information about the load balancer.
 int getParsingGranularity()
          Get the needed query parsing granularity.
 int getRAIDbLevel()
          Return the load balancer RAIDb level
 void setParsingGranularity(int parsingGranularity)
          Set the needed query parsing granularity.
 void setRAIDbLevel(int raidbLevel)
          Sets the RAIDbLevel.
 void setWeight(java.lang.String name, int w)
          Associate a weight to a backend identified by its logical name.
 

Method Detail

getRAIDbLevel

public int getRAIDbLevel()
Return the load balancer RAIDb level

Returns:
the RAIDb level

setRAIDbLevel

public void setRAIDbLevel(int raidbLevel)
Sets the RAIDbLevel.

Parameters:
raidbLevel - The RAIDb level to set

getParsingGranularity

public int getParsingGranularity()
Get the needed query parsing granularity.

Returns:
needed query parsing granularity

setParsingGranularity

public void setParsingGranularity(int parsingGranularity)
Set the needed query parsing granularity.

Parameters:
parsingGranularity - the granularity to set

setWeight

public void setWeight(java.lang.String name,
                      int w)
               throws java.sql.SQLException
Associate a weight to a backend identified by its logical name.

Parameters:
name - the backend name
w - the weight
Throws:
java.sql.SQLException - if an error occurs

getInformation

public java.lang.String getInformation()
Return generic information about the load balancer.

Returns:
load balancer information


Copyright © 2002, 2005 - ObjectWeb Consortium - All Rights Reserved.