use of org.apache.servicecomb.http.client.event.RefreshEndpointEvent in project incubator-servicecomb-java-chassis by apache.
the class ClassificationAddress method refreshEndPoints.
private void refreshEndPoints(MicroserviceCache microserviceCache, String name) {
Map<String, List<String>> zoneAndRegion = refreshEndPoint(microserviceCache);
EventManager.post(new RefreshEndpointEvent(zoneAndRegion, name));
}
use of org.apache.servicecomb.http.client.event.RefreshEndpointEvent in project incubator-servicecomb-java-chassis by apache.
the class ClassificationAddress method initEndPoint.
public void initEndPoint(String typeName) {
Map<String, List<String>> zoneAndRegion = generateZoneAndRegionAddress(typeName);
if (zoneAndRegion == null) {
return;
}
EventManager.post(new RefreshEndpointEvent(zoneAndRegion, typeName));
}
Aggregations