com.espertech.esper.client
Class EPServiceProviderManager

java.lang.Object
  extended by com.espertech.esper.client.EPServiceProviderManager

public final class EPServiceProviderManager
extends java.lang.Object

Factory for instances of EPServiceProvider.


Constructor Summary
EPServiceProviderManager()
           
 
Method Summary
static EPServiceProvider getDefaultProvider()
          Returns the default EPServiceProvider.
static EPServiceProvider getDefaultProvider(Configuration configuration)
          Returns the default EPServiceProvider.
static EPServiceProvider getExistingProvider(java.lang.String providerURI)
          Returns an existing provider.
static EPServiceProvider getProvider(java.lang.String providerURI)
          Returns an EPServiceProvider for a given provider URI.
static EPServiceProvider getProvider(java.lang.String providerURI, Configuration configuration)
          Returns an EPServiceProvider for a given provider URI.
static java.lang.String[] getProviderURIs()
          Returns a list of known provider URIs.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EPServiceProviderManager

public EPServiceProviderManager()
Method Detail

getDefaultProvider

public static EPServiceProvider getDefaultProvider()
Returns the default EPServiceProvider. The URI value for the service returned is "default".

Returns:
default instance of the service.

getDefaultProvider

public static EPServiceProvider getDefaultProvider(Configuration configuration)
                                            throws ConfigurationException
Returns the default EPServiceProvider. The URI value for the service returned is "default".

Parameters:
configuration - is the configuration for the service
Returns:
default instance of the service.
Throws:
ConfigurationException - to indicate a configuration problem

getProvider

public static EPServiceProvider getProvider(java.lang.String providerURI)
Returns an EPServiceProvider for a given provider URI.

Use the URI of "default" or null to return the default service provider.

Parameters:
providerURI - - the provider URI
Returns:
EPServiceProvider for the given provider URI.

getProvider

public static EPServiceProvider getProvider(java.lang.String providerURI,
                                            Configuration configuration)
                                     throws ConfigurationException
Returns an EPServiceProvider for a given provider URI. Use the URI of "default" or null to return the default service provider.

Parameters:
providerURI - - the provider URI. If null provided it assumes "default".
configuration - is the configuration for the service
Returns:
EPServiceProvider for the given provider URI.
Throws:
ConfigurationException - to indicate a configuration problem

getExistingProvider

public static EPServiceProvider getExistingProvider(java.lang.String providerURI)
Returns an existing provider. Returns null if the provider for the given URI has not been initialized or the provider for the given URI is in destroyed state.

Parameters:
providerURI - - the provider URI. If null provided it assumes "default".
Returns:
EPServiceProvider for the given provider URI.

getProviderURIs

public static java.lang.String[] getProviderURIs()
Returns a list of known provider URIs.

Returns a the value "default" for the default provider.

Returns URIs for all engine instances including destroyed instances.

Returns:
array of URI strings

© 2006-2015 EsperTech Inc.
All rights reserved.
Visit us at espertech.com