java.lang.Object
org.praxislive.hub.net.DefaultProxyInfo
- All Implemented Interfaces:
ProxyInfo
Default implementation of
ProxyInfo that can be parsed from a PMap,
used by HubConfiguration.-
Method Summary
Modifier and TypeMethodDescriptionexec()Access an optionalProxyInfo.Execimplementation giving information about the process that should be executed when initializing this proxy.static DefaultProxyInfofromMap(org.praxislive.core.types.PMap conf) Parse a DefaultProxyInfo from a provided PMap.booleanCheck whether this proxy should be used for creating and accessing the given root ID and root type.Access the socket address to use to connect to the proxy.
-
Method Details
-
socketAddress
Description copied from interface:ProxyInfoAccess the socket address to use to connect to the proxy.- Specified by:
socketAddressin interfaceProxyInfo- Returns:
- socket address
-
matches
Description copied from interface:ProxyInfoCheck whether this proxy should be used for creating and accessing the given root ID and root type. The order of provided proxies is important as the first matching proxy will take precedence. -
exec
Description copied from interface:ProxyInfoAccess an optionalProxyInfo.Execimplementation giving information about the process that should be executed when initializing this proxy. -
fromMap
Parse a DefaultProxyInfo from a provided PMap.- Parameters:
conf- proxy info as PMap- Returns:
- DefaultProxyInfo parsed from configuration map
- Throws:
IllegalArgumentException- if map is incorrectly structured
-