public class StandardSofaRuntimeManager extends Object implements SofaRuntimeManager
| 构造器和说明 |
|---|
StandardSofaRuntimeManager(String appName,
ClassLoader appClassLoader,
ClientFactoryInternal clientFactoryInternal) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
clear() |
ClassLoader |
getAppClassLoader()
get application ClassLoader
|
String |
getAppName()
get app name
|
ClientFactoryInternal |
getClientFactoryInternal()
get client factory
|
ComponentManager |
getComponentManager()
get component manager
|
SofaRuntimeContext |
getSofaRuntimeContext()
get sofa runtime context
|
boolean |
isHealthCheckPassed()
is health check passed or not
|
void |
registerRuntimeHealthChecker(RuntimeHealthChecker runtimeHealthChecker)
register runtime health checker
|
void |
registerShutdownCallback(ApplicationShutdownCallback callback)
register call back which would be executed after receive uninstall event
|
void |
shutdown()
shutdown sofa runtime manager
|
public StandardSofaRuntimeManager(String appName, ClassLoader appClassLoader, ClientFactoryInternal clientFactoryInternal)
public ComponentManager getComponentManager()
SofaRuntimeManagergetComponentManager 在接口中 SofaRuntimeManagerpublic ClientFactoryInternal getClientFactoryInternal()
SofaRuntimeManagergetClientFactoryInternal 在接口中 SofaRuntimeManagerpublic boolean isHealthCheckPassed()
SofaRuntimeManagerisHealthCheckPassed 在接口中 SofaRuntimeManagerpublic SofaRuntimeContext getSofaRuntimeContext()
SofaRuntimeManagergetSofaRuntimeContext 在接口中 SofaRuntimeManagerpublic String getAppName()
SofaRuntimeManagergetAppName 在接口中 SofaRuntimeManagerpublic ClassLoader getAppClassLoader()
SofaRuntimeManagergetAppClassLoader 在接口中 SofaRuntimeManagerpublic void shutdown()
throws ServiceRuntimeException
shutdown 在接口中 SofaRuntimeManagerServiceRuntimeException - exception occurpublic void registerShutdownCallback(ApplicationShutdownCallback callback)
SofaRuntimeManagerregisterShutdownCallback 在接口中 SofaRuntimeManagerpublic void registerRuntimeHealthChecker(RuntimeHealthChecker runtimeHealthChecker)
SofaRuntimeManagerprotected void clear()
Copyright © 2019. All rights reserved.