25.01.2015 Views

Caché Monitoring Guide - InterSystems Documentation

Caché Monitoring Guide - InterSystems Documentation

Caché Monitoring Guide - InterSystems Documentation

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Monitoring</strong> Web Client<br />

GetGlobal()<br />

method GetGlobal() as SYS.Stats.Global<br />

Returns an instance of SYS.Stats.Global that contains global metrics for this instance.<br />

See the class reference for SYS.Stats.Global.<br />

GetRoutine()<br />

method GetRoutine() as SYS.Stats.Routine<br />

Returns an instance of SYS.Stats.Routine that contains routine metrics for this instance.<br />

See the class reference for SYS.Stats.Routine.<br />

GetSystem()<br />

method GetSystem() as SYS.WSMon.wsSystem<br />

Returns an instance of SYS.WSMon.wsSystem that contains system information about the <strong>Caché</strong> instance.<br />

See the class reference for SYS.WSMon.wsSystem.<br />

D.5 <strong>Monitoring</strong> Web Client<br />

The SYS.WSMon.Client class and related classes are a <strong>Caché</strong> web client that can invoke methods of SYS.WSMon.Server<br />

web service in the same <strong>Caché</strong> instance or another <strong>Caché</strong> instance.<br />

This web client class uses the following LOCATION parameter:<br />

Parameter LOCATION = "http://server:port/csp/sys/SYS.WSMon.Service.cls"<br />

Where server is the server on which <strong>Caché</strong> is running and port is the port that the <strong>Caché</strong> web server uses.<br />

Use this web client in the same way that you use other <strong>Caché</strong> web clients:<br />

1. Create an instance of the web client class.<br />

2. Set its Location property if needed.<br />

This is necessary if the SYS.WSMon.Server web service that you want to use is on a different machine than the client,<br />

or if it uses a port other than 57772.<br />

3. Set other properties if needed.<br />

See Creating Web Services and Web Clients in <strong>Caché</strong>.<br />

4. Invoke a web method.<br />

5. Examine the value returned by the web method.<br />

The details depend on the web method you invoke; see the section “Web Methods of the <strong>Monitoring</strong> Web Service”<br />

and see the class reference for the return types.<br />

The following shows an example Terminal session:<br />

<strong>Caché</strong> <strong>Monitoring</strong> <strong>Guide</strong> 127

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!