Class EPRuntimeProvider

java.lang.Object
com.espertech.esper.runtime.client.EPRuntimeProvider

public final class EPRuntimeProvider extends Object
Factory for instances of EPRuntime.
  • Field Details

    • DEFAULT_RUNTIME_URI

      public static final String DEFAULT_RUNTIME_URI
      For the default runtime instance the URI value is "default".
      See Also:
  • Constructor Details

    • EPRuntimeProvider

      public EPRuntimeProvider()
  • Method Details

    • getDefaultRuntime

      public static EPRuntime getDefaultRuntime()
      Returns the runtime for the default URI. The URI value for the runtime returned is "default".
      Returns:
      default runtime
    • getDefaultRuntime

      public static EPRuntime getDefaultRuntime(com.espertech.esper.common.client.configuration.Configuration configuration) throws com.espertech.esper.common.client.configuration.ConfigurationException
      Returns the default runtime. The URI value for the runtime returned is "default".
      Parameters:
      configuration - is the configuration for the runtime
      Returns:
      default instance of the runtime.
      Throws:
      com.espertech.esper.common.client.configuration.ConfigurationException - to indicate a configuration problem
    • getDefaultRuntime

      public static EPRuntime getDefaultRuntime(com.espertech.esper.common.client.configuration.Configuration configuration, EPRuntimeOptions options) throws com.espertech.esper.common.client.configuration.ConfigurationException
      Returns the default runtime. The URI value for the runtime returned is "default".
      Parameters:
      configuration - is the configuration for the runtime
      options - runtime options
      Returns:
      default instance of the runtime.
      Throws:
      com.espertech.esper.common.client.configuration.ConfigurationException - to indicate a configuration problem
    • getRuntime

      public static EPRuntime getRuntime(String uri)
      Returns a runtime for a given runtime URI.

      Use the URI of "default" or null to return the default runtime.

      Parameters:
      uri - - the URI
      Returns:
      runtime for the given URI.
    • getRuntime

      public static EPRuntime getRuntime(String uri, com.espertech.esper.common.client.configuration.Configuration configuration) throws com.espertech.esper.common.client.configuration.ConfigurationException
      Returns a runtime for a given URI. Use the URI of "default" or null to return the default runtime.
      Parameters:
      uri - - the runtime URI. If null provided it assumes "default".
      configuration - is the configuration for the runtime
      Returns:
      Runtime for the given URI.
      Throws:
      com.espertech.esper.common.client.configuration.ConfigurationException - to indicate a configuration problem
    • getRuntime

      public static EPRuntime getRuntime(String uri, com.espertech.esper.common.client.configuration.Configuration configuration, EPRuntimeOptions options) throws com.espertech.esper.common.client.configuration.ConfigurationException
      Returns a runtime for a given URI. Use the URI of "default" or null to return the default runtime.
      Parameters:
      uri - - the runtime URI. If null provided it assumes "default".
      configuration - is the configuration for the runtime
      options - runtime startup options
      Returns:
      Runtime for the given URI.
      Throws:
      com.espertech.esper.common.client.configuration.ConfigurationException - to indicate a configuration problem
    • getExistingRuntime

      public static EPRuntime getExistingRuntime(String uri)
      Returns an existing runtime. Returns null if the runtime for the given URI has not been initialized or the runtime for the given URI is in destroyed state.
      Parameters:
      uri - - the URI. If null provided it assumes "default".
      Returns:
      Runtime for the given URI.
    • getRuntimeURIs

      public static String[] getRuntimeURIs()
      Returns a list of known URIs.

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

      Returns:
      array of URI strings
    • hasRuntime

      public static boolean hasRuntime(String uri)
      Returns an indicator whether a runtime for the given URI is allocated (true) or is not allocated (false)
      Parameters:
      uri - runtime uri
      Returns:
      indicator