3.2.4.5 IDataCollector
The following are the properties that MUST be implemented by the objects that implement the IDataCollector interface.
Property |
Read/write |
Description |
---|---|---|
DataCollectorSet |
R |
The data collector set to which this data collector belongs. |
DataCollectorType |
R |
The type of data collector. |
FileName |
RW |
The base name of the file containing the output of the data collector. |
FileNameFormat |
RW |
Determines how the name of the file storing the output of the data collector will be formatted. The FileName property itself (described above) is always included. The filename can optionally be decorated with other information. These possible decorations are specified by the AutoPathFormat enumeration. This property stores an AutoPathFormat value. If the AutoPathFormat value specified by this property includes the 'plaPattern' bit, the FileNameFormatPattern (specified below) contains the pattern that will be appended to the filename. The format of the pattern is specified in section 2.2.3.1. |
FileNameFormatPattern |
RW |
If patterns are to be included in the decoration of file names, determines the pattern to use. Patterns are included in the decoration if the value of the FileNameFormat property (specified above) includes the 'plaPattern' bit. The format of the pattern is specified in section 2.2.3.1. |
Index |
R |
The index value of the data collector. |
LatestOutputLocation |
RW |
Full path of the file where data was stored the last time the data collector ran. |
LogAppend |
RW |
Specifies whether existing files MUST be appended. |
LogCircular |
RW |
Specifies whether files MUST be circular. |
LogOverwrite |
RW |
Specifies whether existing files MUST be overwritten. |
Name |
RW |
Name of the data collector. |
OutputLocation |
R |
Full path of the file where data would be stored if the data collector were to start now. |
Xml |
R |
The XML representation of the data collector set. |
A data collector can be represented as an XML file, which can be used to serialize (using Xml (Get) 3.2.4.5.21) and deserialize (using SetXml 3.2.4.5.22) it. The full XML is specified in section 3.2.4.19. The format of the XML that defines a data collector, and is common to all types of data collectors, is as follows:
-
<DataCollectorType/> <FileName/> <FileNameFormat/> <FileNameFormatPattern/> <Index/> <LatestOutputLocation/> <LogAppend/> <LogCircular/> <LogOverwrite/> <Name/> <OutputLocation/>
Opnums 8, 28 and 31 are not used across the network. These opnums are reserved and MUST NOT be reused by non-Microsoft implementations.<17>
Methods in RPC Opnum Order
Method |
Description |
---|---|
Retrieves the DataCollectorSet property. Opnum: 7 |
|
Opnum8NotUsedOnWire |
Reserved for local use. Opnum: 8 |
Retrieves the DataCollectorType property. Opnum: 9 |
|
Retrieves the FileName property. Opnum: 10 |
|
Sets the FileName property. Opnum: 11 |
|
Retrieves the FileNameFormat property. Opnum: 12 |
|
Sets the FileNameFormat property. Opnum: 13 |
|
Retrieves the FileNameFormatPattern property. Opnum: 14 |
|
Sets the FileNameFormatPattern property. Opnum: 15 |
|
Retrieves the LatestOutputLocation property. Opnum: 16 |
|
Sets the LatestOutputLocation property. Opnum: 17 |
|
Retrieves the LogAppend property. Opnum: 18 |
|
Sets the LogAppend property. Opnum: 19 |
|
Retrieves the LogCircular property Opnum: 20 |
|
Sets the LogCircular property. Opnum: 21 |
|
Retrieves the LogOverwrite property. Opnum: 22 |
|
Sets the LogOverwrite property. Opnum: 23 |
|
Retrieves the Name property. Opnum: 24 |
|
Sets the Name property. Opnum: 25 |
|
Retrieves the OutputLocation property. Opnum: 26 |
|
Retrieves the Index property. Opnum: 27 |
|
Opnum28NotUsedOnWire |
Reserved for local use. Opnum: 28 |
Xml (Get) |
Retrieves the XML property. Opnum: 29 |
SetXml |
Sets the properties of the data collector using the values in the XML file. Opnum: 30 |
Opnum31NotUsedOnWire |
Reserved for local use. Opnum: 31 |
Opnums 0, 1, and 2 are reserved for the IUnknown interface. Opnums 3, 4, 5, and 6 are reserved for the IDispatch interface.