(.js)
laraImport("antarex.examon.Examon");
(.lara)
import antarex.examon.Examon;
Classes:
Global Functions:
ExamonBroker
Utility class to represent a broker. This is meant to be passed to the
initialization of collectors.
new ExamonCollector(name, [$scope], topic)
Class that represents an Examon collector.
clean($jp)
Inserts code that cleans this collector in the code.
If the provided join point is a statement (or encapsulated by one) the
code will be inserted after that statement. However, if the join point is a
scope, the code will be inserted at the end of that scope.
declEndMicroSec($jp)
Declares a variable with the value of the microsecond component of the end
point and returns its name. The code insertion is performed after the
provided reference join point.
declEndSec($jp)
Declares a variable with the value of the second component of the end point
and returns its name. The code insertion is performed after the provided
reference join point.
declMean($jp)
Declares a variable with the value of the mean component and returns its
name. The code insertion is performed after the provided reference join
point.
declStartMicroSec($jp)
Declares a variable with the value of the microsecond component of the start
point and returns its name. The code insertion is performed after the
provided reference join point.
declStartSec($jp)
Declares a variable with the value of the second component of the start
point and returns its name. The code insertion is performed after the
provided reference join point.
end($jp)
Inserts code that ends this collector in the code.
If the provided join point is a statement (or encapsulated by one) the
code will be inserted after that statement. However, if the join point is a
scope, the code will be inserted at the end of that scope.
get($jp)
Inserts code that gets the data of this collector in the code.
If the provided join point is a statement (or encapsulated by one) the
code will be inserted after that statement. However, if the join point is a
scope, the code will be inserted at the start of that scope.
getEndMicroSec()
Returns the code needed to get the microsecond component of the end point.
getEndSec()
Returns the code needed to get the second component of the end point.
getMean()
Returns the code needed to get the mean value component.
getStartMicroSec()
Returns the code needed to get the microsecond component of the start point.
getStartSec()
Returns the code needed to get the second component of the start point.
getvarName()
Returns the name of the variable inserted in the code to represent this collector.
init(broker, $jp)
Inserts code that initializes this collector in the code.
If the provided join point is a statement (or encapsulated by one) the
code will be inserted after that statement. However, if the join point is a
scope, the code will be inserted at the start of that scope.
insertAfter($jp, code)
Utility method that inserts code after the provided reference join point and
guarantees some consistency with the inserts performed by this library.
start($jp)
Inserts code that starts this collector in the code.
If the provided join point is a statement (or encapsulated by one) the
code will be inserted after that statement. However, if the join point is a
scope, the code will be inserted at the start of that scope.
new ExamonRaw(name, $scope)
Class that represents a raw connection.
clean($scope)
getvarName()
init(broker, $scope)
send(contents, index, topic, $scope)
farInsertHelper($ref, code, map, beforeMap, start)
Utility method to perform far insertions after the provided reference join
point. Far insertions make sure that the new code that is inserted is as far
from the join point as possible, as opposed to the normal behavior of
insertions.
This method inserts the code after the reference with 2 exceptions.
1) If the reference join point is a return statement, the code will be
inserted before the statement.
2) If the reference join point is a scope, the code will be inserted at the
start or at the end of the scope, according to the value of the start
parameter.