C# Class Library.Net.Amoeba.AmoebaManager

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

Public Methods

Method Description
AmoebaManager ( string blocksPath, BufferManager bufferManager ) : System
CheckExternalBlocks ( CheckBlocksProgressEventHandler getProgressEvent ) : void
CheckInternalBlocks ( CheckBlocksProgressEventHandler getProgressEvent ) : void
DecodeStart ( ) : void
DecodeStop ( ) : void
Download ( Seed seed, int priority ) : void
Download ( Seed seed, string path, int priority ) : void
EncodeStart ( ) : void
EncodeStop ( ) : void
GetLink ( string signature ) : Link
GetMulticastMessages ( Tag tag, int limit ) : IEnumerable
GetProfile ( string signature ) : Profile
GetStore ( string signature ) : Store
GetUnicastMessages ( string signature, ExchangePrivateKey exchangePrivateKey ) : IEnumerable
Load ( string directoryPath ) : void
MulticastUpload ( Tag tag, Message message, int miningLimit, System.TimeSpan miningTime, DigitalSignature digitalSignature ) : void
RemoveCache ( Seed seed ) : void
RemoveDownload ( int id ) : void
RemoveShare ( string path ) : void
RemoveUpload ( int id ) : void
ResetDownload ( int id ) : void
ResetUpload ( int id ) : void
Resize ( long size ) : void
Save ( string directoryPath ) : void
SetBaseNode ( Node baseNode ) : void
SetDownloadPriority ( int id, int priority ) : void
SetOtherNodes ( IEnumerable nodes ) : void
SetTrustSignatures ( IEnumerable signatures ) : void
SetUploadPriority ( int id, int priority ) : void
Share ( string filePath, string name, IEnumerable keywords, DigitalSignature digitalSignature, int priority ) : void
Start ( ) : void
Stop ( ) : void
UnicastUpload ( string signature, Message message, ExchangePublicKey exchangePublicKey, DigitalSignature digitalSignature ) : void
Upload ( Link link, DigitalSignature digitalSignature ) : void
Upload ( Profile profile, DigitalSignature digitalSignature ) : void
Upload ( Store store, DigitalSignature digitalSignature ) : void
Upload ( string filePath, string name, IEnumerable keywords, DigitalSignature digitalSignature, int priority ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
Check ( ) : void

Method Details

AmoebaManager() public method

public AmoebaManager ( string blocksPath, BufferManager bufferManager ) : System
blocksPath string
bufferManager BufferManager
return System

CheckExternalBlocks() public method

public CheckExternalBlocks ( CheckBlocksProgressEventHandler getProgressEvent ) : void
getProgressEvent CheckBlocksProgressEventHandler
return void

CheckInternalBlocks() public method

public CheckInternalBlocks ( CheckBlocksProgressEventHandler getProgressEvent ) : void
getProgressEvent CheckBlocksProgressEventHandler
return void

DecodeStart() public method

public DecodeStart ( ) : void
return void

DecodeStop() public method

public DecodeStop ( ) : void
return void

Dispose() protected method

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

Download() public method

public Download ( Seed seed, int priority ) : void
seed Seed
priority int
return void

Download() public method

public Download ( Seed seed, string path, int priority ) : void
seed Seed
path string
priority int
return void

EncodeStart() public method

public EncodeStart ( ) : void
return void

EncodeStop() public method

public EncodeStop ( ) : void
return void

GetLink() public method

public GetLink ( string signature ) : Link
signature string
return Link

GetMulticastMessages() public method

public GetMulticastMessages ( Tag tag, int limit ) : IEnumerable
tag Tag
limit int
return IEnumerable

GetProfile() public method

public GetProfile ( string signature ) : Profile
signature string
return Profile

GetStore() public method

public GetStore ( string signature ) : Store
signature string
return Store

GetUnicastMessages() public method

public GetUnicastMessages ( string signature, ExchangePrivateKey exchangePrivateKey ) : IEnumerable
signature string
exchangePrivateKey ExchangePrivateKey
return IEnumerable

Load() public method

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

MulticastUpload() public method

public MulticastUpload ( Tag tag, Message message, int miningLimit, System.TimeSpan miningTime, DigitalSignature digitalSignature ) : void
tag Tag
message Message
miningLimit int
miningTime System.TimeSpan
digitalSignature DigitalSignature
return void

RemoveCache() public method

public RemoveCache ( Seed seed ) : void
seed Seed
return void

RemoveDownload() public method

public RemoveDownload ( int id ) : void
id int
return void

RemoveShare() public method

public RemoveShare ( string path ) : void
path string
return void

RemoveUpload() public method

public RemoveUpload ( int id ) : void
id int
return void

ResetDownload() public method

public ResetDownload ( int id ) : void
id int
return void

ResetUpload() public method

public ResetUpload ( int id ) : void
id int
return void

Resize() public method

public Resize ( long size ) : void
size long
return void

Save() public method

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

SetBaseNode() public method

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

SetDownloadPriority() public method

public SetDownloadPriority ( int id, int priority ) : void
id int
priority int
return void

SetOtherNodes() public method

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

SetTrustSignatures() public method

public SetTrustSignatures ( IEnumerable signatures ) : void
signatures IEnumerable
return void

SetUploadPriority() public method

public SetUploadPriority ( int id, int priority ) : void
id int
priority int
return void

Share() public method

public Share ( string filePath, string name, IEnumerable keywords, DigitalSignature digitalSignature, int priority ) : void
filePath string
name string
keywords IEnumerable
digitalSignature DigitalSignature
priority int
return void

Start() public method

public Start ( ) : void
return void

Stop() public method

public Stop ( ) : void
return void

UnicastUpload() public method

public UnicastUpload ( string signature, Message message, ExchangePublicKey exchangePublicKey, DigitalSignature digitalSignature ) : void
signature string
message Message
exchangePublicKey ExchangePublicKey
digitalSignature DigitalSignature
return void

Upload() public method

public Upload ( Link link, DigitalSignature digitalSignature ) : void
link Link
digitalSignature DigitalSignature
return void

Upload() public method

public Upload ( Profile profile, DigitalSignature digitalSignature ) : void
profile Profile
digitalSignature DigitalSignature
return void

Upload() public method

public Upload ( Store store, DigitalSignature digitalSignature ) : void
store Store
digitalSignature DigitalSignature
return void

Upload() public method

public Upload ( string filePath, string name, IEnumerable keywords, DigitalSignature digitalSignature, int priority ) : void
filePath string
name string
keywords IEnumerable
digitalSignature DigitalSignature
priority int
return void