java.lang.Object
swim.kernel.KernelProxy
swim.kernel.BootKernel
- All Implemented Interfaces:
IpInterface
,IpStation
,Kernel
,KernelBinding
,KernelContext
,Log
-
Field Summary
Fields inherited from class swim.kernel.KernelProxy
kernelBinding, kernelContext, STARTED, status, STATUS
-
Constructor Summary
ConstructorsConstructorDescriptionBootKernel
(double kernelPriority) BootKernel
(double kernelPriority, Value moduleConfig) -
Method Summary
Modifier and TypeMethodDescriptionbindTcp
(InetSocketAddress localAddress, IpService service, IpSettings ipSettings) bindTls
(InetSocketAddress localAddress, IpService service, IpSettings ipSettings) connectTcp
(InetSocketAddress remoteAddress, IpSocket socket, IpSettings ipSettings) connectTls
(InetSocketAddress remoteAddress, IpSocket socket, IpSettings ipSettings) createClock
(ClockDef clockDef, Stage stage) createCommandLane
(NodeBinding node, LaneDef laneDef) createEdge
(EdgeAddress edgeAddress) createGeospatialLane
(NodeBinding node, LaneDef laneDef) createHost
(HostAddress hostAddress) createHost
(PartBinding part, HostDef hostDef) createHttpLane
(NodeBinding node, LaneDef laneDef) createLane
(NodeBinding node, LaneDef laneDef) createListLane
(NodeBinding node, LaneDef laneDef) createMapLane
(NodeBinding node, LaneDef laneDef) createMesh
(EdgeBinding edge, MeshDef meshDef) createMesh
(MeshAddress meshAddress) createPart
(MeshBinding mesh, PartDef partDef) createPart
(PartAddress partAddress) createSchedule
(ScheduleDef scheduleDef, Stage stage) protected Stage
createStage
(StageDef stageDef) createStage
(CellAddress cellAddress) protected Station
createSupplyLane
(NodeBinding node, LaneDef laneDef) createTheater
(TheaterDef theaterDef) createValueLane
(NodeBinding node, LaneDef laneDef) void
Logs a debug-level message.defineSchedule
(Item scheduleConfig) defineStage
(Item stageConfig) void
didStop()
void
Logs an error-level message.void
Logs an fail-level message.static BootKernel
void
Logs an info-level message.final double
Returns the relative priority of thisKernel
implementation.void
run()
final Stage
stage()
final Station
station()
void
Logs a trace-level message.void
Logs a warn-level message.void
Methods inherited from class swim.kernel.KernelProxy
createAgentFactory, createAgentFactory, createAgentFactory, createAgentFactory, createAgentRoute, createAuthenticator, createLane, createLog, createLog, createNode, createNode, createPlaneFactory, createPlaneFactory, createPolicy, createPolicy, createServiceFactory, createStore, createStore, defineAgent, defineAuthenticator, defineHost, defineLane, defineLog, defineMesh, defineNode, definePart, definePlane, definePolicy, defineService, defineSpace, defineStore, didStart, getHostDef, getLaneDef, getMeshDef, getNodeDef, getPartDef, getService, getSpace, injectAuthenticator, injectEdge, injectHost, injectKernel, injectLane, injectLog, injectMesh, injectNode, injectPart, injectPlane, injectPolicy, injectSchedule, injectService, injectStage, injectStore, isStarted, kernelBinding, kernelContext, kernelWrapper, modules, openAgents, openLanes, openMetaDownlink, openMetaEdge, openMetaHost, openMetaLane, openMetaMesh, openMetaNode, openMetaPart, openMetaUplink, openService, openSpace, reportDown, routeRequest, setKernelBinding, setKernelContext, start, stop, unwrapKernel, willStop
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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
openService, openService
-
Constructor Details
-
BootKernel
-
BootKernel
public BootKernel(double kernelPriority) -
BootKernel
public BootKernel()
-
-
Method Details
-
kernelPriority
public final double kernelPriority()Description copied from interface:Kernel
Returns the relative priority of thisKernel
implementation. Kernel implementations with greater priority inject into kernel stacks before implementations with lower priority.- Specified by:
kernelPriority
in interfaceKernel
- Specified by:
kernelPriority
in classKernelProxy
-
createStage
-
createStation
-
stage
- Specified by:
stage
in interfaceKernelContext
- Overrides:
stage
in classKernelProxy
-
station
- Specified by:
station
in interfaceIpStation
- Specified by:
station
in interfaceKernelContext
- Overrides:
station
in classKernelProxy
-
defineSchedule
- Specified by:
defineSchedule
in interfaceKernelContext
- Overrides:
defineSchedule
in classKernelProxy
-
createSchedule
- Specified by:
createSchedule
in interfaceKernelContext
- Overrides:
createSchedule
in classKernelProxy
-
createClock
-
defineStage
- Specified by:
defineStage
in interfaceKernelContext
- Overrides:
defineStage
in classKernelProxy
-
createStage
- Specified by:
createStage
in interfaceKernelContext
- Overrides:
createStage
in classKernelProxy
-
createTheater
-
createStage
- Specified by:
createStage
in interfaceKernelContext
- Overrides:
createStage
in classKernelProxy
-
ipSettings
- Specified by:
ipSettings
in interfaceIpInterface
- Specified by:
ipSettings
in interfaceKernelContext
- Overrides:
ipSettings
in classKernelProxy
-
bindTcp
public IpServiceRef bindTcp(InetSocketAddress localAddress, IpService service, IpSettings ipSettings) - Specified by:
bindTcp
in interfaceIpInterface
- Specified by:
bindTcp
in interfaceIpStation
- Specified by:
bindTcp
in interfaceKernelContext
- Overrides:
bindTcp
in classKernelProxy
-
bindTls
public IpServiceRef bindTls(InetSocketAddress localAddress, IpService service, IpSettings ipSettings) - Specified by:
bindTls
in interfaceIpInterface
- Specified by:
bindTls
in interfaceIpStation
- Specified by:
bindTls
in interfaceKernelContext
- Overrides:
bindTls
in classKernelProxy
-
connectTcp
public IpSocketRef connectTcp(InetSocketAddress remoteAddress, IpSocket socket, IpSettings ipSettings) - Specified by:
connectTcp
in interfaceIpInterface
- Specified by:
connectTcp
in interfaceIpStation
- Specified by:
connectTcp
in interfaceKernelContext
- Overrides:
connectTcp
in classKernelProxy
-
connectTls
public IpSocketRef connectTls(InetSocketAddress remoteAddress, IpSocket socket, IpSettings ipSettings) - Specified by:
connectTls
in interfaceIpInterface
- Specified by:
connectTls
in interfaceIpStation
- Specified by:
connectTls
in interfaceKernelContext
- Overrides:
connectTls
in classKernelProxy
-
createEdge
- Specified by:
createEdge
in interfaceKernelContext
- Overrides:
createEdge
in classKernelProxy
-
createMesh
- Specified by:
createMesh
in interfaceKernelContext
- Overrides:
createMesh
in classKernelProxy
-
createMesh
- Specified by:
createMesh
in interfaceKernelContext
- Overrides:
createMesh
in classKernelProxy
-
createPart
- Specified by:
createPart
in interfaceKernelContext
- Overrides:
createPart
in classKernelProxy
-
createPart
- Specified by:
createPart
in interfaceKernelContext
- Overrides:
createPart
in classKernelProxy
-
createHost
- Specified by:
createHost
in interfaceKernelContext
- Overrides:
createHost
in classKernelProxy
-
createHost
- Specified by:
createHost
in interfaceKernelContext
- Overrides:
createHost
in classKernelProxy
-
createLane
- Specified by:
createLane
in interfaceKernelContext
- Overrides:
createLane
in classKernelProxy
-
createCommandLane
-
createListLane
-
createMapLane
-
createGeospatialLane
-
createSupplyLane
-
createValueLane
-
createHttpLane
-
willStart
public void willStart()- Overrides:
willStart
in classKernelProxy
-
didStop
public void didStop()- Overrides:
didStop
in classKernelProxy
-
run
public void run()- Specified by:
run
in interfaceKernel
- Overrides:
run
in classKernelProxy
-
trace
Description copied from interface:Log
Logs a trace-level message.- Specified by:
trace
in interfaceLog
- Overrides:
trace
in classKernelProxy
-
debug
Description copied from interface:Log
Logs a debug-level message.- Specified by:
debug
in interfaceLog
- Overrides:
debug
in classKernelProxy
-
info
Description copied from interface:Log
Logs an info-level message.- Specified by:
info
in interfaceLog
- Overrides:
info
in classKernelProxy
-
warn
Description copied from interface:Log
Logs a warn-level message.- Specified by:
warn
in interfaceLog
- Overrides:
warn
in classKernelProxy
-
error
Description copied from interface:Log
Logs an error-level message.- Specified by:
error
in interfaceLog
- Overrides:
error
in classKernelProxy
-
fail
Description copied from interface:Log
Logs an fail-level message.- Specified by:
fail
in interfaceLog
- Overrides:
fail
in classKernelProxy
-
fromValue
-