public interface SofaRuntimeManager extends RuntimeHealthChecker
| Modifier and Type | Method and Description |
|---|---|
ClassLoader |
getAppClassLoader()
get application ClassLoader
|
String |
getAppName()
get app name
|
ClientFactoryInternal |
getClientFactoryInternal()
get client factory
|
ComponentManager |
getComponentManager()
get component manager
|
org.springframework.context.ApplicationContext |
getRootApplicationContext()
Get application's Spring context.
|
SofaRuntimeContext |
getSofaRuntimeContext()
get sofa runtime context
|
void |
registerRuntimeHealthChecker(RuntimeHealthChecker runtimeHealthChecker)
register runtime health checker
|
void |
registerShutdownAware(RuntimeShutdownAware shutdownAware)
register shutdown aware which would be executed after receive uninstall event
|
void |
shutdown()
shutdown manager
|
isLivenessHealth, isReadinessHealthSofaRuntimeContext getSofaRuntimeContext()
String getAppName()
ClassLoader getAppClassLoader()
ComponentManager getComponentManager()
ClientFactoryInternal getClientFactoryInternal()
void shutdown()
throws ServiceRuntimeException
ServiceRuntimeException - throws when exception occurvoid registerShutdownAware(RuntimeShutdownAware shutdownAware)
shutdownAware - void registerRuntimeHealthChecker(RuntimeHealthChecker runtimeHealthChecker)
runtimeHealthChecker - org.springframework.context.ApplicationContext getRootApplicationContext()
Copyright © 2021. All rights reserved.