- java.lang.Object
-
- org.praxislive.hub.net.DefaultProxyInfo
-
- All Implemented Interfaces:
ProxyInfo
public class DefaultProxyInfo extends Object implements ProxyInfo
Default implementation ofProxyInfo
that can be parsed from a PMap, used byHubConfiguration
.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<ProxyInfo.Exec>
exec()
Access an optionalProxyInfo.Exec
implementation giving information about the process that should be executed when initializing this proxy.static DefaultProxyInfo
fromMap(PMap conf)
Parse a DefaultProxyInfo from a provided PMap.boolean
matches(String rootID, ComponentType rootType)
Check whether this proxy should be used for creating and accessing the given root ID and root type.InetSocketAddress
socketAddress()
Access the socket address to use to connect to the proxy.
-
-
-
Method Detail
-
socketAddress
public InetSocketAddress socketAddress()
Description copied from interface:ProxyInfo
Access the socket address to use to connect to the proxy.- Specified by:
socketAddress
in interfaceProxyInfo
- Returns:
- socket address
-
matches
public boolean matches(String rootID, ComponentType rootType)
Description copied from interface:ProxyInfo
Check 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
public Optional<ProxyInfo.Exec> exec()
Description copied from interface:ProxyInfo
Access an optionalProxyInfo.Exec
implementation giving information about the process that should be executed when initializing this proxy.
-
fromMap
public static DefaultProxyInfo fromMap(PMap conf)
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
-
-