Defines the Adminstrative API that can be used against the MetaMatrix embeddable component. The main administrative interface for the embedded query service is {@link com.metamatrix.admin.api.embedded.EmbeddedAdmin}, which derives it's behavior from four components:

The Adminstrative API methods generally indicate one or more administrative objects using identifiers, then indicate an action to perform using some parameters.

Usage

    java.sql.Connection connection = // Obtain a MetaMatrix JDBC connection...

    // Cast jdbc.Connection to MetaMatrix extended connection
    com.metamatrix.jdbc.api.Connection mmconn = (com.metamatrix.jdbc.api.Connection)connection;

    // Get a handle to the Admin
    Admin admin = null;
    try {
    	mmconn.getAdminAPI();
    } catch (SQLException err) {
        //...
    }

    // Get all open sessions to the server
    Collection sessions = admin.getSessions("*");

    // Iterate through all server sessions...

    // Close the connection
    try {
    	mmconn.close();
    } catch (SQLException err) {
        //...
    }

Related Documentation

@since 4.3