Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members  

NamingExtensions::LoadBalancer Interface Reference

This interface allows a LoadBalancer object to bound in to the service and retrieved. More...

import "NamingExtensions.idl";

Inherited by NamingExtensions::LoadBalancerAlias.

List of all members.

Public Methods

void add (in Object obj)
 This operation accepts an Object to bind into the load balancing implementation. More...

Object get () raises (NoneBound, PluginFailure)
 This operation returns one of the objects bound into the implementation. More...

void remove (in Object name) raises (ObjectNotFound)
 This operation removes the named Object. More...

Types::ObjectSeq list ()
 This operation lists all the objects in the LoadBalancer. More...

void setPolicy (in string policy) raises (InvalidPolicy)
 This operation allows the policy for returning the objects to be set if multiple algorithms are supported. More...

void addPlugin (in string classname) raises (InvalidPlugin)
 This operation allows a plugin to be added to the LoadBalancer. More...

LoadBalancerAlias getAlias ()
 This operation allows the LoadBalancer to retrieve the alias object. More...


Detailed Description

This interface allows a LoadBalancer object to bound in to the service and retrieved.

It allows the alias object to be obtained which can be bound in to do the actual load balancing.


Member Function Documentation

void NamingExtensions::LoadBalancer::add in Object    obj
 

This operation accepts an Object to bind into the load balancing implementation.

m obj - an Object

void NamingExtensions::LoadBalancer::addPlugin in string    classname raises (InvalidPlugin)
 

This operation allows a plugin to be added to the LoadBalancer.

The plugin will be used during the get() operation. The LoadBalancer implementation is responsible for instantiating the plugin.

m plugin - the plugin classname.
@raises InvalidPlugin - if the plugin is invalid

Object NamingExtensions::LoadBalancer::get   raises (NoneBound, PluginFailure)
 

This operation returns one of the objects bound into the implementation.

@raises NoneBound - if no objects have been bound in. @raises PluginFailure - if the plugin throws an error.

LoadBalancerAlias NamingExtensions::LoadBalancer::getAlias  
 

This operation allows the LoadBalancer to retrieve the alias object.

Types::ObjectSeq NamingExtensions::LoadBalancer::list  
 

This operation lists all the objects in the LoadBalancer.

void NamingExtensions::LoadBalancer::remove in Object    name raises (ObjectNotFound)
 

This operation removes the named Object.

m obj - an Object
@raises ObjectNotFound - if no objects have been found.

void NamingExtensions::LoadBalancer::setPolicy in string    policy raises (InvalidPolicy)
 

This operation allows the policy for returning the objects to be set if multiple algorithms are supported.

m policy - the policy
@raises InvalidPolicy - if the policy is invalid.