Java Code Examples for com.alibaba.dubbo.registry.common.domain.Override#getId()
The following examples show how to use
com.alibaba.dubbo.registry.common.domain.Override#getId() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: OverrideServiceImpl.java From dubbox with Apache License 2.0 | 5 votes |
public void updateOverride(Override override) { Long id = override.getId(); if(id == null) { throw new IllegalStateException("no override id"); } URL oldOverride = findOverrideUrl(id); if(oldOverride == null) { throw new IllegalStateException("Route was changed!"); } URL newOverride = getUrlFromOverride(override); registryService.unregister(oldOverride); registryService.register(newOverride); }
Example 2
Source File: OverrideServiceImpl.java From dubbox-hystrix with Apache License 2.0 | 5 votes |
public void updateOverride(Override override) { Long id = override.getId(); if(id == null) { throw new IllegalStateException("no override id"); } URL oldOverride = findOverrideUrl(id); if(oldOverride == null) { throw new IllegalStateException("Route was changed!"); } URL newOverride = getUrlFromOverride(override); registryService.unregister(oldOverride); registryService.register(newOverride); }
Example 3
Source File: OverrideServiceImpl.java From dubbo3 with Apache License 2.0 | 5 votes |
public void updateOverride(Override override) { Long id = override.getId(); if(id == null) { throw new IllegalStateException("no override id"); } URL oldOverride = findOverrideUrl(id); if(oldOverride == null) { throw new IllegalStateException("Route was changed!"); } URL newOverride = getUrlFromOverride(override); registryService.unregister(oldOverride); registryService.register(newOverride); }
Example 4
Source File: OverrideServiceImpl.java From dubbox with Apache License 2.0 | 5 votes |
public void updateOverride(Override override) { Long id = override.getId(); if(id == null) { throw new IllegalStateException("no override id"); } URL oldOverride = findOverrideUrl(id); if(oldOverride == null) { throw new IllegalStateException("Route was changed!"); } URL newOverride = getUrlFromOverride(override); registryService.unregister(oldOverride); registryService.register(newOverride); }
Example 5
Source File: OverrideServiceImpl.java From dubbox with Apache License 2.0 | 5 votes |
public void updateOverride(Override override) { Long id = override.getId(); if(id == null) { throw new IllegalStateException("no override id"); } URL oldOverride = findOverrideUrl(id); if(oldOverride == null) { throw new IllegalStateException("Route was changed!"); } URL newOverride = getUrlFromOverride(override); registryService.unregister(oldOverride); registryService.register(newOverride); }