public class SCBEngine extends Object
| Modifier and Type | Field and Description |
|---|---|
protected List<BootUpInformationCollector> |
bootUpInformationCollectors |
| Constructor and Description |
|---|
SCBEngine() |
| Modifier and Type | Method and Description |
|---|---|
ReferenceConfig |
createReferenceConfigForInvoke(String microserviceName,
String versionRule,
String transport) |
void |
destroy()
not allow throw any exception
even some step throw exception, must catch it and go on, otherwise shutdown process will be broken.
|
void |
ensureStatusUp() |
Collection<BootListener> |
getBootListenerList() |
com.google.common.eventbus.EventBus |
getEventBus() |
static SCBEngine |
getInstance() |
org.apache.servicecomb.config.priority.PriorityPropertyManager |
getPriorityPropertyManager() |
MicroserviceMeta |
getProducerMicroserviceMeta() |
ReferenceConfig |
getReferenceConfigForInvoke(String microserviceName) |
StaticSchemaFactory |
getStaticSchemaFactory() |
SCBStatus |
getStatus() |
TransportManager |
getTransportManager() |
void |
init() |
void |
onInvocationFinish(InvocationFinishEvent event) |
void |
onInvocationStart(InvocationStartEvent event) |
protected void |
safeTriggerEvent(BootListener.EventType eventType) |
void |
setBootListenerList(Collection<BootListener> bootListenerList) |
void |
setConsumerProviderManager(ConsumerProviderManager consumerProviderManager) |
void |
setProducerMicroserviceMeta(MicroserviceMeta producerMicroserviceMeta) |
void |
setProducerProviderManager(ProducerProviderManager producerProviderManager) |
void |
setSchemaListenerManager(SchemaListenerManager schemaListenerManager) |
void |
setStaticSchemaFactory(StaticSchemaFactory staticSchemaFactory) |
void |
setStatus(SCBStatus status) |
void |
setTransportManager(TransportManager transportManager) |
protected void |
triggerEvent(BootListener.EventType eventType) |
void |
waitStatusUp()
better to subscribe EventType.AFTER_REGISTRY by BootListener
but in some simple scenes, just block and wait is enough. |
void |
waitStatusUp(long msWait)
better to subscribe EventType.AFTER_REGISTRY by BootListener
but in some simple scenes, just block and wait is enough. |
protected List<BootUpInformationCollector> bootUpInformationCollectors
public void setStatus(SCBStatus status)
public SCBStatus getStatus()
public static SCBEngine getInstance()
public org.apache.servicecomb.config.priority.PriorityPropertyManager getPriorityPropertyManager()
public com.google.common.eventbus.EventBus getEventBus()
public void setProducerProviderManager(ProducerProviderManager producerProviderManager)
public void setConsumerProviderManager(ConsumerProviderManager consumerProviderManager)
public TransportManager getTransportManager()
public void setTransportManager(TransportManager transportManager)
public void setSchemaListenerManager(SchemaListenerManager schemaListenerManager)
public Collection<BootListener> getBootListenerList()
public void setBootListenerList(Collection<BootListener> bootListenerList)
protected void triggerEvent(BootListener.EventType eventType)
protected void safeTriggerEvent(BootListener.EventType eventType)
public void onInvocationStart(InvocationStartEvent event)
public void onInvocationFinish(InvocationFinishEvent event)
public void init()
public void destroy()
public void ensureStatusUp()
public ReferenceConfig createReferenceConfigForInvoke(String microserviceName, String versionRule, String transport)
public ReferenceConfig getReferenceConfigForInvoke(String microserviceName)
public MicroserviceMeta getProducerMicroserviceMeta()
public void setProducerMicroserviceMeta(MicroserviceMeta producerMicroserviceMeta)
public void waitStatusUp()
throws InterruptedException,
TimeoutException
InterruptedExceptionTimeoutExceptionpublic void waitStatusUp(long msWait)
throws InterruptedException,
TimeoutException
InterruptedExceptionTimeoutExceptionpublic StaticSchemaFactory getStaticSchemaFactory()
public void setStaticSchemaFactory(StaticSchemaFactory staticSchemaFactory)
Copyright © 2017–2019 The Apache Software Foundation. All rights reserved.