Table of Contents

Class: Node | Twisted-0.17.4/sandbox/chord.py
--- | ---

A node in a Chord network.

Base Classes |
--- | ---
pb.Copyable pb.Perspective

Methods |
--- | ---

__init__ __repr__ _setFingerCallback _setPredCallback findPredecessor findPredecessor_1 findPredecessor_2 findSuccessor_1 findSuccessor_2 | fixFingers getNodeAt getSelf getStateToCopyFor join notify perspective_closestPrecedingFinger perspective_findSuccessor perspective_getPredecessor | perspective_getSuccessor perspective_notify stabilise stabilise_1 start

| __init__

    __init__ (
            self,
            address,
            perspectiveName,
            identityName,
            port=pb.portno,
            )

| __repr__

    __repr__ ( self )

| _setFingerCallback

    _setFingerCallback (
            self,
            x,
            i,
            )

| _setPredCallback

    _setPredCallback ( self,  n )

| findPredecessor

    findPredecessor ( self,  id )

| findPredecessor_1

    findPredecessor_1 (
            self,
            n2,
            id,
            )

| findPredecessor_2

    findPredecessor_2 (
            self,
            n3,
            n2,
            id,
            )

| findSuccessor_1

    findSuccessor_1 ( self,  n2 )

| findSuccessor_2

    findSuccessor_2 (
            self,
            address,
            n2,
            )

| fixFingers

    fixFingers ( self )

Refresh a random finger table entry. Called periodically.

| getNodeAt

    getNodeAt ( self,  address )

| getSelf

    getSelf ( self )

| getStateToCopyFor

    getStateToCopyFor ( self,  persp )

| join

    join ( self,  n2 )

Intialize finger tables of local node. n2 is a node already on the network or None if we're the first.

| notify

    notify ( self,  n )

| perspective_closestPrecedingFinger

    perspective_closestPrecedingFinger ( self,  id )

| perspective_findSuccessor

    perspective_findSuccessor ( self,  id )

| perspective_getPredecessor

    perspective_getPredecessor ( self )

| perspective_getSuccessor

    perspective_getSuccessor ( self )

| perspective_notify

    perspective_notify ( self,  addr )

n thinks it might be our predecessor.

| stabilise

    stabilise ( self )

Verify our immediate successor and tell them about us. Called periodically.

| stabilise_1

    stabilise_1 ( self,  p )

| start

    start ( self,  k )

Table of Contents

This document was automatically generated on Sat Apr 20 01:30:44 2002 by HappyDoc version 2.0