Class DefaultCacheServer.LifecycleContext

java.lang.Object
com.tangosol.net.DefaultCacheServer.LifecycleContext
All Implemented Interfaces:
com.tangosol.application.Context
Enclosing class:
DefaultCacheServer

protected class DefaultCacheServer.LifecycleContext extends Object implements com.tangosol.application.Context
An implementation of Context that will be passed to DefaultCacheServer LifecycleListeners.
  • Constructor Details

    • LifecycleContext

      protected LifecycleContext()
  • Method Details

    • getConfigurableCacheFactory

      public ConfigurableCacheFactory getConfigurableCacheFactory()
      Description copied from interface: com.tangosol.application.Context
      Return the corresponding ConfigurableCacheFactory. This method will return the same reference as a call to
          ctx.getExtendedContext().getCacheFactoryBuilder().
            getConfigurableCacheFactory(ctx.getClassLoader());
       
      Specified by:
      getConfigurableCacheFactory in interface com.tangosol.application.Context
      Returns:
      the ConfigurableCacheFactory
    • getCacheFactoryBuilder

      public CacheFactoryBuilder getCacheFactoryBuilder()
      Description copied from interface: com.tangosol.application.Context
      Return the CacheFactoryBuilder in use.
      Specified by:
      getCacheFactoryBuilder in interface com.tangosol.application.Context
      Returns:
      the CacheFactoryBuilder
    • getClassLoader

      public ClassLoader getClassLoader()
      Description copied from interface: com.tangosol.application.Context
      Return the ClassLoader in use.
      Specified by:
      getClassLoader in interface com.tangosol.application.Context
      Returns:
      the ClassLoader
    • getApplicationName

      public String getApplicationName()
      Description copied from interface: com.tangosol.application.Context
      Return the name of the application.
      Specified by:
      getApplicationName in interface com.tangosol.application.Context
      Returns:
      the name of the application
    • getServiceMonitor

      public ServiceMonitor getServiceMonitor()
      Description copied from interface: com.tangosol.application.Context
      Return the keep-alive facility for the application services.
      Specified by:
      getServiceMonitor in interface com.tangosol.application.Context
      Returns:
      the ServiceMonitor
    • getPofConfigURI

      public String getPofConfigURI()
      Description copied from interface: com.tangosol.application.Context
      Return the POF configuration URI.

      For advanced use cases, the resource identified by this URI can be found by calling:

          ctx.getExtendedContext().getClassLoader().getResource(ctx.getPofConfigUri());
       
      Specified by:
      getPofConfigURI in interface com.tangosol.application.Context
      Returns:
      the POF configuration URI
    • getCacheConfigURI

      public String getCacheConfigURI()
      Description copied from interface: com.tangosol.application.Context
      Return the cache configuration URI.
      Specified by:
      getCacheConfigURI in interface com.tangosol.application.Context
      Returns:
      the cache configuration URI
    • getContainerContext

      public com.tangosol.application.ContainerContext getContainerContext()
      Description copied from interface: com.tangosol.application.Context
      Return the ContainerContext associated with the ContainerAdapter.
      Specified by:
      getContainerContext in interface com.tangosol.application.Context
      Returns:
      the ContainerContext instance or null
    • getExtendedContext

      @Deprecated public com.tangosol.application.Context.ExtendedContext getExtendedContext()
      Deprecated.
      Specified by:
      getExtendedContext in interface com.tangosol.application.Context
      Returns:
      the Context.ExtendedContext