|
.NET Framework | |||||||||
PREV TYPE NEXT TYPE | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONST | PROP | METHOD | OP | EVENT | DETAIL: FIELD | CONST | PROP | METHOD | OP | EVENT |
Tries to get local node on the network by finding existing nodes.
Field Summary | |
---|---|
System.Collections.ArrayList | bootStraps |
System.Exception | broadcastException |
Naanou.LookupService.IDiscoveryMethod[] | discoMethods |
Naanou.LookupService.Discoveries | discoveries |
Naanou.LookupService.Node | node |
bool | parentNodeIsInternal |
bool | queuedRestart |
bool | running |
System.Exception | webException |
System.Threading.Thread | workerThread |
Constructor Summary | |
---|---|
PeerDiscovery(Naanou.LookupService.Node node) Constructor. |
Property Summary | |
---|---|
System.Collections.ArrayList |
Bootstraps
Gets the bootstrap nodes, if any |
System.Exception |
BroadcastException
Exception that occurred during broadcast discovery, if any |
int |
Count
Gets the number of discoveries made |
Naanou.LookupService.Discoveries |
Discoveries
Gets the discoveries made |
bool |
IsRunning
Gets whether discovery is currently active |
bool |
RestartQueued
Gets whether a restart has been queued |
System.Exception |
WebException
Exception that occurred during web discovery, if any |
Method Summary | |
---|---|
void |
NotifyBootstrap() Notifies our original bootstrap we are online and ready |
void |
OnDiscoveredPeer(object sender, Naanou.LookupService.DiscoveryEventArgs args) Triggered by different discovery methods when they get stuff for us |
void |
QueueRestart() Queue a restart of discovery. Abort using Naanou.LookupService.PeerDiscovery.QueueRestartAbort. |
void |
QueueRestartAbort() Aborts a queued rediscovery |
void |
Restart() Triggered from the timer established in Naanou.LookupService.PeerDiscovery.QueueRestart. |
void | Restarter() |
void |
Start() Starts the discovery process. Use Naanou.LookupService.PeerDiscovery.DiscoveryComplete to be notified when discovery is complete. Spawns discovery process in a new thread ("Discovery"). Properties cannot be used until discovery is complete. |
void |
Start(bool withholdState) Starts the discovery process. Use Naanou.LookupService.PeerDiscovery.DiscoveryComplete to be notified when discovery is complete. Spawns discovery process in a new thread ("Discovery"). Properties cannot be used until discovery is complete. |
void |
StartImpl() Starts discovery |
void |
Stop() Aborts discovery |
Methods inherited from class System.Object |
---|
Equals, Finalize, GetHashCode, GetType, MemberwiseClone, ToString |
Event Summary | |
---|---|
System.EventHandler |
DiscoveryComplete
Discovery has completed |
Field Detail |
---|
private System.Collections.ArrayList bootStraps
private System.Exception broadcastException
private Naanou.LookupService.IDiscoveryMethod[] discoMethods
private Naanou.LookupService.Discoveries discoveries
private Naanou.LookupService.Node node
private bool parentNodeIsInternal
private bool queuedRestart
private bool running
private System.Exception webException
private System.Threading.Thread workerThread
Constructor Detail |
---|
public PeerDiscovery(Naanou.LookupService.Node node)
Constructor.
Parameters:
node
- Parent nodeProperty Detail |
---|
public System.Collections.ArrayList Bootstraps
Gets the bootstrap nodes, if any
public System.Exception BroadcastException
Exception that occurred during broadcast discovery, if any
public int Count
Gets the number of discoveries made
public Naanou.LookupService.Discoveries Discoveries
Gets the discoveries made
public bool IsRunning
Gets whether discovery is currently active
public bool RestartQueued
Gets whether a restart has been queued
public System.Exception WebException
Exception that occurred during web discovery, if any
Method Detail |
---|
public void NotifyBootstrap()
Notifies our original bootstrap we are online and ready
private void OnDiscoveredPeer(object sender, Naanou.LookupService.DiscoveryEventArgs args)
Triggered by different discovery methods when they get stuff for us
Parameters:
sender
- args
- public void QueueRestart()
Queue a restart of discovery. Abort using Naanou.LookupService.PeerDiscovery.QueueRestartAbort.
public void QueueRestartAbort()
Aborts a queued rediscovery
private void Restart()
Triggered from the timer established in Naanou.LookupService.PeerDiscovery.QueueRestart.
Parameters:
o
- Objectprivate void Restarter()
public void Start()
Starts the discovery process. Use Naanou.LookupService.PeerDiscovery.DiscoveryComplete to be notified when discovery is complete. Spawns discovery process in a new thread ("Discovery"). Properties cannot be used until discovery is complete.
public void Start(bool withholdState)
Starts the discovery process. Use Naanou.LookupService.PeerDiscovery.DiscoveryComplete to be notified when discovery is complete. Spawns discovery process in a new thread ("Discovery"). Properties cannot be used until discovery is complete.
Parameters:
withholdState
- If TRUE, node state will not be changed to Discoveryprivate void StartImpl()
Starts discovery
public void Stop()
Aborts discovery
Event Detail |
---|
public System.EventHandler DiscoveryComplete
Discovery has completed
|
.NET Framework | |||||||||
PREV TYPE NEXT TYPE | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONST | PROP | METHOD | OP | EVENT | DETAIL: FIELD | CONST | PROP | METHOD | OP | EVENT |