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

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

public class StaticPriorityChecker
extends AbstractPriorityChecker

Created by The eXo Platform SAS.

Version:
$Id: StaticPriorityChecker.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
StaticPriorityChecker(ChannelManager channelManager, int ownPriority, java.lang.String ownName, java.util.List<java.lang.String> otherParticipants)
          StaticPriorityChecker constructor.
 
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

StaticPriorityChecker

public StaticPriorityChecker(ChannelManager channelManager,
                             int ownPriority,
                             java.lang.String ownName,
                             java.util.List<java.lang.String> otherParticipants)
StaticPriorityChecker constructor.

Parameters:
channelManager - the ChannelManager
ownPriority - the own priority
ownName - the own name
otherParticipants - the list of names to other participants
Method Detail

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.

isMaxPriority

public boolean isMaxPriority()
isMaxPriority.

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


Copyright © 2012 eXo Platform SAS. All Rights Reserved.