Package com.oracle.coherence.grpc.proxy
Class GrpcServerController.Listener
java.lang.Object
com.oracle.coherence.grpc.proxy.GrpcServerController.Listener
- All Implemented Interfaces:
com.tangosol.application.LifecycleListener
- Enclosing class:
GrpcServerController
public static class GrpcServerController.Listener
extends Object
implements com.tangosol.application.LifecycleListener
A listener that will start the gRPC server base on
Coherence
or
DefaultCacheServer
lifecycle events.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
postStart
(com.tangosol.application.Context ctx) Called after the application is started.void
postStop
(com.tangosol.application.Context ctx) Called after the application is stopped.void
preStart
(com.tangosol.application.Context ctx) Called before the application is activated.void
preStop
(com.tangosol.application.Context ctx) Called before the application stops its services and disposes of its resources.
-
Constructor Details
-
Listener
public Listener()
-
-
Method Details
-
preStart
public void preStart(com.tangosol.application.Context ctx) Description copied from interface:com.tangosol.application.LifecycleListener
Called before the application is activated. In general this occurs before services in a cache configuration file are started thus allowing for pre service setup.The
Context
contains the context of the application allowing for a custom application to create custom services and/or a customCacheFactoryBuilder
implementation.- Specified by:
preStart
in interfacecom.tangosol.application.LifecycleListener
- Parameters:
ctx
- theContext
for the application
-
postStart
public void postStart(com.tangosol.application.Context ctx) Description copied from interface:com.tangosol.application.LifecycleListener
Called after the application is started. At this point, services marked with<autostart>
will have been started. These services (and caches) can be accessed viaContext.getConfigurableCacheFactory()
.- Specified by:
postStart
in interfacecom.tangosol.application.LifecycleListener
- Parameters:
ctx
- theContext
for the application
-
preStop
public void preStop(com.tangosol.application.Context ctx) Description copied from interface:com.tangosol.application.LifecycleListener
Called before the application stops its services and disposes of its resources.- Specified by:
preStop
in interfacecom.tangosol.application.LifecycleListener
- Parameters:
ctx
- theContext
for the application
-
postStop
public void postStop(com.tangosol.application.Context ctx) Description copied from interface:com.tangosol.application.LifecycleListener
Called after the application is stopped. At this point any services created by this application will have been stopped.- Specified by:
postStop
in interfacecom.tangosol.application.LifecycleListener
- Parameters:
ctx
- theContext
for the application
-