net.esper.core
Class ConfigurationOperationsImpl

java.lang.Object
  extended by net.esper.core.ConfigurationOperationsImpl
All Implemented Interfaces:
ConfigurationOperations

public class ConfigurationOperationsImpl
extends Object
implements ConfigurationOperations

Provides runtime engine configuration operations.


Constructor Summary
ConfigurationOperationsImpl(EventAdapterService eventAdapterService)
          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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigurationOperationsImpl

public ConfigurationOperationsImpl(EventAdapterService eventAdapterService)
Ctor.

Parameters:
eventAdapterService - is the event wrapper and type service
Method Detail

addEventTypeAlias

public void addEventTypeAlias(String eventTypeAlias,
                              String javaEventClassName)
Description copied from interface: ConfigurationOperations
Add an alias for an event type represented by JavaBean object events.

Allows a second alias to be added for the same type. Does not allow the same alias to be used for different types.

Specified by:
addEventTypeAlias in interface ConfigurationOperations
Parameters:
eventTypeAlias - is the alias for the event type
javaEventClassName - fully-qualified class name of the event type

addEventTypeAlias

public void addEventTypeAlias(String eventTypeAlias,
                              Class javaEventClass)
Description copied from interface: ConfigurationOperations
Add an alias for an event type represented by Java-bean plain-old Java object events.

Allows a second alias to be added for the same type. Does not allow the same alias to be used for different types.

Specified by:
addEventTypeAlias in interface ConfigurationOperations
Parameters:
eventTypeAlias - is the alias for the event type
javaEventClass - is the Java event class for which to create the alias

addEventTypeAlias

public void addEventTypeAlias(String eventTypeAlias,
                              Properties typeMap)
Description copied from interface: ConfigurationOperations
Add an alias for an event type that represents java.util.Map events.

Allows a second alias to be added for the same type. Does not allow the same alias to be used for different types.

Specified by:
addEventTypeAlias in interface ConfigurationOperations
Parameters:
eventTypeAlias - is the alias for the event type
typeMap - maps the name of each property in the Map event to the type (fully qualified classname) of its value in Map event instances.

addEventTypeAlias

public void addEventTypeAlias(String eventTypeAlias,
                              Map<String,Class> typeMap)
Description copied from interface: ConfigurationOperations
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.

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.

Specified by:
addEventTypeAlias in interface ConfigurationOperations
Parameters:
eventTypeAlias - is the alias for the event type
typeMap - maps the name of each property in the Map event to the type of its value in the Map object

addEventTypeAlias

public void addEventTypeAlias(String eventTypeAlias,
                              ConfigurationEventTypeXMLDOM xmlDOMEventTypeDesc)
Description copied from interface: ConfigurationOperations
Add an alias for an event type that represents org.w3c.dom.Node events.

Allows a second alias to be added for the same type. Does not allow the same alias to be used for different types.

Specified by:
addEventTypeAlias in interface ConfigurationOperations
Parameters:
eventTypeAlias - is the alias for the event type
xmlDOMEventTypeDesc - descriptor containing property and mapping information for XML-DOM events