The VirtualStreamManager type exposes the following members.
Constructors
Name | Description | |
---|---|---|
VirtualStreamManager()()()() |
Creates directory Cosmos under application directory.
| |
VirtualStreamManager(String) |
Creates user supplied directory.
|
Methods
Name | Description | |
---|---|---|
Append |
This function appends the given data in byte array to the specified stream.
The append starts at the given streamFixedOffset in the destination stream. If the stream already contains data in the
streamFixedOffset position and it is different from the data that is being appended, then this operation will fail.
| |
AppendFile |
This function appends the given file to the specified stream. The data will be read from the local file starting
at offset and the number of bits appended will be equal to length.
The append starts at the given streamFixedOffset in the destination stream. If the stream already contains data in the
streamFixedOffset position and it is different from the data that is being appended, then this operation will fail.
| |
Concatenate |
This function concatenates two given streams.
| |
Create |
This fuction creates a stream on the virtual cluster. It will also assign the expiration time for the stream.
| |
Delete |
This function deletes the given stream.
| |
Dispose |
IDisposable.Disposing
| |
Download |
This function downloads a stream on the virtual cluster to the local machine. The download will start at the specified
offset and copy "length" number of bits.
| |
GetDirectoryInfo |
This function gets the StreamInfo for a given directory.
| |
GetStreamInfo |
Gets the StreamInfo for a stream.
| |
GetStreamSetInfo |
This function gets the StreamInfo of each stream in the given streamset.
| |
LogAppend |
This appends the given data in the byte array to the log stream on the virtual cluster whose "key" and "value"
match the key and value. hmKeyValue contains keyvalue pairs and the append operation will be performed for each
keyvalue pair.
| |
LogAppendFile |
This appends the data in the given file to the log stream on the virtual cluster whose "key" and "value"
match the key and value. hmKeyValue contains keyvalue pairs and the append operation will be performed for each
keyvalue pair.
| |
LogAppendWithArrayOffset |
This appends the given data in the byte array to the log stream on the virtual cluster whose "key" and "value"
match the key and value. hmKeyValue contains keyvalue pairs and the append operation will be performed for each
keyvalue pair.
| |
ReadStream |
This function reads a stream from the virtual cluster and returns a stream object. The stream
will be read fromthe specified offset for the given length.
| |
Rename |
This function renames the given stream.
| |
Rename2 |
This function renames the given stream.
| |
SealStream |
Seals the last extent in a Cosmos stream. Seal happens automatically when calling
AppendFile(), but if you are uploading using Append() you may want to call this when
you know there will be no more data to upload.
| |
SetStreamExpirationTime |
This fuction sets the expiration time for the stream.
| |
StreamExists |
This function checks if a given stream exists or not.
| |
Upload |
This function uploads the given byte array data to the vc.
| |
UploadFile |
This function uploads the given file to the vc. The data will be read from the local file starting
at offset and the number of bits appended will be equal to length.
|
Properties
Name | Description | |
---|---|---|
BaseDirectory |
Directory to store all mapped streams
| |
DeleteBaseDirectoryOnDestroy |
If true then all files will be deleted in object destructor; otherwise, files will be left in place.
Default: true.
| |
OpenedStreams |
Returns collection of open streams. Unit test methods should verify if there are open streams
before disposing VirtualStreamManager, since destructor will close these streams
automaticaly and code error can be hidden.
|