|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.esper.core.ConfigurationOperationsImpl
public class ConfigurationOperationsImpl
Provides runtime engine configuration operations.
Constructor Summary | |
---|---|
ConfigurationOperationsImpl(EventAdapterService eventAdapterService,
EngineImportService engineImportService)
Ctor. |
Method Summary | |
---|---|
void |
addEventTypeAlias(String eventTypeAlias,
Class javaEventClass)
Add an alias for an event type represented by Java-bean plain-old Java object events. |
void |
addEventTypeAlias(String eventTypeAlias,
ConfigurationEventTypeXMLDOM xmlDOMEventTypeDesc)
Add an alias for an event type that represents org.w3c.dom.Node events. |
void |
addEventTypeAlias(String eventTypeAlias,
Map<String,Class> typeMap)
Add an alias for an event type that represents java.util.Map events, taking a Map of event property and class name as a parameter. |
void |
addEventTypeAlias(String eventTypeAlias,
Properties typeMap)
Add an alias for an event type that represents java.util.Map events. |
void |
addEventTypeAlias(String eventTypeAlias,
String javaEventClassName)
Add an alias for an event type represented by JavaBean object events. |
void |
addEventTypeAutoAlias(String javaPackageName)
Adds a Java package name of a package that Java event classes reside in. |
void |
addImport(String importName)
Adds a package or class to the list of automatically-imported classes and packages. |
void |
addPlugInAggregationFunction(String functionName,
String aggregationClassName)
Adds a plug-in aggregation function given a function name and an aggregation class name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConfigurationOperationsImpl(EventAdapterService eventAdapterService, EngineImportService engineImportService)
eventAdapterService
- is the event wrapper and type serviceengineImportService
- for imported aggregation functions and static functionsMethod Detail |
---|
public void addEventTypeAutoAlias(String javaPackageName)
ConfigurationOperations
This setting allows an application to place all it's events into one or more Java packages and then declare these packages via this method. The engine attempts to resolve an event type alias to a Java class residing in each declared package.
For example, in the statement "select * from MyEvent" the engine attempts to load class "javaPackageName.MyEvent" and if successful, uses that class as the event type.
addEventTypeAutoAlias
in interface ConfigurationOperations
javaPackageName
- is the fully-qualified Java package name of the Java package that event classes reside inpublic void addPlugInAggregationFunction(String functionName, String aggregationClassName)
ConfigurationOperations
The aggregation class must extends the base class AggregationSupport
.
The same function name cannot be added twice.
addPlugInAggregationFunction
in interface ConfigurationOperations
functionName
- is the new aggregation function nameaggregationClassName
- is the fully-qualified class name of the class implementing the aggregation functionpublic void addImport(String importName)
ConfigurationOperations
To import a single class offering a static method, simply supply the fully-qualified name of the class
and use the syntax classname.methodname(...)
To import a whole package and use the classname.methodname(...)
syntax, specifiy a package
with wildcard, such as com.mycompany.staticlib.*
.
addImport
in interface ConfigurationOperations
importName
- is a fully-qualified class name or a package name with wildcardpublic void addEventTypeAlias(String eventTypeAlias, String javaEventClassName)
ConfigurationOperations
Allows a second alias to be added for the same type. Does not allow the same alias to be used for different types.
addEventTypeAlias
in interface ConfigurationOperations
eventTypeAlias
- is the alias for the event typejavaEventClassName
- fully-qualified class name of the event typepublic void addEventTypeAlias(String eventTypeAlias, Class javaEventClass)
ConfigurationOperations
Allows a second alias to be added for the same type. Does not allow the same alias to be used for different types.
addEventTypeAlias
in interface ConfigurationOperations
eventTypeAlias
- is the alias for the event typejavaEventClass
- is the Java event class for which to create the aliaspublic void addEventTypeAlias(String eventTypeAlias, Properties typeMap)
ConfigurationOperations
Allows a second alias to be added for the same type. Does not allow the same alias to be used for different types.
addEventTypeAlias
in interface ConfigurationOperations
eventTypeAlias
- is the alias for the event typetypeMap
- maps the name of each property in the Map event to the type
(fully qualified classname) of its value in Map event instances.public void addEventTypeAlias(String eventTypeAlias, Map<String,Class> typeMap)
ConfigurationOperations
This method is provided for convenience and is same in function to method taking a Properties object that contain fully qualified class name as values.
Allows a second alias to be added for the same type. Does not allow the same alias to be used for different types.
addEventTypeAlias
in interface ConfigurationOperations
eventTypeAlias
- is the alias for the event typetypeMap
- maps the name of each property in the Map event to the type of its value in the Map objectpublic void addEventTypeAlias(String eventTypeAlias, ConfigurationEventTypeXMLDOM xmlDOMEventTypeDesc)
ConfigurationOperations
Allows a second alias to be added for the same type. Does not allow the same alias to be used for different types.
addEventTypeAlias
in interface ConfigurationOperations
eventTypeAlias
- is the alias for the event typexmlDOMEventTypeDesc
- descriptor containing property and mapping information for XML-DOM events
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |