- java.lang.Object
-
- org.praxislive.hub.Hub.CoreRootFactory
-
- org.praxislive.hub.net.NetworkCoreFactory
-
public final class NetworkCoreFactory extends Hub.CoreRootFactory
A 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.RootcreateCoreRoot(Hub.Accessor accessor, List<Root> extensions)LookupextendLookup(Lookup lookup)
-
-
-
Method Detail
-
createCoreRoot
public Root createCoreRoot(Hub.Accessor accessor, List<Root> extensions)
- Specified by:
createCoreRootin classHub.CoreRootFactory
-
extendLookup
public Lookup extendLookup(Lookup lookup)
- Overrides:
extendLookupin classHub.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
-
-