public class ServiceComponent extends AbstractComponent
| Modifier and Type | Field and Description |
|---|---|
static ComponentType |
SERVICE_COMPONENT_TYPE |
static String |
UNREGISTER_DELAY_MILLISECONDS |
componentName, componentStatus, e, implementation, sofaRuntimeContext| Constructor and Description |
|---|
ServiceComponent(Implementation implementation,
Service service,
BindingAdapterFactory bindingAdapterFactory,
SofaRuntimeContext sofaRuntimeContext) |
| Modifier and Type | Method and Description |
|---|---|
void |
activate()
activate component
|
void |
deactivate()
deactivate component
|
String |
dump()
get component information
|
Map<String,Property> |
getProperties()
get all properties
|
Service |
getService() |
ComponentType |
getType()
get component type
|
HealthResult |
isHealthy()
check component is health or not
|
boolean |
resolve()
resolve component
|
void |
unregister()
unregister component
|
aggregateBindingHealth, canBeDuplicate, exception, getContext, getImplementation, getName, getState, isActivated, isResolved, register, unresolvepublic static final String UNREGISTER_DELAY_MILLISECONDS
public static final ComponentType SERVICE_COMPONENT_TYPE
public ServiceComponent(Implementation implementation, Service service, BindingAdapterFactory bindingAdapterFactory, SofaRuntimeContext sofaRuntimeContext)
public ComponentType getType()
ComponentInfopublic Map<String,Property> getProperties()
ComponentInfopublic boolean resolve()
Componentresolve in interface Componentresolve in class AbstractComponentpublic void activate()
throws ServiceRuntimeException
Componentactivate in interface Componentactivate in class AbstractComponentServiceRuntimeExceptionpublic void deactivate()
throws ServiceRuntimeException
Componentdeactivate in interface Componentdeactivate in class AbstractComponentServiceRuntimeExceptionpublic void unregister()
throws ServiceRuntimeException
Componentunregister in interface Componentunregister in class AbstractComponentServiceRuntimeExceptionpublic String dump()
ComponentInfodump in interface ComponentInfodump in class AbstractComponentpublic Service getService()
public HealthResult isHealthy()
ComponentInfoisHealthy in interface ComponentInfoisHealthy in class AbstractComponentCopyright © 2021. All rights reserved.