See: Description
| Interface | Description |
|---|---|
| RemoteControlConstants | |
| RemoteCUAdmin |
Remote representation of the
ControlUnitAdmin service aiming to provide the ability for control units
to be remotely managed in the same manner as if they were managed on their local OSGi framework. |
RemoteCUAdmin is provided in mPRM for management of three conceptually different control unit targets:
system control units
RemoteCUAdmin.
control units on managed devices
RemoteCUAdmin for management of component control units provided on any particular device managed in mPRM.
com.prosyst.mprm.net.message.Connection
org.mbs.services.cup.radmin.factory.RemoteCUAdminFactory (currently not provided in mPRM).
Can be used by standalone applications to manage control units on any remote osgi framework with enabled messaging.
RemoteCUAdmin for management of system control units could be accessed in two ways:|
import org.mbs.services.cup.radmin.RemoteCUAdmin; import org.osgi.framework.BundleContext; import org.osgi.framework.ServiceReference; ..... public RemoteCUAdmin getRemoteCUAdmin(BundleContext context) { RemoteCUAdmin cuAdmin = null; ServiceReference cuadminRef = context.getServiceReference(RemoteCUAdmin.class.getName()); if (cuadminRef != null) { cuAdmin = (RemoteCUAdmin)context.getService(cuadminRef); } return cuAdmin; } ..... |
com.prosyst.mprm.rac.RemoteAccessClient. An external stand-alone application can use this package by including system-rac.jar in its classpath.
|
import org.mbs.services.cup.radmin.RemoteCUAdmin; import com.prosyst.mprm.rac.RemoteAccessClient; import java.util.Hashtable; ..... public BackendControlUnitProxyFactory getRemoteCUAdmin(RemoteAccessClient rac) { RemoteCUAdmin cuAdmin = null; if (rac != null) { cuAdmin = (RemoteCUAdmin)rac.getService(RemoteCUAdmin.class.getName()); } return cuAdmin; } ..... public static void main(String[] args) { //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); ... //Now the application can access mPRM BackendControlUnitProxyFactory service RemoteCUAdmin cuAdmin = getRemoteCUAdmin(rac); ... //closing session rac.close(); } ..... |
Copyright © 2019 Bosch Software Innovations GmbH. All Rights Reserved.