org.jboss.messaging.core.plugin.postoffice.cluster
Class DefaultFailoverMapper

java.lang.Object
  extended byorg.jboss.messaging.core.plugin.postoffice.cluster.DefaultFailoverMapper
All Implemented Interfaces:
FailoverMapper

public class DefaultFailoverMapper
extends java.lang.Object
implements FailoverMapper

A DefaultFailoverMapper Generates the mapping by looking to the element to the right and wrapping around to the first element in the list

Version:
$Revision: 2681 $ $Id: DefaultFailoverMapper.java 2681 2007-05-15 00:09:10Z timfox $
Author:
Tim Fox

Constructor Summary
DefaultFailoverMapper()
           
 
Method Summary
 java.util.Map generateMapping(java.util.Set nodes)
          Generate a mapping given a set of nodes - nodes will be sorted by the method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultFailoverMapper

public DefaultFailoverMapper()
Method Detail

generateMapping

public java.util.Map generateMapping(java.util.Set nodes)
Generate a mapping given a set of nodes - nodes will be sorted by the method.

Specified by:
generateMapping in interface FailoverMapper
Parameters:
nodes - Set.
See Also:
FailoverMapper.generateMapping(java.util.Set)


Copyright © 2006 JBoss Inc. All Rights Reserved.