@Retention(value=RUNTIME)
@Target(value={METHOD,CONSTRUCTOR})
public @interface NotifyValue
notifyDifference() is false in this case). The value
is determined by the expression in expression() and assigned
to value(). id() may be given or the
surrounding group id is used.expression() and
assigned to value()) and at the end of the method.
(notifyDifference() is true
in this case). id() may be given or the surrounding
group id is used.expression
may notify the new value to the recorder. Id may be the direct id or
be taken from ValueContext. In this case
notifyDifference() is ignored.id() if value() is
MeasurementValue.ALL. In this case, id() may refer
to a concrete id, the variability prefix or the group id is taken
if the id is not given. notifyDifference() and
expression() are ignored.| Modifier and Type | Required Element and Description |
|---|---|
java.lang.String |
expression
An expression determining the value to be notified.
|
MeasurementValue |
value
The value to be modified.
|
| Modifier and Type | Optional Element and Description |
|---|---|
java.lang.String |
id
The monitoring group to be notified.
|
boolean |
notifyDifference
Notify the value itself or the difference between entering the method
and exiting it.
|
java.lang.String |
tagExpression
An optional expression which is used to determine the tag for the memory
allocation.
|
public abstract java.lang.String expression
public abstract MeasurementValue value
public abstract java.lang.String id
Monitorpublic abstract java.lang.String tagExpression
MeasurementValue.MEM_ALLOCATED or
MeasurementValue.MEM_UNALLOCATED.