Naanou.Common
Structure FindSuccessorResult

Find successor result

Field Summary
Naanou.Common.BasicAddress Address
         Address of successor
System.Exception Exception
         Exception that occured, if any
int HopCount
         Hops taken to locate
Naanou.Common.BasicAddress[] Hops
         Hops
Naanou.Common.Hash key
string keySerial
         Key sought
string requestSerial

Constructor Summary
FindSuccessorResult(System.Exception exception)
         Ctor
FindSuccessorResult(Naanou.Common.Hash key, string serial)
         Constuctor

Property Summary
bool IsEmpty
         Is the result empty?
Naanou.Common.Hash Key
         Gets or sets the key
string RequestSerial
         Gets the request serial

Method Summary
void AddHop(Naanou.Common.BasicAddress address)
         Adds hop to the route taken by command
void Merge(Naanou.Common.FindSuccessorResult result)
         Merge another successor result into this one (append)
void SetRequestSerial(string serial)
         Sets the request serial. Can only be set once

Methods inherited from class System.ValueType
Equals, GetHashCode, ToString

Methods inherited from class System.Object
Finalize, GetType, MemberwiseClone


Field Detail

Address

public Naanou.Common.BasicAddress Address

Address of successor


Exception

public System.Exception Exception

Exception that occured, if any


HopCount

public int HopCount

Hops taken to locate


Hops

public Naanou.Common.BasicAddress[] Hops

Hops


key

private Naanou.Common.Hash key


keySerial

private string keySerial

Key sought


requestSerial

private string requestSerial

Constructor Detail

FindSuccessorResult

public FindSuccessorResult(System.Exception exception)

Ctor

Parameters:
exception - Exception encountered, if any

FindSuccessorResult

public FindSuccessorResult(Naanou.Common.Hash key,
                           string serial)

Constuctor

Parameters:
key - Key
serial - Serial of request
Property Detail

IsEmpty

public bool IsEmpty

Is the result empty?


Key

public Naanou.Common.Hash Key

Gets or sets the key


RequestSerial

public string RequestSerial

Gets the request serial

Method Detail

AddHop

public void AddHop(Naanou.Common.BasicAddress address)

Adds hop to the route taken by command

Parameters:
address -

Merge

public void Merge(Naanou.Common.FindSuccessorResult result)

Merge another successor result into this one (append)

Parameters:
result - Result

SetRequestSerial

public void SetRequestSerial(string serial)

Sets the request serial. Can only be set once

Parameters:
serial - Serial
Throws:
System.InvalidOperationException - Serial is already set