Java Code Examples for org.jboss.as.network.SocketBinding#getAbsolutePort()
The following examples show how to use
org.jboss.as.network.SocketBinding#getAbsolutePort() .
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: JGroupsTopologyConnector.java From thorntail with Apache License 2.0 | 4 votes |
public synchronized void advertise(String name, SocketBinding binding, String... tags) throws Exception { Registration registration = new Registration(sourceKey(this.node), name, binding.getAddress().getHostAddress(), binding.getAbsolutePort(), tags); this.registrations.put(name + ":" + binding.getName(), registration); advertise(registration); }
Example 2
Source File: ConsulTopologyConnector.java From thorntail with Apache License 2.0 | 4 votes |
@Override public void advertise(String name, SocketBinding binding, String... tags) { Registration registration = new Registration("consul", name, binding.getAddress().getHostAddress(), binding.getAbsolutePort(), tags); getAdvertiser().advertise(registration); }
Example 3
Source File: JGroupsTopologyConnector.java From ARCHIVE-wildfly-swarm with Apache License 2.0 | 4 votes |
public synchronized void advertise(String name, SocketBinding binding, String... tags) { Registration registration = new Registration(sourceKey(this.node), name, binding.getAddress().getHostAddress(), binding.getAbsolutePort(), tags); this.registrations.put(name + ":" + binding.getName(), registration); advertise(registration); }
Example 4
Source File: ConsulTopologyConnector.java From ARCHIVE-wildfly-swarm with Apache License 2.0 | 4 votes |
@Override public void advertise(String name, SocketBinding binding, String...tags) { Registration registration = new Registration("consul", name, binding.getAddress().getHostAddress(), binding.getAbsolutePort(), tags ); this.advertiser.advertise(registration); }