The ASCommon Object

The ASCommon class provides a set of static methods for managing metaspaces. ASCommon can be used to connect to a metaspace, retrieve a list of currently connected metaspaces, and set a global log level.

ASCommon can be very convenient to use; for example, to obtain a copy of the currently connected Metaspace object (using ASCommon.getMetaspace(by name) since a process can only be connected once to a particular metaspace and therefore can not have parts of it's code invoke Metaspace.connect twice in a row for a particular metaspace.

Related reference