|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.apama.jmon.PreparedEventExpressionTemplate
public class PreparedEventExpressionTemplate
Instances of this class are declared to represent templates for "Prepared Event Expressions". These are similar in concept to SQL prepared statements, in that they allow a monitor to declare a parameterised event expression that can then be "instantiated" as many times as necessary with different parameter values. The advantage of this approach over standard event expressions is that the expression is only parsed once, when the template is created. Instantiating the template with some set of parameters is then a relatively cheap operation. Standard event expressions will be parsed every time a listener is attached to them, which can be inefficient in monitors that create large numbers of listeners.
See the documentation for PreparedEventExpression
for examples of how this class is used.
Constructor Summary | |
---|---|
PreparedEventExpressionTemplate(java.lang.String templateString)
Constructor to create a new instance with the given immutable expression template string. |
Method Summary | |
---|---|
PreparedEventExpression |
getInstance()
Create a new instance of the event expression template. |
java.lang.String |
getTemplateString()
Get the String value of the PreparedEventExpressionTemplate. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PreparedEventExpressionTemplate(java.lang.String templateString)
templateString
- The event expression template to be used.Method Detail |
---|
public java.lang.String getTemplateString()
public java.lang.String toString()
toString
in class java.lang.Object
getTemplateString()
public PreparedEventExpression getInstance()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |