- java.lang.Object
-
- swim.runtime.AbstractSwimRef
-
- swim.runtime.AbstractTierBinding
-
- swim.server.ServerPlane
-
- All Implemented Interfaces:
swim.api.downlink.DownlinkFactory,swim.api.plane.PlaneContext,swim.api.ref.SwimRef,swim.linker.AuthenticatorContext,swim.runtime.CellContext,swim.runtime.RootContext,swim.runtime.TierBinding,swim.runtime.TierContext,swim.util.Log
public class ServerPlane extends swim.runtime.AbstractTierBinding implements swim.runtime.RootContext, swim.api.plane.PlaneContext, swim.linker.AuthenticatorContext
-
-
Field Summary
Fields Modifier and Type Field Description protected swim.io.http.HttpEndpointendpointprotected swim.api.plane.Planeplaneprotected swim.runtime.RootBindingrootprotected swim.concurrent.Theaterstageprotected swim.store.StoreBindingstoreprotected swim.io.warp.WarpSettingswarpSettings-
Fields inherited from class swim.runtime.AbstractTierBinding
CLOSED_PHASE, CLOSED_STATE, CLOSING_STATE, FAILED_STATE, FAILING_STATE, LOADED_PHASE, LOADED_STATE, LOADING_STATE, OPENED_PHASE, OPENED_STATE, OPENING_STATE, PHASE_MASK, PHASE_SHIFT, RECOVERING_STATE, STARTED_PHASE, STARTED_STATE, STARTING_STATE, STATE_MASK, status, STATUS, STOPPING_STATE, UNLOADING_STATE
-
-
Constructor Summary
Constructors Constructor Description ServerPlane(swim.concurrent.Theater stage, swim.store.StoreBinding store, swim.io.http.HttpEndpoint endpoint, swim.runtime.RootBinding root)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAgentRoute(String pattern, swim.api.agent.AgentType<?> agentType)voidaddAgentRoute(swim.uri.UriPattern pattern, swim.api.agent.AgentType<?> agentType)voidaddAgentType(String name, swim.api.agent.AgentType<?> agentType)voidaddAuthenticator(swim.api.auth.Authenticator authenticator)<S extends swim.api.agent.Agent>
swim.api.agent.AgentType<S>agentClass(Class<? extends S> agentClass)swim.api.policy.PolicyDirective<swim.api.auth.Identity>authenticate(swim.api.auth.Credentials credentials)swim.collections.FingerTrieSeq<swim.api.auth.Authenticator>authenticators()swim.io.ServiceRefbind(String address, int port)swim.io.ServiceRefbind(String address, int port, swim.io.warp.WarpSettings warpSettings)swim.io.ServiceRefbind(swim.linker.ServiceDef serviceDef)swim.runtime.LinkBindingbindDownlink(swim.api.downlink.Downlink downlink)voidcloseDownlink(swim.runtime.LinkBinding link)swim.runtime.HostBindingcreateHost(swim.uri.Uri meshUri, swim.structure.Value partKey, swim.uri.Uri hostUri)swim.runtime.MeshBindingcreateMesh(swim.uri.Uri meshUri)swim.runtime.NodeBindingcreateNode(swim.uri.Uri meshUri, swim.structure.Value partKey, swim.uri.Uri hostUri, swim.uri.Uri nodeUri)swim.runtime.PartBindingcreatePart(swim.uri.Uri meshUri, swim.structure.Value partKey)voiddebug(Object message)voiddidClose()voiddidFail(Throwable error)voiddidLoad()voiddidOpen()voiddidStart()voiddidStop()voiddidUnload()swim.io.http.HttpEndpointendpoint()voiderror(Object message)<S extends swim.api.agent.Agent>
swim.api.agent.AgentType<S>getAgentRoute(swim.uri.Uri nodeUri)<S extends swim.api.agent.Agent>
swim.api.agent.AgentType<S>getAgentType(String name)swim.api.plane.PlanegetPlane()ServerPartgetServerPart(swim.structure.Value partKey)booleanhasAgentType(String name)voidhttpDownlink(swim.runtime.HttpBinding http)voidinfo(Object message)swim.runtime.HostBindinginjectHost(swim.uri.Uri meshUri, swim.structure.Value partKey, swim.uri.Uri hostUri, swim.runtime.HostBinding host)swim.runtime.LaneBindinginjectLane(swim.uri.Uri meshUri, swim.structure.Value partKey, swim.uri.Uri hostUri, swim.uri.Uri nodeUri, swim.uri.Uri laneUri, swim.runtime.LaneBinding lane)swim.runtime.MeshBindinginjectMesh(swim.uri.Uri meshUri, swim.runtime.MeshBinding mesh)swim.runtime.NodeBindinginjectNode(swim.uri.Uri meshUri, swim.structure.Value partKey, swim.uri.Uri hostUri, swim.uri.Uri nodeUri, swim.runtime.NodeBinding node)swim.runtime.PartBindinginjectPart(swim.uri.Uri meshUri, swim.structure.Value partKey, swim.runtime.PartBinding part)voidmaterialize(Class<? extends swim.api.plane.Plane> planeClass)ServerPlanematerialize(Class<? extends swim.api.plane.Plane> planeClass, swim.linker.PlaneDef planeDef)ServerPlanematerialize(swim.linker.PlaneDef planeDef)swim.uri.UrimeshUri()voidopenDownlink(swim.runtime.LinkBinding link)swim.api.policy.PlanePolicyplanePolicy()swim.api.policy.Policypolicy()voidpushDown(swim.runtime.PushRequest pushRequest)voidremoveAgentRoute(swim.uri.UriPattern pattern)voidremoveAgentType(String name)swim.runtime.RootBindingroot()swim.concurrent.Scheduleschedule()voidsetAuthenticators(swim.collections.FingerTrieSeq<swim.api.auth.Authenticator> authenticators)voidsetPlane(swim.api.plane.Plane plane)voidsetPlanePolicy(swim.api.policy.PlanePolicy policy)voidsetWarpSettings(swim.io.warp.WarpSettings warpSettings)swim.concurrent.Stagestage()swim.store.StoreBindingstore()swim.runtime.TierContexttierContext()voidtrace(Object message)voidwarn(Object message)swim.io.warp.WarpSettingswarpSettings()voidwillClose()voidwillLoad()voidwillOpen()voidwillStart()voidwillStop()voidwillUnload()-
Methods inherited from class swim.runtime.AbstractTierBinding
activate, close, isClosed, isLoaded, isOpened, isStarted, load, open, start, stop, unload
-
Methods inherited from class swim.runtime.AbstractSwimRef
command, command, command, command, command, command, command, command, downlink, downlinkHttp, downlinkList, downlinkMap, downlinkValue, hostRef, hostRef, laneRef, laneRef, laneRef, laneRef, nodeRef, nodeRef, nodeRef, nodeRef
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface swim.api.downlink.DownlinkFactory
downlink, downlinkHttp, downlinkList, downlinkMap, downlinkValue
-
-
-
-
Field Detail
-
stage
protected final swim.concurrent.Theater stage
-
store
protected final swim.store.StoreBinding store
-
endpoint
protected final swim.io.http.HttpEndpoint endpoint
-
root
protected final swim.runtime.RootBinding root
-
plane
protected swim.api.plane.Plane plane
-
warpSettings
protected swim.io.warp.WarpSettings warpSettings
-
-
Method Detail
-
tierContext
public swim.runtime.TierContext tierContext()
- Specified by:
tierContextin interfaceswim.runtime.TierBinding- Specified by:
tierContextin classswim.runtime.AbstractTierBinding
-
meshUri
public swim.uri.Uri meshUri()
- Specified by:
meshUriin interfaceswim.runtime.CellContext
-
policy
public swim.api.policy.Policy policy()
- Specified by:
policyin interfaceswim.runtime.CellContext
-
schedule
public swim.concurrent.Schedule schedule()
- Specified by:
schedulein interfaceswim.linker.AuthenticatorContext- Specified by:
schedulein interfaceswim.runtime.CellContext- Specified by:
schedulein interfaceswim.api.plane.PlaneContext
-
stage
public final swim.concurrent.Stage stage()
- Specified by:
stagein interfaceswim.runtime.CellContext- Specified by:
stagein interfaceswim.api.plane.PlaneContext
-
store
public swim.store.StoreBinding store()
- Specified by:
storein interfaceswim.runtime.CellContext
-
endpoint
public swim.io.http.HttpEndpoint endpoint()
- Specified by:
endpointin interfaceswim.linker.AuthenticatorContext
-
root
public swim.runtime.RootBinding root()
-
getPlane
public swim.api.plane.Plane getPlane()
-
setPlane
public void setPlane(swim.api.plane.Plane plane)
-
warpSettings
public swim.io.warp.WarpSettings warpSettings()
-
setWarpSettings
public void setWarpSettings(swim.io.warp.WarpSettings warpSettings)
-
materialize
public void materialize(Class<? extends swim.api.plane.Plane> planeClass)
-
materialize
public ServerPlane materialize(swim.linker.PlaneDef planeDef)
-
materialize
public ServerPlane materialize(Class<? extends swim.api.plane.Plane> planeClass, swim.linker.PlaneDef planeDef)
-
bind
public swim.io.ServiceRef bind(swim.linker.ServiceDef serviceDef)
-
bind
public swim.io.ServiceRef bind(String address, int port)
-
bind
public swim.io.ServiceRef bind(String address, int port, swim.io.warp.WarpSettings warpSettings)
-
planePolicy
public swim.api.policy.PlanePolicy planePolicy()
- Specified by:
planePolicyin interfaceswim.api.plane.PlaneContext
-
setPlanePolicy
public void setPlanePolicy(swim.api.policy.PlanePolicy policy)
- Specified by:
setPlanePolicyin interfaceswim.api.plane.PlaneContext
-
authenticators
public swim.collections.FingerTrieSeq<swim.api.auth.Authenticator> authenticators()
- Specified by:
authenticatorsin interfaceswim.api.plane.PlaneContext
-
setAuthenticators
public void setAuthenticators(swim.collections.FingerTrieSeq<swim.api.auth.Authenticator> authenticators)
- Specified by:
setAuthenticatorsin interfaceswim.api.plane.PlaneContext
-
addAuthenticator
public void addAuthenticator(swim.api.auth.Authenticator authenticator)
- Specified by:
addAuthenticatorin interfaceswim.api.plane.PlaneContext
-
agentClass
public <S extends swim.api.agent.Agent> swim.api.agent.AgentType<S> agentClass(Class<? extends S> agentClass)
- Specified by:
agentClassin interfaceswim.api.plane.PlaneContext
-
hasAgentType
public boolean hasAgentType(String name)
- Specified by:
hasAgentTypein interfaceswim.api.plane.PlaneContext
-
getAgentType
public <S extends swim.api.agent.Agent> swim.api.agent.AgentType<S> getAgentType(String name)
- Specified by:
getAgentTypein interfaceswim.api.plane.PlaneContext
-
addAgentType
public void addAgentType(String name, swim.api.agent.AgentType<?> agentType)
- Specified by:
addAgentTypein interfaceswim.api.plane.PlaneContext
-
removeAgentType
public void removeAgentType(String name)
- Specified by:
removeAgentTypein interfaceswim.api.plane.PlaneContext
-
getAgentRoute
public <S extends swim.api.agent.Agent> swim.api.agent.AgentType<S> getAgentRoute(swim.uri.Uri nodeUri)
- Specified by:
getAgentRoutein interfaceswim.api.plane.PlaneContext
-
addAgentRoute
public void addAgentRoute(swim.uri.UriPattern pattern, swim.api.agent.AgentType<?> agentType)- Specified by:
addAgentRoutein interfaceswim.api.plane.PlaneContext
-
addAgentRoute
public void addAgentRoute(String pattern, swim.api.agent.AgentType<?> agentType)
- Specified by:
addAgentRoutein interfaceswim.api.plane.PlaneContext
-
removeAgentRoute
public void removeAgentRoute(swim.uri.UriPattern pattern)
- Specified by:
removeAgentRoutein interfaceswim.api.plane.PlaneContext
-
createMesh
public swim.runtime.MeshBinding createMesh(swim.uri.Uri meshUri)
- Specified by:
createMeshin interfaceswim.runtime.RootContext
-
injectMesh
public swim.runtime.MeshBinding injectMesh(swim.uri.Uri meshUri, swim.runtime.MeshBinding mesh)- Specified by:
injectMeshin interfaceswim.runtime.RootContext
-
createPart
public swim.runtime.PartBinding createPart(swim.uri.Uri meshUri, swim.structure.Value partKey)- Specified by:
createPartin interfaceswim.runtime.RootContext
-
injectPart
public swim.runtime.PartBinding injectPart(swim.uri.Uri meshUri, swim.structure.Value partKey, swim.runtime.PartBinding part)- Specified by:
injectPartin interfaceswim.runtime.RootContext
-
createHost
public swim.runtime.HostBinding createHost(swim.uri.Uri meshUri, swim.structure.Value partKey, swim.uri.Uri hostUri)- Specified by:
createHostin interfaceswim.runtime.RootContext
-
injectHost
public swim.runtime.HostBinding injectHost(swim.uri.Uri meshUri, swim.structure.Value partKey, swim.uri.Uri hostUri, swim.runtime.HostBinding host)- Specified by:
injectHostin interfaceswim.runtime.RootContext
-
createNode
public swim.runtime.NodeBinding createNode(swim.uri.Uri meshUri, swim.structure.Value partKey, swim.uri.Uri hostUri, swim.uri.Uri nodeUri)- Specified by:
createNodein interfaceswim.runtime.RootContext
-
getServerPart
public ServerPart getServerPart(swim.structure.Value partKey)
-
injectNode
public swim.runtime.NodeBinding injectNode(swim.uri.Uri meshUri, swim.structure.Value partKey, swim.uri.Uri hostUri, swim.uri.Uri nodeUri, swim.runtime.NodeBinding node)- Specified by:
injectNodein interfaceswim.runtime.RootContext
-
injectLane
public swim.runtime.LaneBinding injectLane(swim.uri.Uri meshUri, swim.structure.Value partKey, swim.uri.Uri hostUri, swim.uri.Uri nodeUri, swim.uri.Uri laneUri, swim.runtime.LaneBinding lane)- Specified by:
injectLanein interfaceswim.runtime.RootContext
-
authenticate
public swim.api.policy.PolicyDirective<swim.api.auth.Identity> authenticate(swim.api.auth.Credentials credentials)
- Specified by:
authenticatein interfaceswim.runtime.RootContext
-
bindDownlink
public swim.runtime.LinkBinding bindDownlink(swim.api.downlink.Downlink downlink)
- Specified by:
bindDownlinkin interfaceswim.runtime.CellContext
-
openDownlink
public void openDownlink(swim.runtime.LinkBinding link)
- Specified by:
openDownlinkin interfaceswim.runtime.CellContext
-
closeDownlink
public void closeDownlink(swim.runtime.LinkBinding link)
- Specified by:
closeDownlinkin interfaceswim.runtime.CellContext
-
httpDownlink
public void httpDownlink(swim.runtime.HttpBinding http)
- Specified by:
httpDownlinkin interfaceswim.runtime.CellContext
-
pushDown
public void pushDown(swim.runtime.PushRequest pushRequest)
- Specified by:
pushDownin interfaceswim.runtime.CellContext
-
trace
public void trace(Object message)
- Specified by:
tracein interfaceswim.util.Log
-
debug
public void debug(Object message)
- Specified by:
debugin interfaceswim.util.Log
-
info
public void info(Object message)
- Specified by:
infoin interfaceswim.util.Log
-
warn
public void warn(Object message)
- Specified by:
warnin interfaceswim.util.Log
-
error
public void error(Object message)
- Specified by:
errorin interfaceswim.util.Log
-
willOpen
public void willOpen()
- Specified by:
willOpenin interfaceswim.runtime.TierContext- Overrides:
willOpenin classswim.runtime.AbstractTierBinding
-
didOpen
public void didOpen()
- Specified by:
didOpenin interfaceswim.runtime.TierContext- Overrides:
didOpenin classswim.runtime.AbstractTierBinding
-
willLoad
public void willLoad()
- Specified by:
willLoadin interfaceswim.runtime.TierContext- Overrides:
willLoadin classswim.runtime.AbstractTierBinding
-
didLoad
public void didLoad()
- Specified by:
didLoadin interfaceswim.runtime.TierContext- Overrides:
didLoadin classswim.runtime.AbstractTierBinding
-
willStart
public void willStart()
- Specified by:
willStartin interfaceswim.runtime.TierContext- Overrides:
willStartin classswim.runtime.AbstractTierBinding
-
didStart
public void didStart()
- Specified by:
didStartin interfaceswim.runtime.TierContext- Overrides:
didStartin classswim.runtime.AbstractTierBinding
-
willStop
public void willStop()
- Specified by:
willStopin interfaceswim.runtime.TierContext- Overrides:
willStopin classswim.runtime.AbstractTierBinding
-
didStop
public void didStop()
- Specified by:
didStopin interfaceswim.runtime.TierContext- Overrides:
didStopin classswim.runtime.AbstractTierBinding
-
willUnload
public void willUnload()
- Specified by:
willUnloadin interfaceswim.runtime.TierContext- Overrides:
willUnloadin classswim.runtime.AbstractTierBinding
-
didUnload
public void didUnload()
- Specified by:
didUnloadin interfaceswim.runtime.TierContext- Overrides:
didUnloadin classswim.runtime.AbstractTierBinding
-
willClose
public void willClose()
- Specified by:
willClosein interfaceswim.runtime.TierContext- Overrides:
willClosein classswim.runtime.AbstractTierBinding
-
didClose
public void didClose()
- Specified by:
didClosein interfaceswim.runtime.TierBinding- Overrides:
didClosein classswim.runtime.AbstractTierBinding
-
didFail
public void didFail(Throwable error)
- Specified by:
didFailin interfaceswim.runtime.TierBinding- Overrides:
didFailin classswim.runtime.AbstractTierBinding
-
-