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<org.newsclub.net.unix.AFTIPCSocketAddress>
org.newsclub.net.unix.tipc.AFTIPCSocketFactory
org.newsclub.net.unix.tipc.AFTIPCSocketFactory.ServiceAddress
- All Implemented Interfaces:
org.newsclub.net.unix.AFSocketAddressFromHostname<org.newsclub.net.unix.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
org.newsclub.net.unix.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 org.newsclub.net.unix.AFTIPCSocketAddress
addressFromHost
(String host, int port) 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
public final org.newsclub.net.unix.AFTIPCSocketAddress addressFromHost(String host, int port) throws SocketException - Throws:
SocketException
-