public interface ControlUnitTracker
| Modifier and Type | Method and Description |
|---|---|
void |
addTrackListener(java.lang.String eventFilter,
TrackListener listener)
Registers tracker listener to be notified for changes in the control unit tracker, i.e.
|
java.lang.Object[] |
getDistinctValues(java.lang.String cuType,
java.lang.String svName,
java.lang.String filter,
int maxCount)
Returns up to
maxCount distinct values of given state variable encountered in all track records of given cu type. |
Enumerator |
getExtensionIds(java.lang.String superTrackId,
java.lang.String cuType,
java.lang.String filter)
Returns all track records for a given cu type, that are direct extensions if specified track record.
|
Enumerator |
getExtensions(java.lang.String superTrackId,
java.lang.String cuType,
java.lang.String filter)
Returns all track records for a given cu type, that are direct extensions if specified track record.
|
java.lang.Object[] |
getForeignValues(java.lang.String trackId,
java.lang.String foreignStateVariable)
Returns all tracked values of given foreign state variable for given track record.
|
java.lang.String[] |
getForeignVariableNames(java.lang.String controlUnitType)
Returns the list of state variable ids declared as foreign state variables for given control unit type.
|
TrackedControlUnit |
getTrackedControlUnit(java.lang.String trackId)
Retrieves tracked control unit instance.
|
Enumerator |
getTrackedControlUnitIds(java.lang.String cuType,
java.lang.String filter)
Lists ids of tracked control units of given control unit type and filtered by given criteria.
|
Enumerator |
getTrackedControlUnits(java.lang.String cuType,
java.lang.String filter)
Lists tracked control units of given control unit type and filtered by given criteria.
|
java.lang.String[] |
getTrackedControlUnitTypes()
Returns types of control units kept in the tracker.
|
java.lang.String[] |
getTrackedInterface(java.lang.String controlUnitType)
Returns the list of state variables determining the track interface for given control unit type.
|
java.lang.String |
getTrackId(TrackedControlUnit trackedUnit)
Returns id of tracked control unit that matches a supplied control unit state.
|
void |
removeTrackListener(TrackListener listener)
Removes a track listener registration.
|
java.lang.String[] getTrackedControlUnitTypes()
throws ManagementException
ManagementException - if system error occurs.java.lang.String[] getTrackedInterface(java.lang.String controlUnitType)
throws ManagementException
controlUnitType - control unit typeManagementException - if system error occurs.java.lang.String getTrackId(TrackedControlUnit trackedUnit) throws ManagementException
null if
such record does not exist in the tracker.ManagementException - if system error occurs.Enumerator getTrackedControlUnits(java.lang.String cuType, java.lang.String filter) throws ManagementException
cuType - control unit type.filter - filter in mPRM Script form.Enumerator of TrackedControlUnit objects.ManagementException - if system error occurs.Enumerator getTrackedControlUnitIds(java.lang.String cuType, java.lang.String filter) throws ManagementException
cuType - control unit typefilter - filter in mPRM Script form.Enumerator of String objects represented track ids.ManagementException - if system error occurs.Enumerator getExtensions(java.lang.String superTrackId, java.lang.String cuType, java.lang.String filter) throws ManagementException
cuType must extend the control unit type of the record superTrackId.
The hierarchy of track records derives from the control unit types hierarchy. When a track record enters
the tracker, the system automatically enters super-records for every super-type of the entering track
and links the record with its super-records.
This method enumerates all extensions by given super track.superTrackId - id of super track record.cuType - control unit type of the listed extensions records.filter - control unit filter in mPRM Script lexical syntax.Enumerator of TrackedControlUnit objects.ManagementException - if system error occurs.Enumerator getExtensionIds(java.lang.String superTrackId, java.lang.String cuType, java.lang.String filter) throws ManagementException
cuType must extend the control unit type of the record superTrackId.
The hierarchy of track records derives from the control unit types hierarchy. When a track record enters
the tracker, the system automatically enters super-records for every super-type of the entering track
and links the record with its super-records.
This method enumerates all extensions by given super track.superTrackId - id of super track record.cuType - control unit type of the listed extensions records.filter - contorl unit filter in mPRM Script lexical syntax.Enumerator of track id strings.ManagementException - if system error occurs.TrackedControlUnit getTrackedControlUnit(java.lang.String trackId) throws ManagementException
trackId - id of tracked control unit.TrackedControlUnit object.ManagementException - if system error occurs.void addTrackListener(java.lang.String eventFilter,
TrackListener listener)
throws ManagementException
eventFilter - filter specifying the tracked control units, the application listener is interested in.
Filter must be given in mPRM Script filter form and may specify restrictions about the control unit
types and/or participating state variables in the tracked interface.listener - application implemented track listener.ManagementException - if system error occurs.void removeTrackListener(TrackListener listener)
listener - user-defined track listener.java.lang.Object[] getDistinctValues(java.lang.String cuType,
java.lang.String svName,
java.lang.String filter,
int maxCount)
throws ManagementException
maxCount distinct values of given state variable encountered in all track records of given cu type.
For example the bundle-category for OSGi bundles.
The MC lists all different bundle categories and builds the tracker view to display bundles sorted in different categories.cuType - control unit type.svName - id of the state variable for which distinct values are requested.filter - control unit filter in mPRM Script lexical form.maxCount - limitation of distinct values count.ManagementException - if system error occurs.java.lang.String[] getForeignVariableNames(java.lang.String controlUnitType)
throws ManagementException
controlUnitType - control unit type.ManagementException - if system error occurs.java.lang.Object[] getForeignValues(java.lang.String trackId,
java.lang.String foreignStateVariable)
throws ManagementException
trackId - id of track record.foreignStateVariable - id of foreign state variable.ManagementException - if system error occurs.Copyright © 2019 Bosch Software Innovations GmbH. All Rights Reserved.