org.jmxtrans.agent.ExpressionLanguageEngine Maven / Gradle / Ivy
package org.jmxtrans.agent;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import javax.management.ObjectName;
/**
* @author Cyrille Le Clerc
*/
public interface ExpressionLanguageEngine {
/**
* Replace all the '#' based keywords (e.g. #hostname#
) by the value returned by the associated function.
*
* @param expression the expression to resolve (e.g. "servers.#hostname#."
)
* @return the resolved expression (e.g. "servers.tomcat5"
)
*/
@Nonnull
String resolveExpression(@Nonnull String expression);
@Nonnull
String resolveExpression(@Nonnull String expression, @Nonnull ObjectName exactObjectName, @Nullable String attribute, @Nullable String compositeDataKey, @Nullable Integer position);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy