Module org.newsclub.net.unix.tipc
Package org.newsclub.net.unix.tipc
Class AFTIPCSocketFactory.ServiceAddress
java.lang.Object
javax.net.SocketFactory
org.newsclub.net.unix.AFSocketFactory<AFTIPCSocketAddress>
org.newsclub.net.unix.tipc.AFTIPCSocketFactory
org.newsclub.net.unix.tipc.AFTIPCSocketFactory.ServiceAddress
- All Implemented Interfaces:
AFSocketAddressFromHostname<AFTIPCSocketAddress>
- Enclosing class:
AFTIPCSocketFactory
Always connects sockets to the given TIPC type and instance.
- Author:
- Christian Kohlschütter
-
Nested Class Summary
Nested classes/interfaces inherited from class org.newsclub.net.unix.tipc.AFTIPCSocketFactory
AFTIPCSocketFactory.ServiceAddress
Nested classes/interfaces inherited from class org.newsclub.net.unix.AFSocketFactory
AFSocketFactory.FixedAddressSocketFactory
-
Constructor Summary
ConstructorDescriptionServiceAddress
(int type, int instance) Creates anAFTIPCSocketFactory
that always uses the given TIPC service type and instance, implying cluster scope. -
Method Summary
Modifier and TypeMethodDescriptionfinal AFTIPCSocketAddress
addressFromHost
(String host, int port) Translates a "host" string (and port) to anAFSocketAddress
.Methods inherited from class org.newsclub.net.unix.tipc.AFTIPCSocketFactory
configure, connectTo, createSocket
Methods inherited from class org.newsclub.net.unix.AFSocketFactory
createSocket, createSocket, createSocket, createSocket, isInetAddressSupported
Methods inherited from class javax.net.SocketFactory
getDefault
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.newsclub.net.unix.AFSocketAddressFromHostname
isHostnameSupported
-
Constructor Details
-
ServiceAddress
public ServiceAddress(int type, int instance) Creates anAFTIPCSocketFactory
that always uses the given TIPC service type and instance, implying cluster scope.- Parameters:
type
- The service type.instance
- The service instance.
-
-
Method Details
-
addressFromHost
Description copied from interface:AFSocketAddressFromHostname
Translates a "host" string (and port) to anAFSocketAddress
.- Parameters:
host
- The hostnameport
- The port, or 0.- Returns:
- The
AFSocketAddress
- Throws:
SocketException
- If there was a problem converting the hostname
-