- java.lang.Object
-
- org.praxislive.hub.Hub.CoreRootFactory
-
- org.praxislive.hub.net.NetworkCoreFactory
-
public final class NetworkCoreFactory extends org.praxislive.hub.Hub.CoreRootFactoryA CoreRootFactory supporting a tree of networked roots. Usebuilder()to create.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNetworkCoreFactory.BuilderA builder for NetworkCoreFactory.static classNetworkCoreFactory.InfoInformation about the launched network hub.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description NetworkCoreFactory.InfoawaitInfo(long timeout, TimeUnit unit)GetNetworkCoreFactory.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 Detail
-
createCoreRoot
public org.praxislive.core.Root createCoreRoot(org.praxislive.hub.Hub.Accessor accessor, List<org.praxislive.core.Root> extensions)- Specified by:
createCoreRootin classorg.praxislive.hub.Hub.CoreRootFactory
-
extendLookup
public org.praxislive.core.Lookup extendLookup(org.praxislive.core.Lookup lookup)
- Overrides:
extendLookupin classorg.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
public static NetworkCoreFactory.Builder builder()
Create a NetworkCoreFactory builder.- Returns:
- builder
-
-