The DistributedItem type exposes the following members.
Back to Top
Back to Top
Back to Top
Back to Top
Constructors
Name | Description | |
---|---|---|
DistributedItem(ItemAssemblyConfig) |
Instantiate a new DFS item which needs to be built.
| |
DistributedItem(String, String, Stream, List ConnectionInfo , ItemBuildMode, Boolean, Int32) |
Instantiate a new DFS item which is complete.
|
Methods
Name | Description | |
---|---|---|
AccessItemBytes |
Once the item has been fully assembled the completed bytes can be access via this method.
| |
AddBuildLogLine |
Add the provided string to the build log of this item
| |
AssembleItem |
Assemble this DFS item using the swarm
| |
BuildChunkCheckSums |
Uses the loaded stream and builds individual chunk checksums
| |
BuildLog |
Get the current build log for this DFS item
| |
ChunkAvailableLocally |
Returns true if the requested chunk is available locally
| |
CopyItemDataStream |
Copies the contents of the item data stream to the provided destination stream
| |
Dispose |
Dispose of this DFS item
| |
Equals | (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetChunkStream |
Returns a StreamSendWrapper corresponding to the requested chunkIndex.
| |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetItemStream |
Returns a streamSendWrapper that contains the entire item
| |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
HandleIncomingChunkReply |
Handle an incoming chunk reply
| |
IncrementPushCount |
Increments the item push count.
| |
Load |
Load the specified distributed item. Does not add the .DFSItem extension to the fileName
| |
LocalItemComplete |
Returns true once all chunks have been received and the item has been validated
| |
LocalItemValid |
Returns true if the item data validates correctly
| |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
Save |
Save this distributed item (not including item data), adds .DFSItem extension, using the provided filename.
| |
ToString |
Returns ItemTypeStr + ItemIdentifier
(Overrides Object ToString .) | |
UpdateBuildTarget |
Updates the ItemBuildTarget
|
Fields
Name | Description | |
---|---|---|
ItemClosed |
True if this item has been closed. Can be used externally to cancel an AssembleItem.
|
Properties
Name | Description | |
---|---|---|
ChunkCheckSums |
Optional MD5 checksums for individual chunks. Useful for debugging build issues.
| |
ChunkSizeInBytes |
Maximum size of each chunk in bytes. The final chunk may be less than this value.
| |
ItemBuildCascadeDepth |
The cascade depth to use when building this item. Default is 1
| |
ItemBuildCompleted |
The DateTime this DFS item was successfully built.
| |
ItemBuildMode |
The build mode describing how the item should be built, i.e. memory or disk, as a single stream of multiple blocks
| |
ItemBytesLength |
Total item size in bytes.
| |
ItemCheckSum |
The MD5 checksum for the completed item. Used to validate a completed build.
| |
ItemIdentifier |
A unique string identifier for this DFS item. Usually a filename.
| |
ItemTypeStr |
A category for this DFS item. Allowed items to be grouped by item type.
| |
PushCount |
The total number of times this item has been pushed.
| |
SwarmChunkAvailability |
Contains a record of which peers have which chunks of this DFS item
| |
TotalChunkSupplyCount |
The total number of chunks pushed to peers
| |
TotalNumChunks |
Total number of chunks for this item
|
See Also