public abstract class AbstractComponent extends Object implements ComponentInfo
| 限定符和类型 | 字段和说明 |
|---|---|
protected ComponentName |
componentName |
protected ComponentStatus |
componentStatus
component status
|
protected Exception |
e |
protected Implementation |
implementation |
protected SofaRuntimeContext |
sofaRuntimeContext |
| 构造器和说明 |
|---|
AbstractComponent() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
activate()
activate component
|
void |
deactivate()
deactivate component
|
String |
dump()
get component information
|
void |
exception(Exception e)
create an exception to describe error
|
SofaRuntimeContext |
getContext()
get sofa runtime context
|
Implementation |
getImplementation()
get component implementation
|
ComponentName |
getName()
get component name
|
ComponentStatus |
getState()
get component status
|
boolean |
isActivated()
check component is activated or not
|
HealthResult |
isHealthy()
check component is health or not
|
boolean |
isResolved()
check component is resolved or not
|
void |
register()
register component
|
boolean |
resolve()
resolve component
|
void |
unregister()
unregister component
|
void |
unresolve()
unresolve component
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetProperties, getTypeprotected ComponentStatus componentStatus
protected Implementation implementation
protected ComponentName componentName
protected SofaRuntimeContext sofaRuntimeContext
protected Exception e
public SofaRuntimeContext getContext()
ComponentInfogetContext 在接口中 ComponentInfoSofaRuntimeContextpublic ComponentStatus getState()
ComponentInfogetState 在接口中 ComponentInfopublic ComponentName getName()
ComponentInfogetName 在接口中 ComponentInfopublic Implementation getImplementation()
ComponentInfogetImplementation 在接口中 ComponentInfopublic boolean isActivated()
ComponentInfoisActivated 在接口中 ComponentInfopublic boolean isResolved()
ComponentInfoisResolved 在接口中 ComponentInfopublic void unregister()
throws ServiceRuntimeException
Componentunregister 在接口中 ComponentServiceRuntimeExceptionpublic void unresolve()
throws ServiceRuntimeException
Componentunresolve 在接口中 ComponentServiceRuntimeExceptionpublic boolean resolve()
Componentpublic void activate()
throws ServiceRuntimeException
Componentactivate 在接口中 ComponentServiceRuntimeExceptionpublic void exception(Exception e) throws ServiceRuntimeException
Componentexception 在接口中 ComponentServiceRuntimeExceptionpublic void deactivate()
throws ServiceRuntimeException
Componentdeactivate 在接口中 ComponentServiceRuntimeExceptionpublic String dump()
ComponentInfodump 在接口中 ComponentInfopublic HealthResult isHealthy()
ComponentInfoisHealthy 在接口中 ComponentInfoCopyright © 2018 Pivotal Software, Inc.. All rights reserved.