The DFS type exposes the following members.
Back to Top
Back to Top
Back to Top
Methods
Name | Description | |
---|---|---|
![]() ![]() | AddItem |
Adds a distributed item to the local cache and informs any known peers of the item availability
|
![]() ![]() | AllLocalDFSItemKeys |
Returns all item MD5 checksums for DFS items
|
![]() ![]() | AllLocalDFSItemsWithBuildTime |
Returns a dictionary of DFS items along with corresponding ItemBuildCompleted times
|
![]() ![]() | CheckForSharedItems |
Communicates with the provided peer to see if any item swarms can be linked. This is a single link event,
possibly use InitialiseDFSLink() for a maintained link.
|
![]() ![]() | CloseConnectionToCompletedPeers |
Closes all connections to peers who have completed items
|
![]() ![]() | DisableLogging |
Disable logging in networkComms
|
![]() ![]() | EnableLogging |
Enable logging in networkComms using the provided logging adaptor
|
![]() ![]() | GetDistributedItemByChecksum |
Returns the distributed item with a matching itemCheckSum. Returns null if item is not found.
|
![]() ![]() | GetDistributedItemByIdentifier |
Returns the distributed item with a matching itemIdentifier. Returns null if item is not found.
|
![]() ![]() | Initialise |
Initialises the DFS
|
![]() ![]() | InitialiseDFSLink |
Initialises this DFS peer to repeat all items available on the linkTargetIP
|
![]() ![]() | ItemAlreadyInLocalCache(String) |
Returns true if an item with a matching itemCheckSum is present within the local cache
|
![]() ![]() | ItemAlreadyInLocalCache(DistributedItem) |
Returns true if the provided item is already present within the swarm
|
![]() ![]() | MostRecentlyCompletedItem |
Returns the most recently completed item in the DFS. Returns null if there are no DFS items.
|
![]() ![]() | PushItemToPeer |
Introduces a new item into the swarm and sends a build command to the originating requester
|
![]() ![]() | RemoveAllItemsFromLocalOnly(Boolean) |
Removes all items from local only
|
![]() ![]() | RemoveAllItemsFromLocalOnly(String, Boolean) |
Remove any items from the DFS with a matching itemTypeStr
|
![]() ![]() | RemoveItem |
Remove an item from the DFS. Possibly swarmWide and with or without a removal broadcast
|
![]() ![]() | Shutdown |
Shutdown the DFS. All local DFS items are deleted.
|
Fields
Name | Description | |
---|---|---|
![]() ![]() | ChunkRequestTimeoutMS |
The number of milliseconds after which a chunk request times out.
|
![]() ![]() | ItemBuildTimeoutSecsPerMB |
The number of seconds to allow per MB when building DFS items
|
![]() ![]() | MaxConcurrentLocalItemBuild |
The maximum number of DFS items that can be built concurrently
|
![]() ![]() | MaxConcurrentPeerRequests |
The maximum number of concurrent chunk requests to make to the same peer
|
![]() ![]() | MaxTotalItemRequests |
The total number of simultaneous chunk requests for a given item
|
![]() ![]() | MinChunkSizeInBytes |
The minimum size of DFS item chunks
|
![]() ![]() | PeerBusyNetworkLoadThreshold |
While the peer network load goes above this value it will always reply with a busy response
|
![]() ![]() | PeerBusyTimeoutMS |
The time in milliseconds after which a peer busy flag is removed
|
![]() ![]() | PeerMaxNumTimeouts |
The maximum number of times a chunk request can timeout from a peer before it is removed from the swarm
|
Properties
Name | Description | |
---|---|---|
![]() ![]() | DFSInitialised |
True if the DFS has been initialised
|
![]() ![]() | ElapsedExecutionSeconds |
The number of seconds since the initialisation of the DFS. Used as an internal timer, rather than DateTime.Now, to
ensure builds do not time out when a suspended process is restarted.
|
![]() ![]() | IsLinked |
True if this DFS is linked with another peer
|
![]() ![]() | LinkMode |
The link mode being used
|
![]() ![]() | Logger |
Access the networkComms logger externally. Allows logging from external sources
|
![]() ![]() | MaxTargetLocalPort |
The maximum port number that will be used when initialising the DFS
|
![]() ![]() | MinTargetLocalPort |
The minimum port number that will be used when initialising the DFS
|
![]() ![]() | TotalNumRequestedChunks |
The total number of chunks requests by the local DFS
|
![]() ![]() | TotalNumReturnedChunkRequests |
The total number of completed chunk requests across all DFS items
|
![]() ![]() | ValidateEachChunkMD5 |
If true ensures all DFS items include chunk MD5 list. Also on build clients will validate the chunk MD5
|
See Also