|
|
|
@ -646,10 +646,10 @@ public Instance getInstance(String namespaceId, String serviceName, String clust
|
|
|
|
|
3. 组装结果返回
|
|
|
|
|
|
|
|
|
|
```java
|
|
|
|
|
@CanDistro
|
|
|
|
|
@PutMapping("/beat")
|
|
|
|
|
@Secured(action = ActionTypes.WRITE)
|
|
|
|
|
public ObjectNode beat(@RequestParam(defaultValue = Constants.DEFAULT_NAMESPACE_ID) String namespaceId,
|
|
|
|
|
@CanDistro
|
|
|
|
|
@PutMapping("/beat")
|
|
|
|
|
@Secured(action = ActionTypes.WRITE)
|
|
|
|
|
public ObjectNode beat(@RequestParam(defaultValue = Constants.DEFAULT_NAMESPACE_ID) String namespaceId,
|
|
|
|
|
@RequestParam String serviceName,
|
|
|
|
|
@RequestParam(defaultValue = StringUtils.EMPTY) String ip,
|
|
|
|
|
@RequestParam(defaultValue = UtilsAndCommons.DEFAULT_CLUSTER_NAME) String clusterName,
|
|
|
|
@ -684,5 +684,5 @@ public Instance getInstance(String namespaceId, String serviceName, String clust
|
|
|
|
|
instanceServiceV2.getHeartBeatInterval(namespaceId, serviceName, ip, port, clusterName));
|
|
|
|
|
result.put(SwitchEntry.LIGHT_BEAT_ENABLED, switchDomain.isLightBeatEnabled());
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
```
|
|
|
|
|