public URI toURI() throws IOException { ConnectionFactoryParser parser = new ConnectionFactoryParser(); String scheme; if (serverLocator.getDiscoveryGroupConfiguration() != null) { if (serverLocator.getDiscoveryGroupConfiguration().getBroadcastEndpointFactory() instanceof UDPBroadcastEndpointFactory) { scheme = "udp"; } else { scheme = "jgroups"; } } else { if (serverLocator.allInVM()) { scheme = "vm"; } else { scheme = "tcp"; } } URI uri; try { uri = parser.createSchema(scheme, this); } catch (Exception e) { if (e instanceof IOException) { throw (IOException) e; } throw new IOException(e); } return uri; }
public URI toURI() throws IOException { ConnectionFactoryParser parser = new ConnectionFactoryParser(); String scheme; if (serverLocator.getDiscoveryGroupConfiguration() != null) { if (serverLocator.getDiscoveryGroupConfiguration().getBroadcastEndpointFactory() instanceof UDPBroadcastEndpointFactory) { scheme = "udp"; } else { scheme = "jgroups"; } } else { if (serverLocator.allInVM()) { scheme = "vm"; } else { scheme = "tcp"; } } URI uri; try { uri = parser.createSchema(scheme, this); } catch (Exception e) { if (e instanceof IOException) { throw (IOException) e; } throw new IOException(e); } return uri; }
public URI toURI() throws IOException { ConnectionFactoryParser parser = new ConnectionFactoryParser(); String scheme; if (serverLocator.getDiscoveryGroupConfiguration() != null) { if (serverLocator.getDiscoveryGroupConfiguration().getBroadcastEndpointFactory() instanceof UDPBroadcastEndpointFactory) { scheme = "udp"; } else { scheme = "jgroups"; } } else { if (serverLocator.allInVM()) { scheme = "vm"; } else { scheme = "tcp"; } } URI uri; try { uri = parser.createSchema(scheme, this); } catch (Exception e) { if (e instanceof IOException) { throw (IOException) e; } throw new IOException(e); } return uri; }
public URI toURI() throws IOException { ConnectionFactoryParser parser = new ConnectionFactoryParser(); String scheme; if (serverLocator.getDiscoveryGroupConfiguration() != null) { if (serverLocator.getDiscoveryGroupConfiguration().getBroadcastEndpointFactory() instanceof UDPBroadcastEndpointFactory) { scheme = "udp"; } else { scheme = "jgroups"; } } else { if (serverLocator.allInVM()) { scheme = "vm"; } else { scheme = "tcp"; } } URI uri; try { uri = parser.createSchema(scheme, this); } catch (Exception e) { if (e instanceof IOException) { throw (IOException) e; } throw new IOException(e); } return uri; }
public URI toURI() throws IOException { ConnectionFactoryParser parser = new ConnectionFactoryParser(); String scheme; if (serverLocator.getDiscoveryGroupConfiguration() != null) { if (serverLocator.getDiscoveryGroupConfiguration().getBroadcastEndpointFactory() instanceof UDPBroadcastEndpointFactory) { scheme = "udp"; } else { scheme = "jgroups"; } } else { if (serverLocator.allInVM()) { scheme = "vm"; } else { scheme = "tcp"; } } URI uri; try { uri = parser.createSchema(scheme, this); } catch (Exception e) { if (e instanceof IOException) { throw (IOException) e; } throw new IOException(e); } return uri; }