public class ReferenceComponent extends AbstractComponent
| 限定符和类型 | 字段和说明 |
|---|---|
static ComponentType |
REFERENCE_COMPONENT_TYPE |
componentName, componentStatus, e, implementation, sofaRuntimeContext| 构造器和说明 |
|---|
ReferenceComponent(Reference reference,
Implementation implementation,
SofaRuntimeContext sofaRuntimeContext) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
activate()
activate component
|
void |
exception(Exception e)
create an exception to descript error
|
Implementation |
getImplementation()
get component implementation
|
Map<String,Property> |
getProperties()
get all properties
|
Reference |
getReference() |
ComponentType |
getType()
get component type
|
HealthResult |
isHealthy()
check component is health or not
|
void |
unregister()
unregister component
|
deactivate, dump, getContext, getName, getState, isActivated, isResolved, register, resolve, unresolvepublic static final ComponentType REFERENCE_COMPONENT_TYPE
public ReferenceComponent(Reference reference, Implementation implementation, SofaRuntimeContext sofaRuntimeContext)
public ComponentType getType()
ComponentInfopublic Map<String,Property> getProperties()
ComponentInfopublic HealthResult isHealthy()
ComponentInfoisHealthy 在接口中 ComponentInfoisHealthy 在类中 AbstractComponentpublic void activate()
throws ServiceRuntimeException
Componentactivate 在接口中 Componentactivate 在类中 AbstractComponentServiceRuntimeExceptionpublic void unregister()
throws ServiceRuntimeException
Componentunregister 在接口中 Componentunregister 在类中 AbstractComponentServiceRuntimeExceptionpublic void exception(Exception e) throws ServiceRuntimeException
Componentexception 在接口中 Componentexception 在类中 AbstractComponentServiceRuntimeExceptionpublic Implementation getImplementation()
ComponentInfogetImplementation 在接口中 ComponentInfogetImplementation 在类中 AbstractComponentpublic Reference getReference()
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.