-
Notifications
You must be signed in to change notification settings - Fork 827
JAV-408 Event manager added for chassis events #163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@acsukesh Can you reformat the code with the format file with the code format in the https://github.com/ServiceComb/ServiceComb-Java-Chassis/tree/master/etc ?
|
||
import com.google.common.eventbus.EventBus; | ||
|
||
public class TestEventManager { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is test for eventBus, not for EventManager
and just call some method, did not verify result.
LOGGER.error("Disconnected from service center and heartbeat failed for microservice instance={}/{}", | ||
microserviceInstance.getServiceId(), | ||
microserviceInstance.getInstanceId()); | ||
EventManager.post(new HeartbeatFailEvent()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what's the relationship between EventManager and EventBus in ServiceRegistry?
@WillemJiang & @wujimin all comments handled , please review and merge the code |
added event manager to subscribe and publish events in java chassis