public class StandardSofaRuntimeManager extends Object implements SofaRuntimeManager, org.springframework.context.ApplicationContextAware
| Constructor and Description |
|---|
StandardSofaRuntimeManager(String appName,
ClassLoader appClassLoader,
ClientFactoryInternal clientFactoryInternal) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
clear() |
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
|
boolean |
isLivenessHealth() |
boolean |
isReadinessHealth() |
void |
registerRuntimeHealthChecker(RuntimeHealthChecker runtimeHealthChecker)
register runtime health checker
|
void |
registerShutdownAware(RuntimeShutdownAware callback)
register shutdown aware which would be executed after receive uninstall event
|
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
shutdown()
shutdown sofa runtime manager
|
public StandardSofaRuntimeManager(String appName, ClassLoader appClassLoader, ClientFactoryInternal clientFactoryInternal)
public ComponentManager getComponentManager()
SofaRuntimeManagergetComponentManager in interface SofaRuntimeManagerpublic ClientFactoryInternal getClientFactoryInternal()
SofaRuntimeManagergetClientFactoryInternal in interface SofaRuntimeManagerpublic boolean isReadinessHealth()
isReadinessHealth in interface RuntimeHealthCheckerpublic boolean isLivenessHealth()
isLivenessHealth in interface RuntimeHealthCheckerpublic SofaRuntimeContext getSofaRuntimeContext()
SofaRuntimeManagergetSofaRuntimeContext in interface SofaRuntimeManagerpublic String getAppName()
SofaRuntimeManagergetAppName in interface SofaRuntimeManagerpublic ClassLoader getAppClassLoader()
SofaRuntimeManagergetAppClassLoader in interface SofaRuntimeManagerpublic void shutdown()
throws ServiceRuntimeException
shutdown in interface SofaRuntimeManagerServiceRuntimeException - exception occurpublic void registerShutdownAware(RuntimeShutdownAware callback)
SofaRuntimeManagerregisterShutdownAware in interface SofaRuntimeManagerpublic void registerRuntimeHealthChecker(RuntimeHealthChecker runtimeHealthChecker)
SofaRuntimeManagerregisterRuntimeHealthChecker in interface SofaRuntimeManagerpublic org.springframework.context.ApplicationContext getRootApplicationContext()
SofaRuntimeManagergetRootApplicationContext in interface SofaRuntimeManagerprotected void clear()
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionCopyright © 2021. All rights reserved.