java.lang.Object
org.praxislive.hub.net.HubConfiguration
Hub configuration for a networked hub. A hub configuration may be passed in
to
NetworkCoreFactory.Builder.hubConfiguration(org.praxislive.hub.net.HubConfiguration)
or configured lazily by using the hub configuration commands in a script.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classHub configuration builder. -
Method Summary
Modifier and TypeMethodDescriptionstatic HubConfiguration.Builderbuilder()Create a hub configuration builder.static HubConfigurationfromMap(org.praxislive.core.types.PMap configuration) Build a hub configuration from the provided map.booleanproxies()
-
Method Details
-
isFileServerEnabled
public boolean isFileServerEnabled() -
proxies
-
fromMap
Build a hub configuration from the provided map. This method is used primarily by the hub configuration commands.Currently supported keys are
enable-fileserverwhich should be a boolean value, andproxieswhich should contain a map of proxy IDs to proxy map configuration.- Parameters:
configuration- data map- Returns:
- hub configuration
- Throws:
IllegalArgumentException- if the data cannot be parsed
-
builder
Create a hub configuration builder.- Returns:
- builder
-