planet.badchord
Class BadChordNode

java.lang.Object
  extended byplanet.generic.commonapi.NodeImpl
      extended byplanet.chord.ChordNode
          extended byplanet.badchord.BadChordNode
All Implemented Interfaces:
Node, java.io.Serializable

public class BadChordNode
extends ChordNode

A Chord node is single entity in the chord network. It extends of the class Node and specializes following the lookup Chord protocol. Moreover, the stabilization implementation, producing the periodic stabilition events.

Author:
Ruben Mondejar , Carles Pairot , Jordi Pujol
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class planet.chord.ChordNode
ChordNode.FindPredListener, ChordNode.FindSuccListener, ChordNode.FixFingerTask, ChordNode.GetPreListener, ChordNode.LookupListener, ChordNode.StabilizeTask
 
Field Summary
 
Fields inherited from class planet.chord.ChordNode
auxCAPI, bitsPerKey, BROADCAST, DATA, deux, FIND_PRE, FIND_SUCC, finger, fingerChanges, GET_PRE, hasFailed, hasLeaved, hasReceivedSucc, MAX, MODES, NOTIFY, nullPointers, predecessor, realStabilizationRate, REFRESH, REPLY, REQUEST, SET_PRE, SET_SUCC, stabRate, start, SUCC_LIST, succList, temp, TYPES
 
Fields inherited from class planet.generic.commonapi.NodeImpl
endpoints, id, listeners, nodeHandle, role
 
Constructor Summary
BadChordNode()
          Constructor, create a new BadChordNode instance with this node Id
 
Method Summary
 void dispatcher(RouteMessage msg)
          Treats the messages and according to the case, executes the generic listeners or listeners specialized, forward the messages or send responses messages
 
Methods inherited from class planet.chord.ChordNode
broadcast, buildEdges, cleanSuccList, clearFingerChanges, closestPrecedingFinger, fail, findPredecessor, findPredecessor, findSuccessor, findSuccessor, firstLocalLookup, fixFingers, getAllLinks, getBroadcastMessage, getClosestNodeHandle, getDataMessage, getFingerChanges, getInfo, getLocalHandle, getPred, getSucc, getSuccList, isAlive, join, leave, localLookup, neighborSet, notify, outMessages, prettyPrintNode, printNode, process, range, replicaSet, routeData, routingData, sendData, setFinger, setPred, setSucc, setValues, stabilize, toString
 
Methods inherited from class planet.generic.commonapi.NodeImpl
addEdges, addMessageListener, buildMessage, buildMessage, buildNewEdge, dispatchDataMessage, getId, getRegisteredApplication, getRegisteredApplications, hasMoreMessages, inMessages, invokeByStepToAllApplications, isLocalMessage, nextMessage, playsGoodRole, receive, registerApplication, removeMessageListener, send, sendMessage, sendMessage, sendMessage, sendMessage, setGoodRole, setTimer, setTimer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BadChordNode

public BadChordNode()
             throws InitializationException
Constructor, create a new BadChordNode instance with this node Id

Method Detail

dispatcher

public void dispatcher(RouteMessage msg)
Treats the messages and according to the case, executes the generic listeners or listeners specialized, forward the messages or send responses messages

Overrides:
dispatcher in class ChordNode
Parameters:
msg - IMessage to treat