3.2.4.3 IWRMAccounting Interface

The IWRMAccounting interface defines the following methods.

Methods in RPC Opnum Order

Method

Description

CreateAccountingDb

Creates the accounting database on a specified machine at runtime.

Opnum: 7

GetAccountingMetadata

Retrieves accounting metadata.

Opnum: 8

ExecuteAccountingQuery

Executes an accounting query.

Opnum: 9

GetRawAccountingData

Returns raw accounting data.

Opnum: 10

GetNextAccountingDataBatch

Gets a batch of accounting data.

Opnum: 11

DeleteAccountingData

Deletes accounting data within a specified time period.

Opnum: 12

DefragmentDB

Not implemented.

Opnum: 13

CancelAccountingQuery

Cancels a query currently being made to the accounting database.

Opnum: 14

RegisterAccountingClient

Registers a client for remote accounting on a server.

Opnum: 15

DumpAccountingData

Dumps the accounting data of the server.

Opnum: 16

GetAccountingClients

Gets the names of all servers that are acting as accounting clients on this server.

Opnum: 17

SetAccountingClientStatus

Sets the status of servers that are in the remote client role.

Opnum: 18

CheckAccountingConnection

Determines the status of the connection to the accounting server.

Opnum: 19

SetClientPermissions

Adds or removes a specified client for remote accounting on a server and makes the required changes for DCOM permissions.

Opnum: 20

With the WSRM Protocol, it is possible for one WSRM server, acting as an accounting client, to log accounting data on another WSRM server, acting as the accounting server. The accounting client dumps the accounting data to the database by calling the WSRM management service on the accounting server.

Methods in the IWRMAccounting Interface can be called by the WSRM management service to manage remote accounting as follows:

  • RegisterAccountingClient can register the remote server as an accounting client when accounting is enabled for the first time.

  • DumpAccountingData can pass accounting data from a remote server acting as an accounting client to the current accounting server.

  • CheckAccountingConnection can check the connection to the accounting server.

  • SetClientPermissions can add or remove an accounting client from the DCOM users group on the accounting server.

Note Remote accounting is not supported in a workgroup environment.