Class NetworkCoreFactory

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.
  • Method Details

    • createCoreRoot

      public org.praxislive.core.Root createCoreRoot(org.praxislive.hub.Hub.Accessor accessor, List<org.praxislive.core.Root> extensions)
      Specified by:
      createCoreRoot in interface org.praxislive.hub.Hub.CoreRootFactory
    • extendLookup

      public org.praxislive.core.Lookup extendLookup(org.praxislive.core.Lookup lookup)
      Specified by:
      extendLookup in interface org.praxislive.hub.Hub.CoreRootFactory
    • awaitInfo

      Get NetworkCoreFactory.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 wait
      unit - the unit of timeout
      Returns:
      info
      Throws:
      InterruptedException
      ExecutionException
      TimeoutException
    • builder

      public static NetworkCoreFactory.Builder builder()
      Create a NetworkCoreFactory builder.
      Returns:
      builder