-
- All Superinterfaces:
IpInterface
,Kernel
,Log
- All Known Implementing Classes:
ActorKernel
,AuthenticatorKernel
,BootKernel
,DbStoreKernel
,JavaKernel
,JsKernel
,KernelProxy
,MemStoreKernel
,MetaKernel
,RemoteKernel
,ServiceKernel
,WebServiceKernel
public interface KernelContext extends Kernel, IpInterface, Log
-
-
Method Summary
-
Methods inherited from interface swim.io.IpInterface
bindTcp, bindTcp, bindTcp, bindTls, bindTls, bindTls, connectTcp, connectTcp, connectTcp, connectTcp, connectTcp, connectTcp, connectTcp, connectTls, connectTls, connectTls, connectTls, connectTls, connectTls, connectTls
-
Methods inherited from interface swim.kernel.Kernel
injectKernel, isStarted, kernelPriority, openService, openService, run, start, stop, unwrapKernel
-
-
-
-
Method Detail
-
kernelWrapper
KernelBinding kernelWrapper()
-
kernelBinding
KernelBinding kernelBinding()
-
setKernelBinding
void setKernelBinding(KernelBinding kernelBinding)
-
modules
FingerTrieSeq<Kernel> modules()
-
stage
Stage stage()
-
station
Station station()
-
createLog
Log createLog(CellAddress cellAddress)
-
createPolicy
Policy createPolicy(CellAddress cellAddress)
-
defineSchedule
ScheduleDef defineSchedule(Item scheduleConfig)
-
createSchedule
Schedule createSchedule(ScheduleDef scheduleDef, Stage stage)
-
createStage
Stage createStage(CellAddress cellAddress)
-
createStore
StoreBinding createStore(StoreDef storeDef, ClassLoader classLoader)
-
createStore
StoreBinding createStore(CellAddress cellAddress)
-
injectStore
StoreBinding injectStore(StoreBinding store)
-
defineAuthenticator
AuthenticatorDef defineAuthenticator(Item authenticatorConfig)
-
createAuthenticator
Authenticator createAuthenticator(AuthenticatorDef authenticatorDef, ClassLoader classLoader)
-
injectAuthenticator
Authenticator injectAuthenticator(Authenticator authenticator)
-
ipSettings
IpSettings ipSettings()
- Specified by:
ipSettings
in interfaceIpInterface
-
bindTcp
IpServiceRef bindTcp(InetSocketAddress localAddress, IpService service, IpSettings ipSettings)
- Specified by:
bindTcp
in interfaceIpInterface
-
bindTls
IpServiceRef bindTls(InetSocketAddress localAddress, IpService service, IpSettings ipSettings)
- Specified by:
bindTls
in interfaceIpInterface
-
connectTcp
IpSocketRef connectTcp(InetSocketAddress remoteAddress, IpSocket socket, IpSettings ipSettings)
- Specified by:
connectTcp
in interfaceIpInterface
-
connectTls
IpSocketRef connectTls(InetSocketAddress remoteAddress, IpSocket socket, IpSettings ipSettings)
- Specified by:
connectTls
in interfaceIpInterface
-
getService
Service getService(String serviceName)
- Specified by:
getService
in interfaceKernel
-
defineService
ServiceDef defineService(Item serviceConfig)
- Specified by:
defineService
in interfaceKernel
-
createServiceFactory
ServiceFactory<?> createServiceFactory(ServiceDef serviceDef, ClassLoader classLoader)
- Specified by:
createServiceFactory
in interfaceKernel
-
openService
<S extends Service> S openService(String serviceName, ServiceFactory<S> serviceFactory)
- Specified by:
openService
in interfaceKernel
-
routeRequest
WebResponse routeRequest(WebRequest request)
-
defineSpace
SpaceDef defineSpace(Item spaceConfig)
- Specified by:
defineSpace
in interfaceKernel
-
definePlane
PlaneDef definePlane(Item planeConfig)
- Specified by:
definePlane
in interfaceKernel
-
createPlaneFactory
PlaneFactory<?> createPlaneFactory(PlaneDef planeDef, ClassLoader classLoader)
- Specified by:
createPlaneFactory
in interfaceKernel
-
createPlaneFactory
<P extends Plane> PlaneFactory<P> createPlaneFactory(Class<? extends P> planeClass)
- Specified by:
createPlaneFactory
in interfaceKernel
-
defineAgent
AgentDef defineAgent(Item agentConfig)
- Specified by:
defineAgent
in interfaceKernel
-
createAgentFactory
AgentFactory<?> createAgentFactory(AgentDef agentDef, ClassLoader classLoader)
- Specified by:
createAgentFactory
in interfaceKernel
-
createAgentFactory
AgentFactory<?> createAgentFactory(NodeBinding node, AgentDef agentDef)
-
createAgentFactory
<A extends Agent> AgentFactory<A> createAgentFactory(Class<? extends A> agentClass)
- Specified by:
createAgentFactory
in interfaceKernel
-
createAgentFactory
<A extends Agent> AgentFactory<A> createAgentFactory(NodeBinding node, Class<? extends A> agentClass)
-
createAgentRoute
<A extends Agent> AgentRoute<A> createAgentRoute(EdgeBinding edge, Class<? extends A> agentClass)
-
openAgents
void openAgents(NodeBinding node)
-
openLanes
void openLanes(NodeBinding node)
-
createEdge
EdgeBinding createEdge(EdgeAddress edgeAddress)
-
injectEdge
EdgeBinding injectEdge(EdgeAddress edgeAddress, EdgeBinding edge)
-
openMetaEdge
void openMetaEdge(EdgeBinding edge, NodeBinding metaEdge)
-
getMeshDef
MeshDef getMeshDef(MeshAddress meshAddress)
-
createMesh
MeshBinding createMesh(EdgeBinding edge, MeshDef meshDef)
-
createMesh
MeshBinding createMesh(MeshAddress meshAddress)
-
injectMesh
MeshBinding injectMesh(MeshAddress meshAddress, MeshBinding mesh)
-
openMetaMesh
void openMetaMesh(MeshBinding mesh, NodeBinding metaMesh)
-
getPartDef
PartDef getPartDef(PartAddress partAddress)
-
createPart
PartBinding createPart(MeshBinding mesh, PartDef partDef)
-
createPart
PartBinding createPart(PartAddress partAddress)
-
injectPart
PartBinding injectPart(PartAddress partAddress, PartBinding part)
-
openMetaPart
void openMetaPart(PartBinding part, NodeBinding metaPart)
-
getHostDef
HostDef getHostDef(HostAddress hostAddress)
-
createHost
HostBinding createHost(PartBinding part, HostDef hostDef)
-
createHost
HostBinding createHost(HostAddress hostAddress)
-
injectHost
HostBinding injectHost(HostAddress hostAddress, HostBinding host)
-
openMetaHost
void openMetaHost(HostBinding host, NodeBinding metaHost)
-
getNodeDef
NodeDef getNodeDef(NodeAddress nodeAddress)
-
createNode
NodeBinding createNode(HostBinding host, NodeDef nodeDef)
-
createNode
NodeBinding createNode(NodeAddress nodeAddress)
-
injectNode
NodeBinding injectNode(NodeAddress nodeAddress, NodeBinding node)
-
openMetaNode
void openMetaNode(NodeBinding node, NodeBinding metaNode)
-
getLaneDef
LaneDef getLaneDef(LaneAddress laneAddress)
-
createLane
LaneBinding createLane(NodeBinding node, LaneDef laneDef)
-
createLane
LaneBinding createLane(LaneAddress laneAddress)
-
injectLane
LaneBinding injectLane(LaneAddress laneAddress, LaneBinding lane)
-
openMetaLane
void openMetaLane(LaneBinding lane, NodeBinding metaLane)
-
openMetaUplink
void openMetaUplink(LinkBinding uplink, NodeBinding metaUplink)
-
openMetaDownlink
void openMetaDownlink(LinkBinding downlink, NodeBinding metaDownlink)
-
reportDown
void reportDown(Metric metric)
-
-