See: Description
| Interface | Description |
|---|---|
| AlertBoardReader |
Provides methods for reading alerts from the mPRM alert board.
|
| AlertEvent |
Represent an alert event.
|
| AlertListener |
Alert listener objects can be registered with the mPRM in order to obtain
notifications for raising/removing of alerts on the alert board.
|
| AlertSet |
The AlertSet class represents alerts classified by a message.
|
This package provides API for monitroing the mPRM Alert Board with different options for filtering the retrieved alerts. The functionality provided by this package is available through the methods of the AlertBoardReader class and it can be accessed in two ways:
|
import com.prosyst.mprm.alert.*; import com.prosyst.mprm.admin.alertboard.AlertBoardReader; import org.osgi.framework.BundleContext; import org.osgi.framework.ServiceReference; ..... public AlertBoardReader getAlertBoardReader(BundleContext context) { AlertBoardReader abr = null; ServiceReference abrRef = context.getServiceReference(AlertBoardReader.class.getName()); if (abrRef != null) { abr = (AlertBoardReader)context.getService(abrRef); } return abr; } ..... |
com.prosyst.mprm.rac.RemoteAccessClient. An external stand-alone application can use this package by including system-rac.jar in its classpath.
|
import com.prosyst.mprm.alert.*; import com.prosyst.mprm.admin.alertboard.AlertBoardReader; import com.prosyst.mprm.rac.RemoteAccessClient; import java.util.Hashtable; ..... public AlertBoardReader getAlertBoardReader(RemoteAccessClient rac) { AlertBoardReader abr = null; if (rac != null) { abr = (AlertBoardReader)rac.getService(AlertBoardReader.class.getName()); } return abr; } ..... 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 AlertBoardReader service AlertBoardReader alertBoard = getAlertBoardReader(rac); ... //closing session rac.close(); } ..... |
Copyright © 2019 Bosch Software Innovations GmbH. All Rights Reserved.