xmlBlaster 2.2.0 API

org.xmlBlaster.engine.cluster
Class ClusterManager.NodeComparator

java.lang.Object
  extended by org.xmlBlaster.engine.cluster.ClusterManager.NodeComparator
All Implemented Interfaces:
java.util.Comparator
Enclosing class:
ClusterManager

 class ClusterManager.NodeComparator
extends java.lang.Object
implements java.util.Comparator

Sorts the cluster nodes for the clusterNodeMap

  1. First is the local node
  2. Others by node id


Constructor Summary
ClusterManager.NodeComparator()
           
 
Method Summary
 int compare(java.lang.Object o1, java.lang.Object o2)
          We compare the cluster node id string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

ClusterManager.NodeComparator

ClusterManager.NodeComparator()
Method Detail

compare

public final int compare(java.lang.Object o1,
                         java.lang.Object o2)
We compare the cluster node id string.

Specified by:
compare in interface java.util.Comparator

xmlBlaster 2.2.0 API

Copyright © 1999-2014 The xmlBlaster.org contributers.