If the watch already exists in the bean's {@link WatchRegistry}, the watch will not be added.
The bean must declare a Java bean getter method that has as it's return type one of the following:
public class Foo { ... public long getCount() { return(value); } ... }Finally, in the OperationalString, Watch declaration is accomplished using the embedded the <Monitor> element, for example:
<SLA ID="backlog" Low="100" High="500"> <PolicyHandler type="scaling" max="10" lowerDampener="3000" upperDampener="3000"/> <Monitor name="entryCounter" property="count" period="10000"/> </SLA>This declaration creates a {@link SamplingWatch} with a nameof entryCounter, which adds the value returned from the getCount() method every 10 seconds. @author Dennis Reedy
|
|
|
|