- 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 Summary
Constructors Constructor Description 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 Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ActorHostDefcopy(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)<T> swim.codec.Output<T>debug(swim.codec.Output<T> output)booleanequals(Object other)static ActorHostDeffromHostPattern(String hostPattern)static ActorHostDeffromHostPattern(swim.uri.UriPattern hostPattern)static ActorHostDeffromHostUri(String hostUri)static ActorHostDeffromHostUri(swim.uri.Uri hostUri)swim.system.LaneDefgetLaneDef(swim.uri.Uri laneUri)swim.system.NodeDefgetNodeDef(swim.uri.Uri nodeUri)inthashCode()swim.uri.UriPatternhostPattern()ActorHostDefhostPattern(swim.uri.UriPattern hostPattern)swim.uri.UrihostUri()booleanisPrimary()ActorHostDefisPrimary(boolean isPrimary)booleanisReplica()ActorHostDefisReplica(boolean isReplica)ActorHostDeflaneDef(swim.system.LaneDef laneDef)Collection<? extends swim.system.LaneDef>laneDefs()swim.system.LogDeflogDef()ActorHostDeflogDef(swim.system.LogDef logDef)ActorHostDefnodeDef(swim.system.NodeDef nodeDef)Collection<? extends swim.system.NodeDef>nodeDefs()swim.system.PolicyDefpolicyDef()ActorHostDefpolicyDef(swim.system.PolicyDef policyDef)swim.concurrent.StageDefstageDef()ActorHostDefstageDef(swim.concurrent.StageDef stageDef)swim.store.StoreDefstoreDef()ActorHostDefstoreDef(swim.store.StoreDef storeDef)StringtoString()
-
-
-
Constructor Detail
-
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 Detail
-
hostUri
public final swim.uri.Uri hostUri()
- Specified by:
hostUriin interfaceswim.system.HostDef
-
hostPattern
public final swim.uri.UriPattern hostPattern()
- Specified by:
hostPatternin interfaceswim.system.HostDef
-
hostPattern
public ActorHostDef hostPattern(swim.uri.UriPattern hostPattern)
-
isPrimary
public final boolean isPrimary()
- Specified by:
isPrimaryin interfaceswim.system.HostDef
-
isPrimary
public ActorHostDef isPrimary(boolean isPrimary)
-
isReplica
public final boolean isReplica()
- Specified by:
isReplicain interfaceswim.system.HostDef
-
isReplica
public ActorHostDef isReplica(boolean isReplica)
-
nodeDefs
public final Collection<? extends swim.system.NodeDef> nodeDefs()
- Specified by:
nodeDefsin interfaceswim.system.HostDef
-
getNodeDef
public final swim.system.NodeDef getNodeDef(swim.uri.Uri nodeUri)
- Specified by:
getNodeDefin interfaceswim.system.HostDef
-
nodeDef
public ActorHostDef nodeDef(swim.system.NodeDef nodeDef)
-
laneDefs
public final Collection<? extends swim.system.LaneDef> laneDefs()
- Specified by:
laneDefsin interfaceswim.system.HostDef
-
getLaneDef
public final swim.system.LaneDef getLaneDef(swim.uri.Uri laneUri)
- Specified by:
getLaneDefin interfaceswim.system.HostDef
-
laneDef
public ActorHostDef laneDef(swim.system.LaneDef laneDef)
-
logDef
public final swim.system.LogDef logDef()
- Specified by:
logDefin interfaceswim.system.CellDef
-
logDef
public ActorHostDef logDef(swim.system.LogDef logDef)
-
policyDef
public final swim.system.PolicyDef policyDef()
- Specified by:
policyDefin interfaceswim.system.CellDef
-
policyDef
public ActorHostDef policyDef(swim.system.PolicyDef policyDef)
-
stageDef
public final swim.concurrent.StageDef stageDef()
- Specified by:
stageDefin interfaceswim.system.CellDef
-
stageDef
public ActorHostDef stageDef(swim.concurrent.StageDef stageDef)
-
storeDef
public final swim.store.StoreDef storeDef()
- Specified by:
storeDefin interfaceswim.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)
-
debug
public <T> swim.codec.Output<T> debug(swim.codec.Output<T> output)
- Specified by:
debugin interfaceswim.codec.Debug
-
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)
-
-