org.exoplatform.services.jcr.ext.replication.priority
Class GenericPriorityChecker

java.lang.Object
  extended by org.exoplatform.services.jcr.ext.replication.priority.AbstractPriorityChecker
      extended by org.exoplatform.services.jcr.ext.replication.priority.GenericPriorityChecker
All Implemented Interfaces:
PacketListener

public class GenericPriorityChecker
extends AbstractPriorityChecker

Created by The eXo Platform SAS.
Date: 29.05.2009

Version:
$Id: GenericPriorityChecker.java 35186 2009-08-07 14:23:43Z pnedonosko $
Author:
Alex Reshetnyak

Field Summary
 
Fields inherited from class org.exoplatform.services.jcr.ext.replication.priority.AbstractPriorityChecker
channelManager, currentParticipants, identifier, MAX_PRIORITY, memberListener, otherParticipants, ownName, ownPriority
 
Constructor Summary
GenericPriorityChecker(ChannelManager channelManager, int ownPriority, java.lang.String ownName, java.util.List<java.lang.String> otherParticipants)
           
 
Method Summary
 boolean isMaxPriority()
          isMaxPriority.
 void receive(Packet packet)
          receive. Will be called this method when receive the Packet.
 
Methods inherited from class org.exoplatform.services.jcr.ext.replication.priority.AbstractPriorityChecker
informAll, isAllOnline, isMaxOnline, printOnlineMembers, setMemberListener, waitView
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericPriorityChecker

public GenericPriorityChecker(ChannelManager channelManager,
                              int ownPriority,
                              java.lang.String ownName,
                              java.util.List<java.lang.String> otherParticipants)
Method Detail

isMaxPriority

public boolean isMaxPriority()
isMaxPriority.

Specified by:
isMaxPriority in class AbstractPriorityChecker
Returns:
boolean if current time this is max priority then return 'true'

receive

public void receive(Packet packet)
receive. Will be called this method when receive the Packet.

Specified by:
receive in interface PacketListener
Specified by:
receive in class AbstractPriorityChecker
Parameters:
packet - the Packet object.


Copyright © 2010 eXo Platform SAS. All Rights Reserved.