Skip to content

Conversation

acsukesh
Copy link
Contributor

added event manager to subscribe and publish events in java chassis

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.03%) to 85.931% when pulling fc7d32f on acsukesh:master into 054519a on ServiceComb:master.

Copy link
Member

@WillemJiang WillemJiang left a 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 {
Copy link
Contributor

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());
Copy link
Contributor

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?

@coveralls
Copy link

Coverage Status

Coverage increased (+0.1%) to 86.053% when pulling 830cc88 on acsukesh:master into 054519a on ServiceComb:master.

@acsukesh
Copy link
Contributor Author

@WillemJiang & @wujimin all comments handled , please review and merge the code

@WillemJiang WillemJiang merged commit 5d88f6f into apache:master Sep 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants