4.1 Message Processing Examples

This section presents the following sample scenarios that illustrate the allocation of resources using methods of the Windows System Resource Manager (WSRM) Protocol.

Interface

Method

Section

Description

IWRMConfig

EnableDisable

4.1.1

Enable accounting on a local machine.

IResourceManager2

ExportXml

4.1.2

Export selected objects from the configuration.

IResourceManager2

GetImportConflicts

4.1.3

Check whether import will lead to conflicting objects.

IResourceManager2

ImportXml

4.1.4

Export selected policies to a machine group.

IWRMMachineGroup

AddMachine

4.1.5

Add a machine to a machine group.

IWRMMachineGroup

CreateMachineGroup

4.1.6

Create and initialize a machine group.

IWRMPolicy

CreatePolicy

4.1.7

Create a custom resource allocation policy (RAP).

IWRMPolicy

SetCurrentPolicy

4.1.8

Set the current resource policy.

IWRMResourceGroup

CreateResourceGroup

4.1.9

Create a custom process matching criteria (PMC).

In each scenario, it is assumed that a WSRM management service is running on the server machine.