The SpaceDefMonitor example creates a SpaceDefListener for a metaspace. The listener callback is invoked whenever a space is defined or dropped from the metaspace. The listener callback displays information about the event that caused it to be invoked.
SpaceDefMonitor is only interested in events that affect the definition of spaces in a metaspace. If
SpaceDefMonitor connects to a metaspace with existing spaces, it displays information about those spaces when it first starts up, and then displays information about spaces as they are defined in or dropped from the metaspace.
The following examples show how to invoke SpaceDefMonitor for each of the API sets.
These command line options start SpaceDefMonitor using the default metaspace named
ms and allow it to connect to a security domain controller that has been started using the example security policy file
example_policy.txt.
To see output from SpaceDefMonitor, start
SpaceDefMonitor, and then start other example programs that define new spaces, such as
ASChat or
ASOperations to see what is displayed when each program starts up. Exit all example programs, then start up the Admin CLI and enter the following:
For each space displayed by show spaces, do the following and watch what is displayed in the SpaceDefMonitor command window:
Enter quit in the SpaceDefMonitor command window to exit the program.