Retrieving External WMI Cache Events

banner art

Previous Next

Retrieving External WMI Cache Events

You can use Windows Management Instrumentation (WMI) to receive the internal cache events generated by the server. The WMS WMI Event Handler plug-in must be enabled, and you must specify that the server must register the cache event class. The following table identifies the WMI subevents that are raised when the server raises cache proxy events.

Display name Property name Data type Value Description
Sub-event SubEvent uint32   Indicates a specific cache event.
      Cache Hit=0 The cache contains the requested content and is up to date.
      Cache Miss=1 The cache either does not contain the requested content or the content is out of date.
      Download Start=2 The server has started downloading content into the cache.
      Download Complete=3 The server has finished downloading content into the cache.
      Redirect=4 The client has been redirected to an alternate URL.
      Redirect Proxy=5 The client has been redirected to an alternate proxy.
      Prestuff Complete=6 The server has finished prestuffing content into the cache.
URL URL String   Contains the origin URL requested by the client.
Cache Moniker CachePluginMoniker String   Contains a moniker for the cache plug-in object.
Download URL DownloadURL String   Contains the URL that content is downloaded from. This property is available only for the Download Start, Download Complete, and Prestuff Complete events.
Redirect URL RedirectURL String   Contains the URL to which the client is redirected. This property is available only for the Redirect, and Redirect Proxy events.
Time Time DateTime   Specifies the time at which the event was generated.
Result Result uint32   Specifies the error code associated with the event.
Error String ErrorStr String   Specifies the error string associated with the event.

See Also

Previous Next