- 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 class
NetworkCoreFactory.Builder
A builder for NetworkCoreFactory.static class
NetworkCoreFactory.Info
Information about the launched network hub.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description NetworkCoreFactory.Info
awaitInfo(long timeout, TimeUnit unit)
GetNetworkCoreFactory.Info
for the started core root.static NetworkCoreFactory.Builder
builder()
Create a NetworkCoreFactory builder.Root
createCoreRoot(Hub.Accessor accessor, List<Root> extensions)
Lookup
extendLookup(Lookup lookup)
-
-
-
Method Detail
-
createCoreRoot
public Root createCoreRoot(Hub.Accessor accessor, List<Root> extensions)
- Specified by:
createCoreRoot
in classHub.CoreRootFactory
-
extendLookup
public Lookup extendLookup(Lookup lookup)
- Overrides:
extendLookup
in classHub.CoreRootFactory
-
awaitInfo
public NetworkCoreFactory.Info awaitInfo(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
GetNetworkCoreFactory.Info
for 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:
InterruptedException
ExecutionException
TimeoutException
-
builder
public static NetworkCoreFactory.Builder builder()
Create a NetworkCoreFactory builder.- Returns:
- builder
-
-