C# Class Library.Net.Amoeba.ConnectionsManager

Inheritance: StateManagerBase, Library.Configuration.ISettings, IThisLock
Mostra file Open project: Alliance-Network/Library Class Usage Examples

Public Methods

Method Description
ConnectionsManager ( ClientManager clientManager, ServerManager serverManager, CacheManager cacheManager, BufferManager bufferManager ) : System
Download ( Key key ) : void
GetBroadcastMetadatas ( string signature, string type ) : BroadcastMetadata
GetMulticastMetadatas ( Tag tag, string type ) : IEnumerable
GetUnicastMetadatas ( string signature, string type ) : IEnumerable
IsDownloadWaiting ( Key key ) : bool
IsUploadWaiting ( Key key ) : bool
Load ( string directoryPath ) : void
Save ( string directoryPath ) : void
SetBaseNode ( Node baseNode ) : void
SetOtherNodes ( IEnumerable nodes ) : void
Start ( ) : void
Stop ( ) : void
Upload ( BroadcastMetadata metadata ) : void
Upload ( Key key ) : void
Upload ( MulticastMetadata metadata ) : void
Upload ( UnicastMetadata metadata ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void
OnLockSignaturesEvent ( ) : IEnumerable
OnLockTagsEvent ( ) : IEnumerable

Private Methods

Method Description
AcceptConnectionThread ( ) : void
AddConnectionManager ( ConnectionManager connectionManager, string uri ) : void
Check ( Key key ) : bool
Check ( Node node ) : bool
Check ( Tag tag ) : bool
ConnectionManagerThread ( object state ) : void
ConnectionsManagerThread ( ) : void
CreateConnectionThread ( ) : void
GetPriority ( Node node ) : double
MediateTimer ( ) : void
ReduceTimer ( ) : void
RefreshTimer ( ) : void
RemoveConnectionManager ( ConnectionManager connectionManager ) : void
RemoveNode ( Node node ) : void
UpdateSessionId ( ) : void
connectionManager_CloseEvent ( object sender, EventArgs e ) : void
connectionManager_PullBlockEvent ( object sender, PullBlockEventArgs e ) : void
connectionManager_PullBlocksLinkEvent ( object sender, PullBlocksLinkEventArgs e ) : void
connectionManager_PullBlocksRequestEvent ( object sender, PullBlocksRequestEventArgs e ) : void
connectionManager_PullBroadcastMetadatasEvent ( object sender, PullBroadcastMetadatasEventArgs e ) : void
connectionManager_PullBroadcastMetadatasRequestEvent ( object sender, PullBroadcastMetadatasRequestEventArgs e ) : void
connectionManager_PullCancelEvent ( object sender, EventArgs e ) : void
connectionManager_PullMulticastMetadatasEvent ( object sender, PullMulticastMetadatasEventArgs e ) : void
connectionManager_PullMulticastMetadatasRequestEvent ( object sender, PullMulticastMetadatasRequestEventArgs e ) : void
connectionManager_PullNodesEvent ( object sender, PullNodesEventArgs e ) : void
connectionManager_PullUnicastMetadatasEvent ( object sender, PullUnicastMetadatasEventArgs e ) : void
connectionManager_PullUnicastMetadatasRequestEvent ( object sender, PullUnicastMetadatasRequestEventArgs e ) : void

Method Details

ConnectionsManager() public method

public ConnectionsManager ( ClientManager clientManager, ServerManager serverManager, CacheManager cacheManager, BufferManager bufferManager ) : System
clientManager ClientManager
serverManager ServerManager
cacheManager CacheManager
bufferManager BufferManager
return System

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

Download() public method

public Download ( Key key ) : void
key Key
return void

GetBroadcastMetadatas() public method

public GetBroadcastMetadatas ( string signature, string type ) : BroadcastMetadata
signature string
type string
return BroadcastMetadata

GetMulticastMetadatas() public method

public GetMulticastMetadatas ( Tag tag, string type ) : IEnumerable
tag Tag
type string
return IEnumerable

GetUnicastMetadatas() public method

public GetUnicastMetadatas ( string signature, string type ) : IEnumerable
signature string
type string
return IEnumerable

IsDownloadWaiting() public method

public IsDownloadWaiting ( Key key ) : bool
key Key
return bool

IsUploadWaiting() public method

public IsUploadWaiting ( Key key ) : bool
key Key
return bool

Load() public method

public Load ( string directoryPath ) : void
directoryPath string
return void

OnLockSignaturesEvent() protected method

protected OnLockSignaturesEvent ( ) : IEnumerable
return IEnumerable

OnLockTagsEvent() protected method

protected OnLockTagsEvent ( ) : IEnumerable
return IEnumerable

Save() public method

public Save ( string directoryPath ) : void
directoryPath string
return void

SetBaseNode() public method

public SetBaseNode ( Node baseNode ) : void
baseNode Node
return void

SetOtherNodes() public method

public SetOtherNodes ( IEnumerable nodes ) : void
nodes IEnumerable
return void

Start() public method

public Start ( ) : void
return void

Stop() public method

public Stop ( ) : void
return void

Upload() public method

public Upload ( BroadcastMetadata metadata ) : void
metadata BroadcastMetadata
return void

Upload() public method

public Upload ( Key key ) : void
key Key
return void

Upload() public method

public Upload ( MulticastMetadata metadata ) : void
metadata MulticastMetadata
return void

Upload() public method

public Upload ( UnicastMetadata metadata ) : void
metadata UnicastMetadata
return void