net.esper.core
Class EPServiceProviderImpl

java.lang.Object
  extended by net.esper.core.EPServiceProviderImpl
All Implemented Interfaces:
EPServiceProvider, EPServiceProviderSPI

public class EPServiceProviderImpl
extends Object
implements EPServiceProviderSPI

Service provider encapsulates the engine's services for runtime and administration interfaces.


Nested Class Summary
static class EPServiceProviderImpl.ConfigurationSnapshot
          Snapshot of Configuration is held for re-initializing engine state from prior configuration values that may have been muted.
 
Constructor Summary
EPServiceProviderImpl(Configuration configuration)
          Constructor - initializes services.
 
Method Summary
 EPAdministrator getEPAdministrator()
          Returns a class instance of EPAdministrator.
 EPRuntime getEPRuntime()
          Returns a class instance of EPRuntime.
 EventAdapterService getEventAdapterService()
          Get the EventAdapterService for this engine.
 SchedulingService getSchedulingService()
          Get the SchedulingService for this engine.
 void initialize()
          Frees any resources associated with this runtime instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EPServiceProviderImpl

public EPServiceProviderImpl(Configuration configuration)
                      throws ConfigurationException
Constructor - initializes services.

Parameters:
configuration - is the engine configuration
Throws:
ConfigurationException - is thrown to indicate a configuraton error
Method Detail

getEPRuntime

public EPRuntime getEPRuntime()
Description copied from interface: EPServiceProvider
Returns a class instance of EPRuntime.

Specified by:
getEPRuntime in interface EPServiceProvider
Returns:
an instance of EPRuntime

getEPAdministrator

public EPAdministrator getEPAdministrator()
Description copied from interface: EPServiceProvider
Returns a class instance of EPAdministrator.

Specified by:
getEPAdministrator in interface EPServiceProvider
Returns:
an instance of EPAdministrator

getEventAdapterService

public EventAdapterService getEventAdapterService()
Description copied from interface: EPServiceProviderSPI
Get the EventAdapterService for this engine.

Specified by:
getEventAdapterService in interface EPServiceProviderSPI
Returns:
the EventAdapterService

getSchedulingService

public SchedulingService getSchedulingService()
Description copied from interface: EPServiceProviderSPI
Get the SchedulingService for this engine.

Specified by:
getSchedulingService in interface EPServiceProviderSPI
Returns:
the SchedulingService

initialize

public void initialize()
Description copied from interface: EPServiceProvider
Frees any resources associated with this runtime instance. Stops and destroys any event filters, patterns, expressions, views.

Specified by:
initialize in interface EPServiceProvider