java.lang.Object
org.praxislive.hub.net.NetworkCoreFactory
- All Implemented Interfaces:
org.praxislive.hub.Hub.CoreRootFactory
public final class NetworkCoreFactory
extends Object
implements org.praxislive.hub.Hub.CoreRootFactory
A CoreRootFactory supporting a tree of networked roots. Use
builder() to create.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA builder for NetworkCoreFactory.static final classInformation about the launched network hub. -
Method Summary
Modifier and TypeMethodDescriptionGetNetworkCoreFactory.Infofor the started core root.static NetworkCoreFactory.Builderbuilder()Create a NetworkCoreFactory builder.org.praxislive.core.RootcreateCoreRoot(org.praxislive.hub.Hub.Accessor accessor, List<org.praxislive.core.Root> extensions) org.praxislive.core.LookupextendLookup(org.praxislive.core.Lookup lookup)
-
Method Details
-
createCoreRoot
public org.praxislive.core.Root createCoreRoot(org.praxislive.hub.Hub.Accessor accessor, List<org.praxislive.core.Root> extensions) - Specified by:
createCoreRootin interfaceorg.praxislive.hub.Hub.CoreRootFactory
-
extendLookup
public org.praxislive.core.Lookup extendLookup(org.praxislive.core.Lookup lookup) - Specified by:
extendLookupin interfaceorg.praxislive.hub.Hub.CoreRootFactory
-
awaitInfo
public NetworkCoreFactory.Info awaitInfo(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException GetNetworkCoreFactory.Infofor the started core root. If the server is enabled, this will block until a network connection is established and the socket address and port is available.- Parameters:
timeout- the maximum time to waitunit- the unit of timeout- Returns:
- info
- Throws:
InterruptedExceptionExecutionExceptionTimeoutException
-
builder
Create a NetworkCoreFactory builder.- Returns:
- builder
-