DFS MembersNetworkComms.Net Help
The DFS type exposes the following members.
Methods

  NameDescription
Public methodStatic memberAddItem
Adds a distributed item to the local cache and informs any known peers of the item availability
Public methodStatic memberAllLocalDFSItemKeys
Returns all item MD5 checksums for DFS items
Public methodStatic memberAllLocalDFSItemsWithBuildTime
Returns a dictionary of DFS items along with corresponding ItemBuildCompleted times
Public methodStatic memberCheckForSharedItems
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.
Public methodStatic memberCloseConnectionToCompletedPeers
Closes all connections to peers who have completed items
Public methodStatic memberDisableLogging
Disable logging in networkComms
Public methodStatic memberEnableLogging
Enable logging in networkComms using the provided logging adaptor
Public methodStatic memberGetDistributedItemByChecksum
Returns the distributed item with a matching itemCheckSum. Returns null if item is not found.
Public methodStatic memberGetDistributedItemByIdentifier
Returns the distributed item with a matching itemIdentifier. Returns null if item is not found.
Public methodStatic memberInitialise
Initialises the DFS
Public methodStatic memberInitialiseDFSLink
Initialises this DFS peer to repeat all items available on the linkTargetIP
Public methodStatic memberItemAlreadyInLocalCache(String)
Returns true if an item with a matching itemCheckSum is present within the local cache
Public methodStatic memberItemAlreadyInLocalCache(DistributedItem)
Returns true if the provided item is already present within the swarm
Public methodStatic memberMostRecentlyCompletedItem
Returns the most recently completed item in the DFS. Returns null if there are no DFS items.
Public methodStatic memberPushItemToPeer
Introduces a new item into the swarm and sends a build command to the originating requester
Public methodStatic memberRemoveAllItemsFromLocalOnly(Boolean)
Removes all items from local only
Public methodStatic memberRemoveAllItemsFromLocalOnly(String, Boolean)
Remove any items from the DFS with a matching itemTypeStr
Public methodStatic memberRemoveItem
Remove an item from the DFS. Possibly swarmWide and with or without a removal broadcast
Public methodStatic memberShutdown
Shutdown the DFS. All local DFS items are deleted.
Back to Top
Fields

  NameDescription
Public fieldStatic memberChunkRequestTimeoutMS
The number of milliseconds after which a chunk request times out.
Public fieldStatic memberItemBuildTimeoutSecsPerMB
The number of seconds to allow per MB when building DFS items
Public fieldStatic memberMaxConcurrentLocalItemBuild
The maximum number of DFS items that can be built concurrently
Public fieldStatic memberMaxConcurrentPeerRequests
The maximum number of concurrent chunk requests to make to the same peer
Public fieldStatic memberMaxTotalItemRequests
The total number of simultaneous chunk requests for a given item
Public fieldStatic memberMinChunkSizeInBytes
The minimum size of DFS item chunks
Public fieldStatic memberPeerBusyNetworkLoadThreshold
While the peer network load goes above this value it will always reply with a busy response
Public fieldStatic memberPeerBusyTimeoutMS
The time in milliseconds after which a peer busy flag is removed
Public fieldStatic memberPeerMaxNumTimeouts
The maximum number of times a chunk request can timeout from a peer before it is removed from the swarm
Back to Top
Properties

  NameDescription
Public propertyStatic memberDFSInitialised
True if the DFS has been initialised
Public propertyStatic memberElapsedExecutionSeconds
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.
Public propertyStatic memberIsLinked
True if this DFS is linked with another peer
Public propertyStatic memberLinkMode
The link mode being used
Public propertyStatic memberLogger
Access the networkComms logger externally. Allows logging from external sources
Public propertyStatic memberMaxTargetLocalPort
The maximum port number that will be used when initialising the DFS
Public propertyStatic memberMinTargetLocalPort
The minimum port number that will be used when initialising the DFS
Public propertyStatic memberTotalNumRequestedChunks
The total number of chunks requests by the local DFS
Public propertyStatic memberTotalNumReturnedChunkRequests
The total number of completed chunk requests across all DFS items
Public propertyStatic memberValidateEachChunkMD5
If true ensures all DFS items include chunk MD5 list. Also on build clients will validate the chunk MD5
Back to Top
See Also