Module swim.actor
Package swim.actor

Class ActorHostDef

java.lang.Object
swim.actor.ActorHostDef
All Implemented Interfaces:
swim.codec.Debug, swim.system.CellDef, swim.system.HostDef

public class ActorHostDef extends Object implements swim.system.HostDef, swim.codec.Debug
  • Constructor Details

    • ActorHostDef

      public ActorHostDef(swim.uri.UriPattern hostPattern, boolean isPrimary, boolean isReplica, swim.uri.UriMapper<swim.system.NodeDef> nodeDefs, swim.uri.UriMapper<swim.system.LaneDef> laneDefs, swim.system.LogDef logDef, swim.system.PolicyDef policyDef, swim.concurrent.StageDef stageDef, swim.store.StoreDef storeDef)
  • Method Details

    • hostUri

      public final swim.uri.Uri hostUri()
      Specified by:
      hostUri in interface swim.system.HostDef
    • hostPattern

      public final swim.uri.UriPattern hostPattern()
      Specified by:
      hostPattern in interface swim.system.HostDef
    • hostPattern

      public ActorHostDef hostPattern(swim.uri.UriPattern hostPattern)
    • isPrimary

      public final boolean isPrimary()
      Specified by:
      isPrimary in interface swim.system.HostDef
    • isPrimary

      public ActorHostDef isPrimary(boolean isPrimary)
    • isReplica

      public final boolean isReplica()
      Specified by:
      isReplica in interface swim.system.HostDef
    • isReplica

      public ActorHostDef isReplica(boolean isReplica)
    • nodeDefs

      public final Collection<? extends swim.system.NodeDef> nodeDefs()
      Specified by:
      nodeDefs in interface swim.system.HostDef
    • getNodeDef

      public final swim.system.NodeDef getNodeDef(swim.uri.Uri nodeUri)
      Specified by:
      getNodeDef in interface swim.system.HostDef
    • nodeDef

      public ActorHostDef nodeDef(swim.system.NodeDef nodeDef)
    • laneDefs

      public final Collection<? extends swim.system.LaneDef> laneDefs()
      Specified by:
      laneDefs in interface swim.system.HostDef
    • getLaneDef

      public final swim.system.LaneDef getLaneDef(swim.uri.Uri laneUri)
      Specified by:
      getLaneDef in interface swim.system.HostDef
    • laneDef

      public ActorHostDef laneDef(swim.system.LaneDef laneDef)
    • logDef

      public final swim.system.LogDef logDef()
      Specified by:
      logDef in interface swim.system.CellDef
    • logDef

      public ActorHostDef logDef(swim.system.LogDef logDef)
    • policyDef

      public final swim.system.PolicyDef policyDef()
      Specified by:
      policyDef in interface swim.system.CellDef
    • policyDef

      public ActorHostDef policyDef(swim.system.PolicyDef policyDef)
    • stageDef

      public final swim.concurrent.StageDef stageDef()
      Specified by:
      stageDef in interface swim.system.CellDef
    • stageDef

      public ActorHostDef stageDef(swim.concurrent.StageDef stageDef)
    • storeDef

      public final swim.store.StoreDef storeDef()
      Specified by:
      storeDef in interface swim.system.CellDef
    • storeDef

      public ActorHostDef storeDef(swim.store.StoreDef storeDef)
    • copy

      protected ActorHostDef copy(swim.uri.UriPattern hostPattern, boolean isPrimary, boolean isReplica, swim.uri.UriMapper<swim.system.NodeDef> nodeDefs, swim.uri.UriMapper<swim.system.LaneDef> laneDefs, swim.system.LogDef logDef, swim.system.PolicyDef policyDef, swim.concurrent.StageDef stageDef, swim.store.StoreDef storeDef)
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • debug

      public <T> swim.codec.Output<T> debug(swim.codec.Output<T> output)
      Specified by:
      debug in interface swim.codec.Debug
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • fromHostUri

      public static ActorHostDef fromHostUri(swim.uri.Uri hostUri)
    • fromHostUri

      public static ActorHostDef fromHostUri(String hostUri)
    • fromHostPattern

      public static ActorHostDef fromHostPattern(swim.uri.UriPattern hostPattern)
    • fromHostPattern

      public static ActorHostDef fromHostPattern(String hostPattern)