org.ow2.petals.jbi.messaging.routing.module.endpoint
Class WeightedEndpoint

java.lang.Object
  extended by org.ow2.petals.jbi.messaging.routing.module.endpoint.WeightedEndpoint
All Implemented Interfaces:
java.lang.Comparable<WeightedEndpoint>

public class WeightedEndpoint
extends java.lang.Object
implements java.lang.Comparable<WeightedEndpoint>

A handler of a weighted endpoint.

Author:
rnaudin

Nested Class Summary
static class WeightedEndpoint.Localization
          Localization of the endpoint
 
Field Summary
 ServiceEndpoint endpoint
          The endpoint instance
 WeightedEndpoint.Localization localization
          The localization of the endpoint
 java.lang.Float weight
          The weight of the endpoint
 
Constructor Summary
WeightedEndpoint(ServiceEndpoint endpoint, float weighting, WeightedEndpoint.Localization localization)
           
WeightedEndpoint(ServiceEndpoint endpoint, WeightedEndpoint.Localization localization)
           
 
Method Summary
 int compareTo(WeightedEndpoint comparatedObject)
          The comparison is reversed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

endpoint

public ServiceEndpoint endpoint
The endpoint instance


weight

public java.lang.Float weight
The weight of the endpoint


localization

public WeightedEndpoint.Localization localization
The localization of the endpoint

Constructor Detail

WeightedEndpoint

public WeightedEndpoint(ServiceEndpoint endpoint,
                        float weighting,
                        WeightedEndpoint.Localization localization)

WeightedEndpoint

public WeightedEndpoint(ServiceEndpoint endpoint,
                        WeightedEndpoint.Localization localization)
Method Detail

compareTo

public int compareTo(WeightedEndpoint comparatedObject)
The comparison is reversed

Specified by:
compareTo in interface java.lang.Comparable<WeightedEndpoint>


Copyright © 2005-2011 Petals Link (EBM Websourcing). All Rights Reserved.