Skip navigation links

Package com.prosyst.mprm.admin.system

The purpose of this package is to expose convenient API for observing mPRM system configuration through ConfiguratorManager interface.

See: Description

Package com.prosyst.mprm.admin.system Description

The purpose of this package is to expose convenient API for observing mPRM system configuration through ConfiguratorManager interface. This interface is available as service in terms of OSGI on every Backend Server framework. Through Configurator interface initial system configuration can be set or existing configuration can be changed. This functionality is available only via not configured Backend Server Hosts or already running ControlCenter.

An external stand-alone application can use this package by including system-rac.jar in its classpath. Management Console must have installed systemmc.jar in order to use it, while other Backend Hosts use acm.jar. They both are included into the mPRM System package.

Here is an example of using the ConfiguratorManager:

import com.prosyst.mprm.rac.RemoteAccessClient;
import com.prosyst.mprm.admin.system.*;
import java.util.Hashtable;

.....

  public static void main(String[] args) throws Exception {

    //Open session using the system account.
    Hashtable credentials = new Hashtable();
    credentials.put(RemoteAccessClient.USER_PASSWORD, "system");
    RemoteAccessClient rac = RemoteAccessClient.connect("socket://mprm.acme.com:11449", "system", credentials, null);

    //Access the mPRM ConfiguratorManager service
    String serviceName = "com.prosyst.mprm.admin.system.ConfiguratorManager";
    Object service = rac.getService(serviceName);

    //Print current system state
    if (service != null) {
     System.out.println(((ConfiguratorManager) service).getSystemState());
    } else {
     System.out.println("Service " + serviceName + " is not avaliable.");
    }
    //closing session
    rac.close();
  }

.....

Skip navigation links

Copyright © 2019 Bosch Software Innovations GmbH. All Rights Reserved.