use of org.apache.shenyu.admin.service.MetaDataService in project incubator-shenyu by apache.
the class ShenyuClientRegisterSofaServiceImpl method registerMetadata.
@Override
protected void registerMetadata(final MetaDataRegisterDTO metaDataDTO) {
MetaDataService metaDataService = getMetaDataService();
MetaDataDO exist = metaDataService.findByServiceNameAndMethodName(metaDataDTO.getServiceName(), metaDataDTO.getMethodName());
metaDataService.saveOrUpdateMetaData(exist, metaDataDTO);
}
use of org.apache.shenyu.admin.service.MetaDataService in project incubator-shenyu by apache.
the class ShenyuClientRegisterSpringCloudServiceImpl method registerMetadata.
@Override
protected void registerMetadata(final MetaDataRegisterDTO metaDataDTO) {
MetaDataService metaDataService = getMetaDataService();
metaDataDTO.setPath(PathUtils.decoratorPath(metaDataDTO.getContextPath()));
MetaDataDO metaDataDO = metaDataService.findByPath(metaDataDTO.getPath());
metaDataService.saveOrUpdateMetaData(metaDataDO, metaDataDTO);
}
use of org.apache.shenyu.admin.service.MetaDataService in project incubator-shenyu by apache.
the class ShenyuClientRegisterTarsServiceImpl method registerMetadata.
@Override
protected void registerMetadata(final MetaDataRegisterDTO metaDataDTO) {
MetaDataService metaDataService = getMetaDataService();
MetaDataDO exist = metaDataService.findByServiceNameAndMethodName(metaDataDTO.getServiceName(), metaDataDTO.getMethodName());
metaDataService.saveOrUpdateMetaData(exist, metaDataDTO);
}
use of org.apache.shenyu.admin.service.MetaDataService in project incubator-shenyu by apache.
the class ShenyuClientRegisterDivideServiceImpl method registerMetadata.
@Override
protected void registerMetadata(final MetaDataRegisterDTO dto) {
if (dto.isRegisterMetaData()) {
MetaDataService metaDataService = getMetaDataService();
MetaDataDO exist = metaDataService.findByPath(dto.getPath());
metaDataService.saveOrUpdateMetaData(exist, dto);
}
}
use of org.apache.shenyu.admin.service.MetaDataService in project incubator-shenyu by apache.
the class ShenyuClientRegisterDubboServiceImpl method registerMetadata.
@Override
protected void registerMetadata(final MetaDataRegisterDTO metaDataDTO) {
MetaDataService metaDataService = getMetaDataService();
MetaDataDO exist = metaDataService.findByPath(metaDataDTO.getPath());
metaDataService.saveOrUpdateMetaData(exist, metaDataDTO);
}
Aggregations