|
.NET Framework | |||||||||
PREV TYPE NEXT TYPE | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONST | PROP | METHOD | OP | EVENT | DETAIL: FIELD | CONST | PROP | METHOD | OP | EVENT |
Maintains a list of nodes which a request can be forwarded too, and makes sure requests get to someone alive.
Field Summary | |
---|---|
Naanou.LookupService.NodeAddress | ideal |
int |
MAXIMUM_RECURSION
Maximum number of fingers to try |
int |
MAXIMUM_RETRIES
Maximum number of retries for requests before giving up on a node |
System.Collections.ArrayList | others |
Naanou.LookupService.FingerTable | table |
Constructor Summary | |
---|---|
RequestForwarder(Naanou.LookupService.NodeAddress ideal, Naanou.LookupService.FingerTable table) Constructor |
|
RequestForwarder(Naanou.LookupService.FingerTable table, System.Collections.ArrayList others) |
Property Summary | |
---|---|
Naanou.LookupService.NodeAddress |
Ideal
Gets or sets the ideal address |
Naanou.LookupService.FingerTable |
Table
Gets or sets the finger table |
Method Summary | |
---|---|
object | GetMethod(Naanou.LookupService.NodeAddress toUse, int index, System.Reflection.MemberInfo pi, object[] indexer) |
object |
GetProperty(System.Reflection.PropertyInfo pi, object[] index) Gets the value of a property |
object |
GetProperty(string property, object[] index) Gets the value of a property |
object |
Invoke(System.Reflection.MethodInfo mi, object[] parameters) Invokes a method |
object |
Invoke(string method, object[] parameters) Invokes a method |
Methods inherited from class System.Object |
---|
Equals, Finalize, GetHashCode, GetType, MemberwiseClone, ToString |
Event Summary | |
---|---|
Naanou.LookupService.NodeLostHandler |
NodeLost
Node has been lose |
Field Detail |
---|
private Naanou.LookupService.NodeAddress ideal
private int MAXIMUM_RECURSION
Maximum number of fingers to try
public int MAXIMUM_RETRIES
Maximum number of retries for requests before giving up on a node
private System.Collections.ArrayList others
private Naanou.LookupService.FingerTable table
Constructor Detail |
---|
public RequestForwarder(Naanou.LookupService.NodeAddress ideal, Naanou.LookupService.FingerTable table)
Constructor
Parameters:
ideal
- Ideal node to usetable
- Table to use for locating other node alternativespublic RequestForwarder(Naanou.LookupService.FingerTable table, System.Collections.ArrayList others)
Parameters:
table
- others
- Array of NodeAddressesProperty Detail |
---|
public Naanou.LookupService.NodeAddress Ideal
Gets or sets the ideal address
public Naanou.LookupService.FingerTable Table
Gets or sets the finger table
Method Detail |
---|
private object GetMethod(Naanou.LookupService.NodeAddress toUse, int index, System.Reflection.MemberInfo pi, object[] indexer)
public object GetProperty(System.Reflection.PropertyInfo pi, object[] index)
Gets the value of a property
Parameters:
pi
- Propertyindex
- Indexpublic object GetProperty(string property, object[] index)
Gets the value of a property
Parameters:
property
- Propertyindex
- Indexpublic object Invoke(System.Reflection.MethodInfo mi, object[] parameters)
Invokes a method
Parameters:
mi
- Methodparameters
- Parameterspublic object Invoke(string method, object[] parameters)
Invokes a method
Parameters:
method
- Methodparameters
- ParametersEvent Detail |
---|
public Naanou.LookupService.NodeLostHandler NodeLost
Node has been lose
|
.NET Framework | |||||||||
PREV TYPE NEXT TYPE | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONST | PROP | METHOD | OP | EVENT | DETAIL: FIELD | CONST | PROP | METHOD | OP | EVENT |