3.2.4.3 IWRMAccounting Interface
The IWRMAccounting interface defines the following methods.
Methods in RPC Opnum Order
Method |
Description |
---|---|
Creates the accounting database on a specified machine at runtime. Opnum: 7 |
|
Retrieves accounting metadata. Opnum: 8 |
|
Executes an accounting query. Opnum: 9 |
|
Returns raw accounting data. Opnum: 10 |
|
Gets a batch of accounting data. Opnum: 11 |
|
Deletes accounting data within a specified time period. Opnum: 12 |
|
Not implemented. Opnum: 13 |
|
Cancels a query currently being made to the accounting database. Opnum: 14 |
|
Registers a client for remote accounting on a server. Opnum: 15 |
|
Dumps the accounting data of the server. Opnum: 16 |
|
Gets the names of all servers that are acting as accounting clients on this server. Opnum: 17 |
|
Sets the status of servers that are in the remote client role. Opnum: 18 |
|
Determines the status of the connection to the accounting server. Opnum: 19 |
|
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.