A B C D E F G H L M N O P R S T

A

AbstractPolicy<T extends org.ow2.cmi.lb.LoadBalanceable> - Class in org.ow2.cmi.lb.policy
Abstract implementation of a IPolicy, using the class DecisionUtil to take a decision and the class BasicDecisionManager to execute the decision.
AbstractPolicy() - Constructor for class org.ow2.cmi.lb.policy.AbstractPolicy
Default constructor.
AbstractPolicy(ClusterViewManager) - Constructor for class org.ow2.cmi.lb.policy.AbstractPolicy
 
ArchiveId - Class in org.ow2.cmi.lb.loader
 
ArchiveId(String, String) - Constructor for class org.ow2.cmi.lb.loader.ArchiveId
init and archive id with given paramaters.
ArchiveId() - Constructor for class org.ow2.cmi.lb.loader.ArchiveId
Default constructor.
ArchiveWrapper - Class in org.ow2.cmi.lb.loader
Wrapper for archive that contains load balancing policies/strategies.
ArchiveWrapper() - Constructor for class org.ow2.cmi.lb.loader.ArchiveWrapper
Default constructor.
ArchiveWrapper(byte[], Object) - Constructor for class org.ow2.cmi.lb.loader.ArchiveWrapper
Constructor using fields.

B

BasicDecisionManager<ReturnType> - Class in org.ow2.cmi.lb.decision
Encapsulates a decision and an eventually returned value.

C

choose(Collection<T>) - Method in class org.ow2.cmi.lb.policy.AbstractPolicy
Chooses a load-balanceable among the list of load-balanceables.
choose(Collection<T>) - Method in class org.ow2.cmi.lb.policy.FirstAvailable
Chooses the first load-balanceable available among the list of load-balanceable.
choose(Collection<T>) - Method in class org.ow2.cmi.lb.policy.HASingleton
Always choose the same server (called singleton) on any client.
choose(Collection<T>) - Method in class org.ow2.cmi.lb.policy.Random
Chooses randomly a load-balanceable among the list of load-balanceables.
choose(Collection<T>) - Method in class org.ow2.cmi.lb.policy.RoundRobin
Chooses the next load-balanceable among the list of load-balanceables.
choose(Collection<T>) - Method in class org.ow2.cmi.lb.strategy.LoadFactorSort
Returns a list of LoadBalanceable ordered by their load factor (to be on the decrease).
choose(Collection<T>) - Method in class org.ow2.cmi.lb.strategy.LoadFactorWeight
 
choose(Collection<T>) - Method in class org.ow2.cmi.lb.strategy.LocalPreference
Returns a list of CMIReference that references the local servers.
choose(Collection<T>) - Method in class org.ow2.cmi.lb.strategy.NoStrategy
Returns the same list of load-balanceables.
clone() - Method in class org.ow2.cmi.lb.data.PolicyData
 
compare(T, T) - Method in class org.ow2.cmi.lb.strategy.LoadFactorComparator
Compares the load-factors of two LoadBalanceable with the load factor of their ServerRef.
convertString(Class<? extends IPolicy>, String, String) - Static method in class org.ow2.cmi.lb.util.PolicyFactory
Converts the given value from String to the given type.
convertString(Type, String) - Static method in class org.ow2.cmi.lb.util.PolicyFactory
 
convertStrings(Class<? extends IPolicy>, String, List<String>) - Static method in class org.ow2.cmi.lb.util.PolicyFactory
 
createPolicy(Class<? extends IPolicy>) - Method in class org.ow2.cmi.lb.util.PolicyFactory
Returns a pure policy for a given class.

D

DecisionUtil - Class in org.ow2.cmi.lb.decision
Utilities for failover.
DEFAULT_NAME - Static variable in class org.ow2.cmi.lb.loader.ArchiveId
Default archive name.
doRetry() - Static method in class org.ow2.cmi.lb.decision.BasicDecisionManager
Creates a RETRY decision.
doReturn(ReturnType) - Static method in class org.ow2.cmi.lb.decision.BasicDecisionManager
Creates a RETURN decision.
doThrow(Throwable) - Static method in class org.ow2.cmi.lb.decision.BasicDecisionManager
Creates a THROW decision.

E

equals(Object) - Method in class org.ow2.cmi.lb.data.PolicyData
 

F

FirstAvailable<T extends org.ow2.cmi.lb.LoadBalanceable> - Class in org.ow2.cmi.lb.policy
Implementation of a policy of load-balancing that always favors the first available load-balanceable.
FirstAvailable() - Constructor for class org.ow2.cmi.lb.policy.FirstAvailable
Build the first available policy.

G

getArchiveId() - Method in class org.ow2.cmi.lb.loader.ArchiveWrapper
 
getData() - Method in class org.ow2.cmi.lb.loader.ArchiveWrapper
 
getDateOfProperties() - Method in class org.ow2.cmi.lb.data.PolicyData
 
getDecision() - Method in class org.ow2.cmi.lb.decision.BasicDecisionManager
 
getGetter() - Method in class org.ow2.cmi.lb.data.PropertyData
 
getHost() - Method in class org.ow2.cmi.lb.loader.ArchiveId
 
getLocation() - Method in class org.ow2.cmi.lb.loader.ArchiveId
 
getName() - Method in class org.ow2.cmi.lb.loader.ArchiveId
 
getPointer() - Method in class org.ow2.cmi.lb.policy.RoundRobin
 
getPolicy(String) - Method in class org.ow2.cmi.lb.util.PolicyFactory
Returns a policy to access to the object with the given name.
getPolicy(Class<? extends IPolicy>, Class<? extends IStrategy>, Map<String, ?>) - Method in class org.ow2.cmi.lb.util.PolicyFactory
Returns a policy for the given classes of policy, strategy and properties.
getPolicyClass() - Method in class org.ow2.cmi.lb.data.PropertyData
 
getPolicyType() - Method in class org.ow2.cmi.lb.data.PolicyData
 
getProperties() - Method in class org.ow2.cmi.lb.data.PolicyData
Returns the value of the property with the given name.
getProperties(IPolicy<?>) - Static method in class org.ow2.cmi.lb.util.PolicyFactory
 
getProperty(String) - Method in class org.ow2.cmi.lb.data.PolicyData
Returns the value of the property with the given name.
getProperty(IPolicy<?>, String) - Static method in class org.ow2.cmi.lb.util.PolicyFactory
 
getPropertyData(Class<? extends IPolicy>) - Static method in class org.ow2.cmi.lb.util.PolicyFactory
 
getPropertyName() - Method in class org.ow2.cmi.lb.data.PropertyData
 
getPropertyRawType(Class<? extends IPolicy>, String) - Static method in class org.ow2.cmi.lb.util.PolicyFactory
 
getPropertyType() - Method in class org.ow2.cmi.lb.data.PropertyData
 
getPropertyType(Class<? extends IPolicy>, String) - Static method in class org.ow2.cmi.lb.util.PolicyFactory
 
getRetVal() - Method in class org.ow2.cmi.lb.decision.BasicDecisionManager
 
getSetter() - Method in class org.ow2.cmi.lb.data.PropertyData
 
getSingleton() - Method in class org.ow2.cmi.lb.policy.HASingleton
 
getSingletons() - Method in class org.ow2.cmi.lb.policy.HASingleton
Return the order to elect a singleton in the cluster.
getStrategy() - Method in class org.ow2.cmi.lb.policy.AbstractPolicy
Return a strategy to modify the behavior of this policy.
getStrategyType() - Method in class org.ow2.cmi.lb.data.PolicyData
 
getThrowable() - Method in class org.ow2.cmi.lb.decision.BasicDecisionManager
 

H

hashCode() - Method in class org.ow2.cmi.lb.data.PolicyData
 
HASingleton<T extends org.ow2.cmi.lb.LoadBalanceable> - Class in org.ow2.cmi.lb.policy
Implementation of a policy of load-balancing that always favors one server in the cluster.
HASingleton() - Constructor for class org.ow2.cmi.lb.policy.HASingleton
Construct a new instance of policy ha-singleton with the policy first available as rescue.

L

LoadFactorComparator<T extends org.ow2.cmi.lb.LoadBalanceable> - Class in org.ow2.cmi.lb.strategy
A comparator of load-factors.
LoadFactorComparator(ClusterViewManager) - Constructor for class org.ow2.cmi.lb.strategy.LoadFactorComparator
Construct a comparator of load-factor.
LoadFactorSort<T extends org.ow2.cmi.lb.LoadBalanceable> - Class in org.ow2.cmi.lb.strategy
Defines a strategy that orders the list of servers with the load-factor.
LoadFactorSort(ClusterViewManager) - Constructor for class org.ow2.cmi.lb.strategy.LoadFactorSort
Constructs a strategy for load-factor.
LoadFactorWeight<T extends org.ow2.cmi.lb.LoadBalanceable> - Class in org.ow2.cmi.lb.strategy
Defines a strategy that attributes a weight for each load-balanceable.
LoadFactorWeight(ClusterViewManager) - Constructor for class org.ow2.cmi.lb.strategy.LoadFactorWeight
 
LocalPreference<T extends org.ow2.cmi.lb.LoadBalanceable> - Class in org.ow2.cmi.lb.strategy
Defines a strategy that enable the local preference.
LocalPreference(ClusterViewManager) - Constructor for class org.ow2.cmi.lb.strategy.LocalPreference
Constructs a strategy for load-factor.

M

mustFailoverOnInvoke(Throwable, ClusterViewManager, LoadBalanceable) - Static method in class org.ow2.cmi.lb.decision.DecisionUtil
Checks if the distributor must fail over depending of the exception.
mustFailoverOnLookup(Throwable, ClusterViewManager, LoadBalanceable) - Static method in class org.ow2.cmi.lb.decision.DecisionUtil
Checks if the distributor must fail over depending of the exception.

N

NoStrategy<T extends org.ow2.cmi.lb.LoadBalanceable> - Class in org.ow2.cmi.lb.strategy
A strategy that does nothing.
NoStrategy() - Constructor for class org.ow2.cmi.lb.strategy.NoStrategy
 

O

onChoose(Method, Object[], ReturnType) - Method in class org.ow2.cmi.lb.policy.AbstractPolicy
Return a decision when a server is chosen and its delegate retrieved.
onInvokeException(Method, Object[], T, Throwable) - Method in class org.ow2.cmi.lb.policy.AbstractPolicy
Returns a decision when an exception is thrown during an invocation for a given load-balanceable.
onLookupException(T, Throwable) - Method in class org.ow2.cmi.lb.policy.AbstractPolicy
Returns a decision when an exception is thrown during an access to a registry for a given load-balanceable.
onReturn(Method, Object[], T, ReturnType) - Method in class org.ow2.cmi.lb.policy.AbstractPolicy
Returns a decision when the invocation of a remote method ends.
org.ow2.cmi.lb.data - package org.ow2.cmi.lb.data
 
org.ow2.cmi.lb.decision - package org.ow2.cmi.lb.decision
 
org.ow2.cmi.lb.loader - package org.ow2.cmi.lb.loader
 
org.ow2.cmi.lb.policy - package org.ow2.cmi.lb.policy
 
org.ow2.cmi.lb.strategy - package org.ow2.cmi.lb.strategy
 
org.ow2.cmi.lb.util - package org.ow2.cmi.lb.util
 

P

PolicyData - Class in org.ow2.cmi.lb.data
Contains data for a policy of load-balancing.
PolicyData(String, String, Map<String, Object>) - Constructor for class org.ow2.cmi.lb.data.PolicyData
Constructs data for load-balancing with the specified policy, strategy and properties.
PolicyData(String, String, Map<String, Object>, long) - Constructor for class org.ow2.cmi.lb.data.PolicyData
Constructs data for load-balancing with the specified policy, strategy and properties.
PolicyFactory<T extends org.ow2.cmi.lb.LoadBalanceable> - Class in org.ow2.cmi.lb.util
Define a factory to construct policies.
PolicyFactory(ClusterViewManager) - Constructor for class org.ow2.cmi.lb.util.PolicyFactory
Constructs a new factory for policies with a given manager of cluster view.
PolicyFactoryException - Exception in org.ow2.cmi.lb.util
RuntimeException thrown if a policy of load-balancing cannot be instanciated.
PolicyFactoryException(String) - Constructor for exception org.ow2.cmi.lb.util.PolicyFactoryException
Constructs a new runtime exception with the specified detail message.
PolicyFactoryException(String, Throwable) - Constructor for exception org.ow2.cmi.lb.util.PolicyFactoryException
Constructs a new runtime exception with the specified detail message and cause.
PropertyData - Class in org.ow2.cmi.lb.data
Encapsulate data relatives to a property.
PropertyData(Method, Class<? extends IPolicy<?>>) - Constructor for class org.ow2.cmi.lb.data.PropertyData
 

R

Random<T extends org.ow2.cmi.lb.LoadBalanceable> - Class in org.ow2.cmi.lb.policy
Implementation of a policy of load-balancing that always selects randomly a load-balanceable.
Random() - Constructor for class org.ow2.cmi.lb.policy.Random
Build the random policy.
RoundRobin<T extends org.ow2.cmi.lb.LoadBalanceable> - Class in org.ow2.cmi.lb.policy
The default load-balancing policy (Round Robin) that always chooses the next available load-balanceable.
RoundRobin() - Constructor for class org.ow2.cmi.lb.policy.RoundRobin
Build the Round Robin policy.

S

SEPARATOR - Static variable in class org.ow2.cmi.lb.loader.ArchiveId
Separator used in the toString method.
setArchiveId(Object) - Method in class org.ow2.cmi.lb.loader.ArchiveWrapper
 
setClusterViewManager(ClusterViewManager) - Method in class org.ow2.cmi.lb.policy.AbstractPolicy
Set the manager of the cluster view.
setData(byte[]) - Method in class org.ow2.cmi.lb.loader.ArchiveWrapper
 
setHost(String) - Method in class org.ow2.cmi.lb.loader.ArchiveId
 
setName(String) - Method in class org.ow2.cmi.lb.loader.ArchiveId
 
setPointer(int) - Method in class org.ow2.cmi.lb.policy.RoundRobin
 
setPolicyType(String) - Method in class org.ow2.cmi.lb.data.PolicyData
Sets the type of policy.
setProperties(Map<String, Object>) - Method in class org.ow2.cmi.lb.data.PolicyData
Set new properties to the policy (remove the previous).
setProperty(String, Object) - Method in class org.ow2.cmi.lb.data.PolicyData
Adds a property to the policy.
setSingleton(String) - Method in class org.ow2.cmi.lb.policy.HASingleton
Add a server in the list of singleton at the first position (it will be the new master).
setSingletons(List<String>) - Method in class org.ow2.cmi.lb.policy.HASingleton
Set the order to elect a singleton in the cluster.
setStrategy(IStrategy<T>) - Method in class org.ow2.cmi.lb.policy.AbstractPolicy
Sets a strategy to modify the behavior of this policy.
setStrategy(IStrategy<T>) - Method in class org.ow2.cmi.lb.policy.HASingleton
Sets a strategy to modify the behavior of the rescue policy.
setStrategyType(String) - Method in class org.ow2.cmi.lb.data.PolicyData
Sets the type of strategy.
setToBeInstalled(boolean) - Method in class org.ow2.cmi.lb.loader.ArchiveWrapper
 

T

toBeInstalled() - Method in class org.ow2.cmi.lb.loader.ArchiveWrapper
Check if the archive must be installed.
toString() - Method in class org.ow2.cmi.lb.data.PolicyData
 
toString() - Method in class org.ow2.cmi.lb.loader.ArchiveId
 
toString() - Method in class org.ow2.cmi.lb.policy.FirstAvailable
 
toString() - Method in class org.ow2.cmi.lb.policy.HASingleton
 
toString() - Method in class org.ow2.cmi.lb.policy.Random
 
toString() - Method in class org.ow2.cmi.lb.policy.RoundRobin
 
toString() - Method in class org.ow2.cmi.lb.strategy.LoadFactorSort
 
toString() - Method in class org.ow2.cmi.lb.strategy.LocalPreference
 
toString() - Method in class org.ow2.cmi.lb.strategy.NoStrategy
 

A B C D E F G H L M N O P R S T

Copyright © 2009 OW2 Consortium. All Rights Reserved.