LogRecordSequence Class

 

Represents a record sequence stored in a LogStore.

Namespace:   System.IO.Log
Assembly:  System.IO.Log (in System.IO.Log.dll)

System.Object
  System.IO.Log.LogRecordSequence

[<Sealed>]
type LogRecordSequence = 
    class
        interface IRecordSequence
        interface IDisposable
    end

NameDescription
System_CAPS_pubmethodLogRecordSequence(LogStore)

Initializes a new instance of the LogRecordSequence class with the specified log store.

System_CAPS_pubmethodLogRecordSequence(LogStore, Int32, Int32)

Initializes a new instance of the LogRecordSequence class with the specified log store, buffer size for each record, and buffer number.

System_CAPS_pubmethodLogRecordSequence(String, FileMode)

Initializes a new instance of the LogRecordSequence class with a specified path to the log store and the access mode.

System_CAPS_pubmethodLogRecordSequence(String, FileMode, FileAccess)

Initializes a new instance of the LogRecordSequence class with a specified path to the log store and the access and share modes.

System_CAPS_pubmethodLogRecordSequence(String, FileMode, FileAccess, FileShare)

Initializes a new instance of the LogRecordSequence class with a specified path to the log store and the access mode.

System_CAPS_pubmethodLogRecordSequence(String, FileMode, FileAccess, FileShare, Int32, Int32)

Initializes a new instance of the LogRecordSequence class with a specified path to the log store, file permission, access and share modes, and the buffer size and count for records.

System_CAPS_pubmethodLogRecordSequence(String, FileMode, FileAccess, FileShare, Int32, Int32, FileSecurity)

Initializes a new instance of the LogRecordSequence class.

NameDescription
System_CAPS_pubpropertyBaseSequenceNumber

Gets the sequence number of the first valid record in the current LogRecordSequence.

System_CAPS_pubpropertyLastSequenceNumber

Gets the sequence number which is greater than the last record appended

System_CAPS_pubpropertyLogStore

Gets the LogStore that contains the data for this record sequence. This method cannot be inherited.

System_CAPS_pubpropertyMaximumRecordLength

Gets the maximum size of a record that can be added to this record sequence.

System_CAPS_pubpropertyReservedBytes

Gets the total number of bytes that have been reserved.

System_CAPS_pubpropertyRestartSequenceNumber

Gets the sequence number of the restart area closest to the end of the log.

System_CAPS_pubpropertyRetryAppend

Gets or sets a value indicating whether or not appends are automatically retried if the log is full.

NameDescription
System_CAPS_pubmethodAdvanceBaseSequenceNumber(SequenceNumber)

Moves the base sequence number of the log forward. This method cannot be inherited.

System_CAPS_pubmethodAppend(ArraySegment<Byte>, SequenceNumber, SequenceNumber, RecordAppendOptions)

Writes a log record to the LogRecordSequence. This method cannot be inherited.

System_CAPS_pubmethodAppend(ArraySegment<Byte>, SequenceNumber, SequenceNumber, RecordAppendOptions, ReservationCollection)

Appends a log record to the IRecordSequence, using space previously reserved in the sequence. This method cannot be inherited.

System_CAPS_pubmethodAppend(IList<ArraySegment<Byte>>, SequenceNumber, SequenceNumber, RecordAppendOptions)

Appends a log record to the IRecordSequence. This method cannot be inherited.

System_CAPS_pubmethodAppend(IList<ArraySegment<Byte>>, SequenceNumber, SequenceNumber, RecordAppendOptions, ReservationCollection)

Appends a log record to the IRecordSequence, using space previously reserved in the sequence. This method cannot be inherited.

System_CAPS_pubmethodBeginAppend(ArraySegment<Byte>, SequenceNumber, SequenceNumber, RecordAppendOptions, AsyncCallback, Object)

Begins an asynchronous append operation. This method cannot be inherited.

System_CAPS_pubmethodBeginAppend(ArraySegment<Byte>, SequenceNumber, SequenceNumber, RecordAppendOptions, ReservationCollection, AsyncCallback, Object)

Begins an asynchronous append operation. This method cannot be inherited.

System_CAPS_pubmethodBeginAppend(IList<ArraySegment<Byte>>, SequenceNumber, SequenceNumber, RecordAppendOptions, AsyncCallback, Object)

Begins an asynchronous append operation. This method cannot be inherited.

System_CAPS_pubmethodBeginAppend(IList<ArraySegment<Byte>>, SequenceNumber, SequenceNumber, RecordAppendOptions, ReservationCollection, AsyncCallback, Object)

Begins an asynchronous append operation. This method cannot be inherited.

System_CAPS_pubmethodBeginFlush(SequenceNumber, AsyncCallback, Object)

Begins an asynchronous flush operation, using space previously reserved in the sequence. This method cannot be inherited.

System_CAPS_pubmethodBeginReserveAndAppend(ArraySegment<Byte>, SequenceNumber, SequenceNumber, RecordAppendOptions, ReservationCollection, Int64[], AsyncCallback, Object)

Begins an asynchronous reserve and append operation. This method cannot be inherited.

System_CAPS_pubmethodBeginReserveAndAppend(IList<ArraySegment<Byte>>, SequenceNumber, SequenceNumber, RecordAppendOptions, ReservationCollection, Int64[], AsyncCallback, Object)

Begins an asynchronous reserve and append operation. This method cannot be inherited.

System_CAPS_pubmethodBeginWriteRestartArea(ArraySegment<Byte>, SequenceNumber, ReservationCollection, AsyncCallback, Object)

Begins an asynchronous restart area write operation, using space previously reserved in the sequence. This method cannot be inherited.

System_CAPS_pubmethodBeginWriteRestartArea(IList<ArraySegment<Byte>>, SequenceNumber, ReservationCollection, AsyncCallback, Object)

Begins an asynchronous restart area write operation, using space previously reserved in the sequence. This method cannot be inherited.

System_CAPS_pubmethodCreateReservationCollection()

Creates a new ReservationCollection. This method cannot be inherited.

System_CAPS_pubmethodDispose()

Releases the resources used by the component.

System_CAPS_pubmethodEndAppend(IAsyncResult)

Ends an asynchronous append operation. This method cannot be inherited.

System_CAPS_pubmethodEndFlush(IAsyncResult)

Ends an asynchronous flush operation. This method cannot be inherited.

System_CAPS_pubmethodEndReserveAndAppend(IAsyncResult)

Ends an asynchronous reserve and append operation. This method cannot be inherited.

System_CAPS_pubmethodEndWriteRestartArea(IAsyncResult)

Ends an asynchronous restart area write operation. This method cannot be inherited.

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_pubmethodFlush()

Ensures that all appended records have been written. This method cannot be inherited.

System_CAPS_pubmethodFlush(SequenceNumber)

Ensures that all appended records up to and including the record with the specified sequence number have been durably written. This method cannot be inherited.

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodReadLogRecords(SequenceNumber, LogRecordEnumeratorType)

Returns an enumerable collection of records in the sequence. This method cannot be inherited.

System_CAPS_pubmethodReadRestartAreas()

Returns an enumerable collection of the restart areas in the sequence. This method cannot be inherited.

System_CAPS_pubmethodReserveAndAppend(ArraySegment<Byte>, SequenceNumber, SequenceNumber, RecordAppendOptions, ReservationCollection, Int64[])

Automatically makes a single reservation and appends a record to the sequence. This method cannot be inherited.

System_CAPS_pubmethodReserveAndAppend(IList<ArraySegment<Byte>>, SequenceNumber, SequenceNumber, RecordAppendOptions, ReservationCollection, Int64[])

Automatically makes a single reservation and appends a record to the sequence. This method cannot be inherited.

System_CAPS_pubmethodSetLastRecord(SequenceNumber)

Sets the last record in the LogRecordSequence.

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

System_CAPS_pubmethodWriteRestartArea(ArraySegment<Byte>)

Writes a restart area to the LogRecordSequence. This method cannot be inherited.

System_CAPS_pubmethodWriteRestartArea(ArraySegment<Byte>, SequenceNumber)

Writes a restart area to the LogRecordSequence and updates the base sequence number. This method cannot be inherited.

System_CAPS_pubmethodWriteRestartArea(ArraySegment<Byte>, SequenceNumber, ReservationCollection)

Writes a restart area to the LogRecordSequence using a reservation, and updates the base sequence number. This method cannot be inherited.

System_CAPS_pubmethodWriteRestartArea(IList<ArraySegment<Byte>>)

Writes a restart area to the LogRecordSequence. This method cannot be inherited.

System_CAPS_pubmethodWriteRestartArea(IList<ArraySegment<Byte>>, SequenceNumber)

Writes a restart area to the LogRecordSequence and updates the base sequence number. This method cannot be inherited.

System_CAPS_pubmethodWriteRestartArea(IList<ArraySegment<Byte>>, SequenceNumber, ReservationCollection)

Writes a restart area to the LogRecordSequence using a reservation, and updates the base sequence number. This method cannot be inherited.

NameDescription
System_CAPS_pubeventTailPinned

Signals the need to move the tail of the sequence.

The LogRecordSequence class provides an implementation of the record sequence interface on top of a Common Log File System (CLFS) log. In addition to the standard record-oriented features, it provides a policy model for avoiding log-full conditions, and multiplexing of clients on the same physical file. It works with the LogStore class, which provides an interface for directly manipulating and managing a CLFS log file. The relationship between the LogStore class and the LogRecordSequence class is similar to the relationship between a disk file and a FileStream object. The disk file provides the concrete storage, and has attributes such as length and last access time; while the FileStream object provides a view on the file that can be used to read from it and write to it. Similarly, the LogStore class has attributes like a policy and a collection of disk extents; and the LogRecordSequence class provides a record-oriented mechanism for reading and writing data.

This example shows how to use the LogRecordSequence class:

No code example is currently available or this language may not be supported.

.NET Framework
Available since 3.0

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: