org.apache.juddi.v3.client.mapping
Class PolicyLocalFirst

java.lang.Object
  extended by org.apache.juddi.v3.client.mapping.PolicyRoundRobin
      extended by org.apache.juddi.v3.client.mapping.PolicyLocalFirst
All Implemented Interfaces:
SelectionPolicy

public class PolicyLocalFirst
extends PolicyRoundRobin


Field Summary
static String DEFAULT_CLIENT_LOCAL
           
static String JUDDI_CLIENT_LOCAL
           
 
Constructor Summary
PolicyLocalFirst(Properties properties)
          This policy prefers 'local' EPR over remote EPRs.
 
Method Summary
 String select(Topology topology)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JUDDI_CLIENT_LOCAL

public static final String JUDDI_CLIENT_LOCAL
See Also:
Constant Field Values

DEFAULT_CLIENT_LOCAL

public static final String DEFAULT_CLIENT_LOCAL
See Also:
Constant Field Values
Constructor Detail

PolicyLocalFirst

public PolicyLocalFirst(Properties properties)
This policy prefers 'local' EPR over remote EPRs. By default 'local' means the EPR contains the String 'localhost'. This setting can be overwritten by setting the 'juddi.client.local' property. An example would be 'localhost:8080'.

Parameters:
properties -
Method Detail

select

public String select(Topology topology)
Specified by:
select in interface SelectionPolicy
Overrides:
select in class PolicyRoundRobin


Copyright © 2004-2013 The Apache Software Foundation. All Rights Reserved.