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.ServiceAddressNested classes/interfaces inherited from class org.newsclub.net.unix.AFSocketFactory
AFSocketFactory.FixedAddressSocketFactory -
Constructor Summary
ConstructorsConstructorDescriptionServiceAddress(int type, int instance) Creates anAFTIPCSocketFactorythat always uses the given TIPC service type and instance, implying cluster scope. -
Method Summary
Modifier and TypeMethodDescriptionfinal AFTIPCSocketAddressaddressFromHost(String host, int port) Translates a "host" string (and port) to anAFSocketAddress.Methods inherited from class org.newsclub.net.unix.tipc.AFTIPCSocketFactory
configure, connectTo, createSocketMethods inherited from class org.newsclub.net.unix.AFSocketFactory
createSocket, createSocket, createSocket, createSocket, isInetAddressSupportedMethods inherited from class javax.net.SocketFactory
getDefaultMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.newsclub.net.unix.AFSocketAddressFromHostname
isHostnameSupported
-
Constructor Details
-
ServiceAddress
public ServiceAddress(int type, int instance) Creates anAFTIPCSocketFactorythat 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:AFSocketAddressFromHostnameTranslates 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
-